aboutsummaryrefslogtreecommitdiff
path: root/pci.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-03-29 01:15:53 +0200
committerJavier <dev.git@javispedro.com>2022-03-29 01:15:53 +0200
commita816d1a09b1045fb5c155ac73f3231fcf9d93180 (patch)
treec4e31e850b9f2afb36acd6119483cf350c33f596 /pci.h
parent67ebca92621aef31ff97705013456e95e60f7fbe (diff)
downloadvbados-a816d1a09b1045fb5c155ac73f3231fcf9d93180.tar.gz
vbados-a816d1a09b1045fb5c155ac73f3231fcf9d93180.zip
initial import of DOS mouse driver
Diffstat (limited to 'pci.h')
-rw-r--r--pci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pci.h b/pci.h
index 265c38a..8d0b7a8 100644
--- a/pci.h
+++ b/pci.h
@@ -50,7 +50,7 @@ static pcierr pci_init_bios(void);
__value [ah] \
__modify [ax bx cx dx]
-static pcierr pci_find_device(pcisel *sel, unsigned short vendor_id, unsigned short dev_id, unsigned short index);
+static pcierr pci_find_device(pcisel __far *sel, unsigned short vendor_id, unsigned short dev_id, unsigned short index);
#pragma aux pci_find_device = \
"mov ax, 0xB102" \
"int 0x1A" \
@@ -63,7 +63,7 @@ static pcierr pci_find_device(pcisel *sel, unsigned short vendor_id, unsigned sh
/* Reading from configuration space */
-static pcierr pci_read_config_byte(pcisel sel, unsigned char reg, unsigned char *data);
+static pcierr pci_read_config_byte(pcisel sel, unsigned char reg, unsigned char __far *data);
#pragma aux pci_read_config_byte = \
"mov ax, 0xB108" \
"int 0x1A" \
@@ -72,7 +72,7 @@ static pcierr pci_read_config_byte(pcisel sel, unsigned char reg, unsigned char
__value [ah] \
__modify [ax cx]
-static pcierr pci_read_config_word(pcisel sel, unsigned char reg, unsigned short *data);
+static pcierr pci_read_config_word(pcisel sel, unsigned char reg, unsigned short __far *data);
#pragma aux pci_read_config_word = \
"mov ax, 0xB109" \
"int 0x1A" \
@@ -81,7 +81,7 @@ static pcierr pci_read_config_word(pcisel sel, unsigned char reg, unsigned short
__value [ah] \
__modify [ax cx]
-static pcierr pci_read_config_dword(pcisel sel, unsigned char reg, unsigned long *data);
+static pcierr pci_read_config_dword(pcisel sel, unsigned char reg, unsigned long __far *data);
#pragma aux pci_read_config_dword = \
"mov ax, 0xB10A" \
"int 0x1A" \