summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2006-06-08 17:06:09 +0200
committerMichael Brown2006-06-08 17:06:09 +0200
commitfdf62528ca46f6e7e9bc75207e8c49f60e510c07 (patch)
treefd62787b7c665237c5788d3f1a7ff0fd70b53483 /src/arch/i386/include
parentFix some remarkably obvious mistakes in pcidirect.h (diff)
downloadipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.tar.gz
ipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.tar.xz
ipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.zip
It's astonishing how long really fundamental bugs can survive without
being noticed...
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/pcibios.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/include/pcibios.h b/src/arch/i386/include/pcibios.h
index dcbffedce..3d08d135b 100644
--- a/src/arch/i386/include/pcibios.h
+++ b/src/arch/i386/include/pcibios.h
@@ -102,7 +102,7 @@ pcibios_write_config_byte ( struct pci_device *pci, unsigned int where,
static inline __attribute__ (( always_inline )) int
pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
uint16_t value ) {
- return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value );
+ return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_WORD | where, value );
}
/**
@@ -116,7 +116,7 @@ pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
static inline __attribute__ (( always_inline )) int
pcibios_write_config_dword ( struct pci_device *pci, unsigned int where,
uint32_t value ) {
- return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value );
+ return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_DWORD | where, value);
}
#endif /* _PCIBIOS_H */