summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1996-03-31 03:06:20 +0000
committergibbs <gibbs@FreeBSD.org>1996-03-31 03:06:20 +0000
commitf9a1865e1977968b3e33b0e7dcb8916b485fa194 (patch)
treea05f6904abc84d31feb3f5cb01224a9413555eba /sys/i386/isa
parent4aa004468ac81d89447ab498bb8e0c2c6b54f4c4 (diff)
downloadFreeBSD-src-f9a1865e1977968b3e33b0e7dcb8916b485fa194.zip
FreeBSD-src-f9a1865e1977968b3e33b0e7dcb8916b485fa194.tar.gz
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.
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/bt5xx-445.c9
1 files changed, 8 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud