Deleted Added
full compact
scsi_sa.c (111119) scsi_sa.c (111815)
1/*
1/*
2 * $FreeBSD: head/sys/cam/scsi/scsi_sa.c 111119 2003-02-19 05:47:46Z imp $
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 = {
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,
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,
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 ---
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 ---