diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-01-29 00:22:30 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-01-29 00:22:30 +0000 |
commit | d6b6639713e65ebb7982ddbc864e468328acdc8f (patch) | |
tree | 082ca1801e313b9f47f64f74683fcb7200f59cf7 /sys/isa | |
parent | 2ced565834bf1df11d08fe7b5618aa1ca01adf08 (diff) | |
download | src-d6b6639713e65ebb7982ddbc864e468328acdc8f.tar.gz src-d6b6639713e65ebb7982ddbc864e468328acdc8f.zip |
Add ISA PNP tables to ISA drivers. Fix a few incidental comments.
ACPI ISA PBP tables not tagged, there's bigger issues with them.
Notes
Notes:
svn path=/head/; revision=328524
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/vga_isa.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c index b2e32a6c6c90..0d1f042fa78f 100644 --- a/sys/isa/vga_isa.c +++ b/sys/isa/vga_isa.c @@ -61,6 +61,13 @@ __FBSDID("$FreeBSD$"); #include <isa/isareg.h> #include <isa/isavar.h> +#define VGA_ID 0x0009d041 /* PNP0900 */ + +static struct isa_pnp_id vga_ids[] = { + { VGA_ID, NULL }, /* PNP0900 */ + { 0, NULL }, +}; + static void vga_suspend(device_t dev) { @@ -175,7 +182,8 @@ isavga_probe(device_t dev) adp.va_io_base, adp.va_io_size); bus_set_resource(dev, SYS_RES_MEMORY, 0, adp.va_mem_base, adp.va_mem_size); - isa_set_vendorid(dev, PNP_EISAID("PNP0900")); + isa_set_vendorid(dev, VGA_ID); + isa_set_logicalid(dev, VGA_ID); #if 0 isa_set_port(dev, adp.va_io_base); isa_set_portsize(dev, adp.va_io_size); @@ -383,3 +391,4 @@ static driver_t vgapm_driver = { }; DRIVER_MODULE(vgapm, vgapci, vgapm_driver, vgapm_devclass, 0, 0); +ISA_PNP_INFO(vga_ids); |