aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/pci/writex.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-20 22:26:39 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-20 22:27:28 -0800
commitee43a6e64a6498f457e46f1e2844ab3506ba889d (patch)
tree9808fb8bb8e65b7256d7551ba6a32297e8389636 /com32/lib/pci/writex.c
parent9591feebc4ea6f5469027f26ef0759c91e42cafe (diff)
downloadsyslinux.git-master.tar.gz
syslinux.git-master.tar.xz
syslinux.git-master.zip
libpci: merge BIOS read and BIOS writeHEADmaster
Save a few bytes by merging the very similar BIOS read and BIOS write functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/pci/writex.c')
-rw-r--r--com32/lib/pci/writex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/lib/pci/writex.c b/com32/lib/pci/writex.c
index 14b20380..d83a1eed 100644
--- a/com32/lib/pci/writex.c
+++ b/com32/lib/pci/writex.c
@@ -1,6 +1,7 @@
#include "pci/pci.h"
-void BWL(pci_write) (TYPE v, pciaddr_t a) {
+void BWL(pci_write)(TYPE v, pciaddr_t a)
+{
for (;;) {
switch (__pci_cfg_type) {
case PCI_CFG_AUTO:
@@ -39,7 +40,7 @@ void BWL(pci_write) (TYPE v, pciaddr_t a) {
return;
case PCI_CFG_BIOS:
- __pci_write_bios(BIOSCALL, v, a);
+ __pci_read_write_bios(BIOSCALL, v, a);
return;
default: