diff options
author | msmith <msmith@FreeBSD.org> | 2000-04-16 20:48:33 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-04-16 20:48:33 +0000 |
commit | 087c82acdb8383ded1820689980c59ee9fab52c6 (patch) | |
tree | 559bc6b745fdd12c5e689a44904bcf714abd567d /sys/i386/include | |
parent | 9ae9f06eb1d211d712c6ce5cc3d26ac0336230a4 (diff) | |
download | FreeBSD-src-087c82acdb8383ded1820689980c59ee9fab52c6.zip FreeBSD-src-087c82acdb8383ded1820689980c59ee9fab52c6.tar.gz |
Some more i386-only BIOS-friendliness:
- Add support for using the PCI BIOS functions for configuration space
accesses, and make this the default.
- Make PNPBIOS the default (obsoletes the PNPBIOS config option).
- Add two new boot-time tunables to disable each of the above.
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/pc/bios.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/i386/include/pc/bios.h b/sys/i386/include/pc/bios.h index 3a31786..1d8b893 100644 --- a/sys/i386/include/pc/bios.h +++ b/sys/i386/include/pc/bios.h @@ -54,6 +54,7 @@ struct bios32_SDentry u_int32_t base; /* base of service */ u_int32_t len; /* service length */ u_int32_t entry; /* entrypoint offset from base */ + vm_offset_t ventry; /* entrypoint in kernel virtual segment */ }; extern int bios32_SDlookup(struct bios32_SDentry *ent); @@ -203,6 +204,16 @@ struct bios_args { #define PNP_GET_BOOTFIRST "sp", 0x65 #define PNP_SET_BOOTFIRST "sp", 0x66 +/* + * PCI BIOS functions + */ +#define PCIBIOS_READ_CONFIG_BYTE 0xb108 +#define PCIBIOS_READ_CONFIG_WORD 0xb109 +#define PCIBIOS_READ_CONFIG_DWORD 0xb10a +#define PCIBIOS_WRITE_CONFIG_BYTE 0xb10b +#define PCIBIOS_WRITE_CONFIG_WORD 0xb10c +#define PCIBIOS_WRITE_CONFIG_DWORD 0xb10d + extern int bios16(struct bios_args *, char *, ...); extern int bios16_call(struct bios_regs *, char *); extern int bios32(struct bios_regs *, u_int, u_short); |