Deleted Added
sdiff udiff text old ( 116162 ) new ( 126076 )
full compact
1/*
2 * Implementation of SCSI Processor Target Peripheral driver for CAM.
3 *
4 * Copyright (c) 1998 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_pt.c 126076 2004-02-21 19:42:58Z phk $");
31
32#include <sys/param.h>
33#include <sys/queue.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/types.h>
37#include <sys/bio.h>
38#include <sys/devicestat.h>

--- 72 unchanged lines hidden (view full) ---

111static struct periph_driver ptdriver =
112{
113 ptinit, "pt",
114 TAILQ_HEAD_INITIALIZER(ptdriver.units), /* generation */ 0
115};
116
117PERIPHDRIVER_DECLARE(pt, ptdriver);
118
119
120static struct cdevsw pt_cdevsw = {
121 .d_open = ptopen,
122 .d_close = ptclose,
123 .d_read = physread,
124 .d_write = physwrite,
125 .d_ioctl = ptioctl,
126 .d_strategy = ptstrategy,
127 .d_name = "pt",
128};
129
130#ifndef SCSI_PT_DEFAULT_TIMEOUT
131#define SCSI_PT_DEFAULT_TIMEOUT 60
132#endif
133
134static int
135ptopen(dev_t dev, int flags, int fmt, struct thread *td)

--- 584 unchanged lines hidden ---