pci.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2008 Zhang Le <r0bertz@gentoo.org>
  3. *
  4. * This program is free software; you can redistribute it
  5. * and/or modify it under the terms of the GNU General
  6. * Public License as published by the Free Software
  7. * Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be
  11. * useful, but WITHOUT ANY WARRANTY; without even the implied
  12. * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  13. * PURPOSE. See the GNU General Public License for more
  14. * details.
  15. *
  16. * You should have received a copy of the GNU General Public
  17. * License along with this program; if not, write to the Free
  18. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
  19. * 02139, USA.
  20. */
  21. #ifndef __ASM_MACH_LOONGSON_PCI_H_
  22. #define __ASM_MACH_LOONGSON_PCI_H_
  23. extern struct pci_ops bonito64_pci_ops;
  24. #ifdef CONFIG_LEMOTE_FULOONG2E
  25. /* this pci memory space is mapped by pcimap in pci.c */
  26. #define LOONGSON_PCI_MEM_START BONITO_PCILO1_BASE
  27. #define LOONGSON_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2)
  28. /* this is an offset from mips_io_port_base */
  29. #define LOONGSON_PCI_IO_START 0x00004000UL
  30. #endif
  31. #endif /* !__ASM_MACH_LOONGSON_PCI_H_ */