#include <gpxe/io.h>
#include <gpxe/pci.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | pcidirect_prepare (struct pci_device *pci, int where) |
| Prepare for Type 1 PCI configuration space access. | |
| PROVIDE_PCIAPI_INLINE (direct, pci_max_bus) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_read_config_byte) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_read_config_word) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_read_config_dword) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_write_config_byte) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_write_config_word) | |
| PROVIDE_PCIAPI_INLINE (direct, pci_write_config_dword) | |
Definition in file pcidirect.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void pcidirect_prepare | ( | struct pci_device * | pci, | |
| int | where | |||
| ) |
Prepare for Type 1 PCI configuration space access.
| pci | PCI device | |
| where | Location within PCI configuration space |
Definition at line 36 of file pcidirect.c.
References pci_device::bus, pci_device::devfn, outl, and PCIDIRECT_CONFIG_ADDRESS.
00036 { 00037 outl ( ( 0x80000000 | ( pci->bus << 16 ) | ( pci->devfn << 8 ) | 00038 ( where & ~3 ) ), PCIDIRECT_CONFIG_ADDRESS ); 00039 }
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_max_bus | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_read_config_byte | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_read_config_word | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_read_config_dword | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_write_config_byte | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_write_config_word | ||||
| ) |
| PROVIDE_PCIAPI_INLINE | ( | direct | , | |
| pci_write_config_dword | ||||
| ) |
1.5.7.1