summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-06-08 16:57:04 +0200
committerMichael Brown2006-06-08 16:57:04 +0200
commit191a9063382b16a7cc57b6dcbb89fd9a93804121 (patch)
tree54ac01cdf1233281f91f50c5df61f20d0a9bffca /src
parentWe now have just romprefix, rather than having isaprefix and pciprefix (diff)
downloadipxe-191a9063382b16a7cc57b6dcbb89fd9a93804121.tar.gz
ipxe-191a9063382b16a7cc57b6dcbb89fd9a93804121.tar.xz
ipxe-191a9063382b16a7cc57b6dcbb89fd9a93804121.zip
Fix some remarkably obvious mistakes in pcidirect.h
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/include/pcidirect.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/i386/include/pcidirect.h b/src/arch/i386/include/pcidirect.h
index 80e140195..4e2e9d122 100644
--- a/src/arch/i386/include/pcidirect.h
+++ b/src/arch/i386/include/pcidirect.h
@@ -71,7 +71,7 @@ static inline __attribute__ (( always_inline )) int
pcidirect_read_config_dword ( struct pci_device *pci, unsigned int where,
uint32_t *value ) {
pcidirect_prepare ( pci, where );
- *value = inl ( PCIDIRECT_CONFIG_DATA + where );
+ *value = inl ( PCIDIRECT_CONFIG_DATA );
return 0;
}
@@ -103,7 +103,7 @@ static inline __attribute__ (( always_inline )) int
pcidirect_write_config_word ( struct pci_device *pci, unsigned int where,
uint16_t value ) {
pcidirect_prepare ( pci, where );
- outb ( value, PCIDIRECT_CONFIG_DATA + ( where & 2 ) );
+ outw ( value, PCIDIRECT_CONFIG_DATA + ( where & 2 ) );
return 0;
}
@@ -119,7 +119,7 @@ static inline __attribute__ (( always_inline )) int
pcidirect_write_config_dword ( struct pci_device *pci, unsigned int where,
uint32_t value ) {
pcidirect_prepare ( pci, where );
- outb ( value, PCIDIRECT_CONFIG_DATA + where );
+ outl ( value, PCIDIRECT_CONFIG_DATA );
return 0;
}