From e6d21d1c1c73a57e4dff8aec6555135f19ae506d Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 4 Nov 1997 22:07:44 +0000 Subject: Support ISA VGA for real on DEC AXPPCI 33 --- sys/dev/isa/vga_isa.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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); } -- cgit v1.2.3