summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/bt742a.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/bt742a.c')
-rw-r--r--sys/i386/isa/bt742a.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/i386/isa/bt742a.c b/sys/i386/isa/bt742a.c
index 07df053..4c0e44b 100644
--- a/sys/i386/isa/bt742a.c
+++ b/sys/i386/isa/bt742a.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: bt742a.c,v 1.38 1995/06/25 17:45:05 joerg Exp $
+ * $Id: bt742a.c,v 1.39 1995/07/25 16:06:06 bde Exp $
*/
/*
@@ -692,6 +692,7 @@ btattach(dev)
{
int unit = dev->id_unit;
struct bt_data *bt = btdata[unit];
+ struct scsibus_data *scbus;
btprobing = 0;
/*
@@ -703,12 +704,22 @@ btattach(dev)
bt->sc_link.device = &bt_dev;
bt->sc_link.flags = SDEV_BOUNCE;
+ /*
+ * Prepare the scsibus_data area for the upperlevel
+ * scsi code.
+ */
+ scbus = scsi_alloc_bus();
+ /* XXX scbus->magtarg should be adjusted for Wide cards */
+ if(!scbus)
+ return 0;
+ scbus->adapter_link = &bt->sc_link;
+
kdc_bt[unit].kdc_state = DC_BUSY; /* host adapters are always busy */
/*
* ask the adapter what subunits are present
*/
- scsi_attachdevs(&(bt->sc_link));
+ scsi_attachdevs(scbus);
return 1;
}
OpenPOWER on IntegriCloud