aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/pci/writebios.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/writebios.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/writebios.c')
-rw-r--r--com32/lib/pci/writebios.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/com32/lib/pci/writebios.c b/com32/lib/pci/writebios.c
deleted file mode 100644
index d367eee7..00000000
--- a/com32/lib/pci/writebios.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <com32.h>
-#include <string.h>
-#include "pci/pci.h"
-
-void __pci_write_bios(uint32_t call, uint32_t v, pciaddr_t a)
-{
- com32sys_t rs;
- memset(&rs, 0, sizeof rs);
- rs.eax.w[0] = call;
- rs.ebx.w[0] = a >> 8; /* bus:device:function */
- rs.edi.b[0] = a; /* address:reg */
- rs.ecx.l = v;
- __intcall(0x1a, &rs, NULL);
-}