diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-11-04 22:07:44 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-11-04 22:07:44 +0000 |
commit | e6d21d1c1c73a57e4dff8aec6555135f19ae506d (patch) | |
tree | 4c8cef3f16250333f53abbaa2ab83a3d4238efa1 /sys/dev | |
parent | 50cfbc2e1f45d31a4210986ac833fd1f1be78afe (diff) |
Support ISA VGA for real on DEC AXPPCI 33
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/vga_isa.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/isa/vga_isa.c b/sys/dev/isa/vga_isa.c index 0b389854948..0c16194a3d6 100644 --- a/sys/dev/isa/vga_isa.c +++ b/sys/dev/isa/vga_isa.c @@ -76,6 +76,11 @@ vga_isa_match(parent, match, aux) { struct isa_attach_args *ia = aux; int rv; + static int matched; + + /* There can be only one. */ + if (matched) + return (0); /* If values are hardwired to something that they can't be, punt. */ if (ia->ia_iobase != IOBASEUNK || /* ia->ia_iosize != 0 || XXX isa.c */ @@ -84,16 +89,14 @@ vga_isa_match(parent, match, aux) ia->ia_irq != IRQUNK || ia->ia_drq != DRQUNK) return (0); - if (vga_isa_console_tag) - return (1); - - rv = vga_common_probe(ia->ia_iot, ia->ia_memt); + rv = vga_isa_console_tag || vga_common_probe(ia->ia_iot, ia->ia_memt); if (rv) { ia->ia_iobase = 0x3b0; ia->ia_iosize = 0x30; ia->ia_maddr = 0xb8000; ia->ia_msize = 0x8000; + matched = 1; } return (rv); } |