Subject: port-amiga/1350: wstsc SCSI driver can be made to work with Supra ByteSync
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmaddox@scsn.net>
List: netbsd-bugs
Date: 08/12/1995 19:05:49
>Number: 1350
>Category: port-amiga
>Synopsis: Supra ByteSync SCSI controller is not supported
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Aug 12 23:35:01 1995
>Last-Modified:
>Originator: Donald J. Maddox
>Organization:
NA
>Release: NetBSD-current 12-Aug-95
>Environment:
Any Amiga using a Supra ByteSync SCSI controller
System: NetBSD rhiannon.scsn.net 1.0A NetBSD 1.0A (RHIANNON) #28: Sat Aug 12 18:18:25 EDT 1995 dmaddox@rhiannon.scsn.net:/usr/src/sys/arch/amiga/compile/RHIANNON amiga
Architecture: amiga
>Description:
The wstsc SCSI code works perfectly well for the Supra ByteSync
controller if a check for it's prodid is added...
>How-To-Repeat:
NA
>Fix:
Apply the following patch in src/sys/arch/amiga/dev:
*** wstsc.c Mon Feb 13 05:08:47 1995
--- /usr/src/sys/arch/amiga/dev/wstsc.c Sat Aug 12 18:10:59 1995
***************
*** 83,89 ****
extern int sci_data_wait;
! int supradma_pseudo = 0; /* 0=none, 1=byte, 2=word */
struct cfdriver wstsccd = {
NULL, "wstsc", (cfmatch_t)wstscmatch, wstscattach,
--- 83,89 ----
extern int sci_data_wait;
! int supradma_pseudo = 1; /* 0=none, 1=byte, 2=word */
struct cfdriver wstsccd = {
NULL, "wstsc", (cfmatch_t)wstscmatch, wstscattach,
***************
*** 105,111 ****
/*
* Check manufacturer and product id.
*/
! if (zap->manid == 1056 && zap->prodid == 12) /* add other boards? */
return(1);
else
return(0);
--- 105,112 ----
/*
* Check manufacturer and product id.
*/
! /* prodid 13 is actually Supra ByteSync... */
! if (zap->manid == 1056 && (zap->prodid == 12 || zap->prodid == 13))
return(1);
else
return(0);
*** zbus.c Wed Jul 5 02:52:39 1995
--- /usr/src/sys/arch/amiga/dev/zbus.c Sat Aug 12 18:21:02 1995
***************
*** 86,91 ****
--- 86,95 ----
{ "vhzsc", 1010, 69 },
/* Supra */
{ "wstsc", 1056, 12 },
+ /* Maybe this should be a different identifier (bstsc ?), */
+ /* but the wstsc driver works fine for the Supra ByteSync */
+ /* as well, so let's use it... */
+ { "wstsc", 1056, 13 },
/* IVS */
{ "itrmp", 2112, 52 },
{ "ivasc", 2112, 242 },
>Audit-Trail:
>Unformatted: