Subject: atapi + 1.1...
To: None <port-i386@NetBSD.ORG>
From: Darren Reed <darrenr@cyber.com.au>
List: port-i386
Date: 03/09/1996 22:50:36
Looks like a little work is needed.

When I used the diff's against 1.1, some of the patches failed :-(
(See below).

Also, the driver reports, incorrectly, the drive status:

boot with freebsd:

wdc0: unit 1 (atapi): <MATSHITA CR-581/1.07>, removable, accel, iordis
wcd0: 689Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray
wcd0: medium type unknown, unlocked

boot with netbsd 1.1 + atapi:

atapibus0 at wdc0
atapibus0 drive1: <MATSHITA CR-581, , 1.07> cdrom, removable.
acd0 at atapibus0 drive 1: drive empty 

and when I first mount:
cd0(wdc0:1): unit attention, command:  0  0  0  0  0  0  0  0  0  0  0  0

darren

/sys/dev/isa/wd.c.rej:
***************
*** 873,881 ****
        int flag, fmt;
  {     
        struct wd_softc *wd;
        int unit, part;
        int error;

        unit = WDUNIT(dev); 
        if (unit >= wdcd.cd_ndevs)
                return ENXIO;
--- 353,367 ----
        int flag, fmt;
  {
        struct wd_softc *wd;
+       struct wd_link *d_link;
        int unit, part;
        int error;

+ #ifdef WDDEBUG
+     printf("wdopen\n");
+ #endif
+
        unit = WDUNIT(dev);
        if (unit >= wdcd.cd_ndevs)
                return ENXIO;
***************
*** 1409,1414 ****
        struct wd_softc *wd;
        int part;
        int size;

        if (wdopen(dev, 0, S_IFBLK) != 0)
                return -1;
--- 686,694 ----
        struct wd_softc *wd;
        int part; 
        int size; 
+ #ifdef WDDEBUG
+     printf("wdsize\n");
+ #endif

        if (wdopen(dev, 0, S_IFBLK) != 0)
                return -1;