1/*
2 * $FreeBSD: head/sys/cam/scsi/scsi_sa.c 111815 2003-03-03 12:15:54Z phk $
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 .d_open = saopen,
430 .d_close = saclose,
431 .d_read = physread,
432 .d_write = physwrite,
433 .d_ioctl = saioctl,
434 .d_strategy = sastrategy,
435 .d_name = "sa",
436 .d_maj = SA_CDEV_MAJOR,
437 .d_flags = D_TAPE,
438};
439
440static int
441saopen(dev_t dev, int flags, int fmt, struct thread *td)
442{
443 struct cam_periph *periph;
444 struct sa_softc *softc;
445 int unit;
--- 3139 unchanged lines hidden ---
2 * $FreeBSD: head/sys/cam/scsi/scsi_sa.c 111815 2003-03-03 12:15:54Z phk $
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 .d_open = saopen,
430 .d_close = saclose,
431 .d_read = physread,
432 .d_write = physwrite,
433 .d_ioctl = saioctl,
434 .d_strategy = sastrategy,
435 .d_name = "sa",
436 .d_maj = SA_CDEV_MAJOR,
437 .d_flags = D_TAPE,
438};
439
440static int
441saopen(dev_t dev, int flags, int fmt, struct thread *td)
442{
443 struct cam_periph *periph;
444 struct sa_softc *softc;
445 int unit;
--- 3139 unchanged lines hidden ---