Subject: kern/5689: SanDisk devices
To: None <gnats-bugs@gnats.netbsd.org>
From: Stefan Grefen <grefen@hprc.tandem.com>
List: netbsd-bugs
Date: 07/01/1998 20:50:54
>Number:         5689
>Category:       kern
>Synopsis:       Support for SAN Disk devices
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Jul  1 12:05:01 1998
>Last-Modified:
>Originator:     Stefan Grefen
>Organization:
Stefan Grefen                                Tandem Computers Europe Inc.
grefen@hprc.tandem.com                       High Performance Research Center
 --- Hacking's just another word for nothing left to kludge. ---
>Release:        10 june 1998 <NetBSD-current source date>
>Environment:
	
System: NetBSD hrriss 1.3B NetBSD 1.3B (HRRISS) #7: Wed Feb 11 18:47:17 GMT 1998 grefen@hrriss:/usr/src/sys/arch/i386/compile/HRRISS i386


>Description:
	Pathc to support SAN disk flahscards
	
>How-To-Repeat:
	
>Fix:
*** /sys/dev/pcmcia/wdc_pcmcia.c 	Jul  1 20:41:06 1998
--- /sys/dev/pcmcia/wdc_pcmcia.c.org	Tue Jun  9 13:16:15 1998
***************
*** 89,101 ****
  {
  	struct pcmcia_attach_args *pa = aux;
  
! 	if ((pa->card->manufacturer == 0x100 && pa->card->product == 0xd00)
! 	   || (pa->card->manufacturer == 0x45 &&  pa->card->product == 0x401)) {
! #if 0
  		if (pa->card->cis1_info[1] != NULL &&
  		    strcmp(pa->card->cis1_info[1], "Digital Mobile Media CD-ROM") == 0)
- #endif
- 
  			return 1;
  	}
  
--- 89,97 ----
  {
  	struct pcmcia_attach_args *pa = aux;
  
! 	if (pa->card->manufacturer == 0x100 && pa->card->product == 0xd00) {
  		if (pa->card->cis1_info[1] != NULL &&
  		    strcmp(pa->card->cis1_info[1], "Digital Mobile Media CD-ROM") == 0)
  			return 1;
  	}
  
***************
*** 115,121 ****
  
  	for (cfe = SIMPLEQ_FIRST(&pa->pf->cfe_head); cfe != NULL;
  	    cfe = SIMPLEQ_NEXT(cfe, cfe_list)) {
- 		if (cfe->num_iospace==0 || cfe->iospace[0].start==0) continue;
  		if (pcmcia_io_alloc(pa->pf, cfe->iospace[0].start,
  		    cfe->iospace[0].length, 0, &sc->sc_pioh))
  			continue;
--- 111,116 ----
>Audit-Trail:
>Unformatted: