pci_32.h 753 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __i386_PCI_H
  2. #define __i386_PCI_H
  3. #ifdef __KERNEL__
  4. /* Dynamic DMA mapping stuff.
  5. * i386 has everything mapped statically.
  6. */
  7. struct pci_dev;
  8. /* The PCI address space does equal the physical memory
  9. * address space. The networking and block device layers use
  10. * this boolean for bounce buffer decisions.
  11. */
  12. #define PCI_DMA_BUS_IS_PHYS (1)
  13. /* pci_unmap_{page,single} is a nop so... */
  14. #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
  15. #define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
  16. #define pci_unmap_addr(PTR, ADDR_NAME) (0)
  17. #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0)
  18. #define pci_unmap_len(PTR, LEN_NAME) (0)
  19. #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
  20. #endif /* __KERNEL__ */
  21. #endif /* __i386_PCI_H */