Date: Wed, 23 Aug 1995 16:03:36 -0700 From: "Justin T. Gibbs" <gibbs> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/scsi scsiconf.c scsiconf.h Message-ID: <199508232303.QAA29408@freefall.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
gibbs 95/08/23 16:03:35 Modified: sys/i386/isa aha1542.c aha1742.c aic6360.c bt742a.c ncr5380.c seagate.c ultra14f.c wd7000.c sys/pci ncr.c sys/scsi scsiconf.c scsiconf.h Log: Remove hard coded assumption that SCSI busses have 7 targets. This change forces the controller drivers to allocate a scsibus_data struct via a call to scsi_alloc_bus(), fill in the adapter_link field, and optionally modify any other fields of the struct. Scsi_alloc_bus() initializes all fields to the default, so the changes in most drivers are very minimal. For drivers that support Wide controllers, the maxtarg field will have to be updated to allow probing of all targets (for an example, look at the aic7xxx driver). Scsi_attachdevs() now takes a scsibus_data* as its argument instead of an sc_link*. This allows us to expand the role of the scsibus_data struct for other bus level configuration setings (max number of transactions, current transaction opennings, etc for better tagged queuing support). Reviewed by: Rodney Grimes <rgrimes>, Peter Dufault <dufault>, Julian Elischer <julian> Modified: sys/i386/scsi aic7xxx.c Log: Remove hard coded assumption that SCSI busses have 7 targets. Change some leading spaces to tabs. This change forces the controller drivers to allocate a scsibus_data struct via a call to scsi_alloc_bus(), fill in the adapter_link field, and optionally modify any other fields of the struct. Scsi_alloc_bus() initializes all fields to the default, so the changes in most drivers are very minimal. For drivers that support Wide controllers, the maxtarg field will have to be updated to allow probing of all targets (for an example, look at the aic7xxx driver). Scsi_attachdevs() now takes a scsibus_data* as its argument instead of an sc_link*. This allows us to expand the role of the scsibus_data struct for other bus level configuration setings (max number of transactions, current transaction opennings, etc for better tagged queuing support). Reviewed by: Rodney Grimes <rgrimes>, Peter Dufault <dufault>, Julian Elischer <julian>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508232303.QAA29408>