1/*
2 * $FreeBSD: head/sys/cam/scsi/scsi_sa.c 111119 2003-02-19 05:47:46Z imp $
3 *
4 * Implementation of SCSI Sequential Access Peripheral driver for CAM.
5 *
6 * Copyright (c) 1999, 2000 Matthew Jacob
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
--- 410 unchanged lines hidden (view full) ---
421/* For 2.2-stable support */
422#ifndef D_TAPE
423#define D_TAPE 0
424#endif
425
426#define SA_CDEV_MAJOR 14
427
428static struct cdevsw sa_cdevsw = {
429 /* open */ saopen,
430 /* close */ saclose,
431 /* read */ physread,
432 /* write */ physwrite,
433 /* ioctl */ saioctl,
434 /* poll */ nopoll,
435 /* mmap */ nommap,
436 /* strategy */ sastrategy,
437 /* name */ "sa",
438 /* maj */ SA_CDEV_MAJOR,
439 /* dump */ nodump,
440 /* psize */ nopsize,
441 /* flags */ D_TAPE,
442};
443
444static int
445saopen(dev_t dev, int flags, int fmt, struct thread *td)
446{
447 struct cam_periph *periph;
448 struct sa_softc *softc;
449 int unit;
--- 3139 unchanged lines hidden ---
2 * $FreeBSD: head/sys/cam/scsi/scsi_sa.c 111119 2003-02-19 05:47:46Z imp $
3 *
4 * Implementation of SCSI Sequential Access Peripheral driver for CAM.
5 *
6 * Copyright (c) 1999, 2000 Matthew Jacob
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
--- 410 unchanged lines hidden (view full) ---
421/* For 2.2-stable support */
422#ifndef D_TAPE
423#define D_TAPE 0
424#endif
425
426#define SA_CDEV_MAJOR 14
427
428static struct cdevsw sa_cdevsw = {
429 /* open */ saopen,
430 /* close */ saclose,
431 /* read */ physread,
432 /* write */ physwrite,
433 /* ioctl */ saioctl,
434 /* poll */ nopoll,
435 /* mmap */ nommap,
436 /* strategy */ sastrategy,
437 /* name */ "sa",
438 /* maj */ SA_CDEV_MAJOR,
439 /* dump */ nodump,
440 /* psize */ nopsize,
441 /* flags */ D_TAPE,
442};
443
444static int
445saopen(dev_t dev, int flags, int fmt, struct thread *td)
446{
447 struct cam_periph *periph;
448 struct sa_softc *softc;
449 int unit;
--- 3139 unchanged lines hidden ---