Subject: tcds card works in decstation!
To: None <port-pmax@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: port-pmax
Date: 01/02/2001 00:59:06
hi folks.


with the short following diff (which simply adds "tcds" and "xasc at tcds"
support config support for pmax) i am able to use both tapes and disks on
my 5000/260.  the grotty #define in asc_tcds.c will go away when then pmax
port fully switches to MI scsi and "asc" uses MI scsi, not "xasc".  i have
tested these changes on a dec3000/400 also.  quite impressive that this
driver works unchanged from the alpha port.  netbsd rules :)


i will commit this in a day or two.


.mrg.



Index: dev/tc/asc_tcds.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/tc/asc_tcds.c,v
retrieving revision 1.1
diff -p -r1.1 asc_tcds.c
*** dev/tc/asc_tcds.c	2000/07/04 02:22:19	1.1
--- dev/tc/asc_tcds.c	2001/01/01 13:51:21
*************** struct asc_softc {
*** 107,112 ****
--- 107,117 ----
  static int  asc_tcds_match  __P((struct device *, struct cfdata *, void *));
  static void asc_tcds_attach __P((struct device *, struct device *, void *));
  
+ /* XXX */
+ #ifdef pmax
+ # define asc_tcds_ca xasc_tcds_ca
+ #endif
+ 
  /* Linkup to the rest of the kernel */
  struct cfattach asc_tcds_ca = {
  	sizeof(struct asc_softc), asc_tcds_match, asc_tcds_attach
Index: dev/tc/files.tc
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/tc/files.tc,v
retrieving revision 1.20
diff -p -r1.20 files.tc
*** dev/tc/files.tc	2000/12/17 13:52:03	1.20
--- dev/tc/files.tc	2001/01/01 13:51:21
*************** file	dev/tc/if_fta.c			fta
*** 74,81 ****
  #file	dev/tc/pxg.c			pxg needs-flag
  
  # TCDS dual channel SCSI
! #device	tcds { chip = -1 }
! #attach	tcds at tc
! #file	dev/tc/tcds.c			tcds
! #attach	asc at tcds with asc_tcds	
  #file	dev/tc/asc_tcds.c		asc_tcds
--- 74,85 ----
  #file	dev/tc/pxg.c			pxg needs-flag
  
  # TCDS dual channel SCSI
! device	tcds { chip = -1 }
! attach	tcds at tc
! file	dev/tc/tcds.c			tcds
! 
! # XXX waiting on pmax MI scsi being `asc'.
! # 53C[F]90 SCSI
! #device	asc: scsi, ncr53c9x
! #attach	asc at tcds with asc_tcds
  #file	dev/tc/asc_tcds.c		asc_tcds
Index: arch/pmax/conf/files.pmax
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/pmax/conf/files.pmax,v
retrieving revision 1.89
diff -p -r1.89 files.pmax
*** arch/pmax/conf/files.pmax	2000/11/23 09:44:14	1.89
--- arch/pmax/conf/files.pmax	2001/01/01 13:51:21
*************** file    arch/pmax/tc/asc_pmaz.c         
*** 142,147 ****
--- 142,151 ----
  attach  xasc at ioasic with xasc_ioasic   
  file    arch/pmax/tc/asc_ioasic.c       xasc_ioasic
  
+ # XXX waiting on pmax MI scsi being `asc'.
+ # 53C[F]90 SCSI
+ attach	xasc at tcds with xasc_tcds
+ file	dev/tc/asc_tcds.c		xasc_tcds
  
  # DC7085 (DZ-like four-port serial device) on ibus
  device dc: tty
Index: arch/alpha/conf/files.alpha
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/alpha/conf/files.alpha,v
retrieving revision 1.130
diff -p -r1.130 files.alpha
*** arch/alpha/conf/files.alpha	2000/12/14 18:06:14	1.130
--- arch/alpha/conf/files.alpha	2001/01/01 13:51:22
*************** device	lkkbd: wskbddev
*** 199,209 ****
  attach	lkkbd at zsc with zskbd
  file	dev/tc/zskbd.c			zskbd		needs-flag
  
- # the TCDS ASIC
- device	tcds { chip = -1 }
- attach	tcds at tc
- file	dev/tc/tcds.c			tcds
- 
  # 53C[F]90 SCSI
  device	asc: scsi, ncr53c9x
  attach	asc at tcds with asc_tcds
--- 199,204 ----