You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pci_io.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _PCI_IO_H
  2. #define _PCI_IO_H
  3. #include <pcibios.h>
  4. #include <pcidirect.h>
  5. /** @file
  6. *
  7. * i386 PCI configuration space access
  8. *
  9. * We have two methods of PCI configuration space access: the PCI BIOS
  10. * and direct Type 1 accesses. Selecting between them is via the
  11. * compile-time switch -DCONFIG_PCI_DIRECT.
  12. *
  13. */
  14. #if CONFIG_PCI_DIRECT
  15. #define pci_max_bus pcidirect_max_bus
  16. #define pci_read_config_byte pcidirect_read_config_byte
  17. #define pci_read_config_word pcidirect_read_config_word
  18. #define pci_read_config_dword pcidirect_read_config_dword
  19. #define pci_write_config_byte pcidirect_write_config_byte
  20. #define pci_write_config_word pcidirect_write_config_word
  21. #define pci_write_config_dword pcidirect_write_config_dword
  22. #else /* CONFIG_PCI_DIRECT */
  23. #define pci_max_bus pcibios_max_bus
  24. #define pci_read_config_byte pcibios_read_config_byte
  25. #define pci_read_config_word pcibios_read_config_word
  26. #define pci_read_config_dword pcibios_read_config_dword
  27. #define pci_write_config_byte pcibios_write_config_byte
  28. #define pci_write_config_word pcibios_write_config_word
  29. #define pci_write_config_dword pcibios_write_config_dword
  30. #endif /* CONFIG_PCI_DIRECT */
  31. #endif /* _PCI_IO_H */