aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/pci/readx.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/readx.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/readx.c')
-rw-r--r--com32/lib/pci/readx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/pci/readx.c b/com32/lib/pci/readx.c
index f073eaa1..ed66d5b2 100644
--- a/com32/lib/pci/readx.c
+++ b/com32/lib/pci/readx.c
@@ -1,7 +1,7 @@
#include "pci/pci.h"
-#include <string.h>
-TYPE BWL(pci_read) (pciaddr_t a) {
+TYPE BWL(pci_read) (pciaddr_t a)
+{
TYPE r;
for (;;) {
@@ -42,7 +42,7 @@ TYPE BWL(pci_read) (pciaddr_t a) {
return r;
case PCI_CFG_BIOS:
- return (TYPE) __pci_read_bios(BIOSCALL, a);
+ return (TYPE) __pci_read_write_bios(BIOSCALL, 0, a);
default:
return (TYPE) ~ 0;