From f9a1865e1977968b3e33b0e7dcb8916b485fa194 Mon Sep 17 00:00:00 2001 From: gibbs Date: Sun, 31 Mar 1996 03:06:20 +0000 Subject: Override the unit number passed into us in the isa_device structure with the current unit in bt_unit. We do this as a kludge to make the unit nubmer work properly between the pci/eisa/isa bt boards that are in the system. --- sys/i386/isa/bt5xx-445.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/i386/isa') diff --git a/sys/i386/isa/bt5xx-445.c b/sys/i386/isa/bt5xx-445.c index 6d7b9bb..fdf1457 100644 --- a/sys/i386/isa/bt5xx-445.c +++ b/sys/i386/isa/bt5xx-445.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: bt5xx-445.c,v 1.1 1995/12/12 08:50:54 gibbs Exp $ + * $Id: bt5xx-445.c,v 1.2 1995/12/14 14:19:15 peter Exp $ */ /* @@ -91,6 +91,13 @@ bt_isa_probe(dev) struct bt_data *bt; /* + * We ignore the unit number assigned by config to allow + * consistant numbering between PCI/EISA/ISA devices. + * This is a total kludge until we have a configuration + * manager. + */ + dev->id_unit = bt_unit; + /* * Allocate a storage area for us */ bt = bt_alloc(unit, dev->id_iobase); -- cgit v1.1