diff options
Diffstat (limited to 'sys/i386/isa/wst.c')
| -rw-r--r-- | sys/i386/isa/wst.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c index 3d2f4e8e59149..ff5f5435f31ec 100644 --- a/sys/i386/isa/wst.c +++ b/sys/i386/isa/wst.c @@ -25,13 +25,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.14 1999/01/12 00:36:36 eivind Exp $ + * $Id$ */ #include "wdc.h" #include "wst.h" #include "opt_atapi.h" -#include "opt_ddb.h" #include "opt_devfs.h" #if NWST > 0 && NWDC > 0 && defined(ATAPI) @@ -200,6 +199,7 @@ static int wstattach(struct atapi *ata, int unit, struct atapi_params *ap, int debug); static int wst_sense(struct wst *t); static void wst_describe(struct wst *t); +static int wst_open(dev_t dev, int chardev); static void wst_poll_dsc(struct wst *t); static void wst_start(struct wst *t); static void wst_done(struct wst *t, struct buf *bp, int resid, struct atapires result); @@ -212,10 +212,7 @@ static int wst_load_unload(struct wst *t, u_char finction); static int wst_rewind(struct wst *t); static void wst_reset(struct wst *t); -#ifdef DDB -void wst_dump(int lun, char *label, void *data, int len); - -void +static void wst_dump(int lun, char *label, void *data, int len) { u_char *p = data; @@ -225,7 +222,6 @@ wst_dump(int lun, char *label, void *data, int len) printf("-%x", *p++); printf("\n"); } -#endif #ifndef ATAPI_STATIC static @@ -234,7 +230,9 @@ int wstattach(struct atapi *ata, int unit, struct atapi_params *ap, int debug) { struct wst *t; - int lun; + struct atapires result; + int lun, i; + char buffer[255]; if (wstnlun >= NUNIT) { printf("wst: too many units\n"); @@ -350,7 +348,9 @@ int wstopen(dev_t dev, int flags, int fmt, struct proc *p) { int lun = UNIT(dev); + char buffer[255]; struct wst *t; + struct atapires result; /* Check that the device number and that the ATAPI driver is loaded. */ if (lun >= wstnlun || !atapi_request_immediate) { |
