Deleted Added
full compact
scsi_pt.c (116162) scsi_pt.c (126076)
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>
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 116162 2003-06-10 18:14:05Z obrien $");
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
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#define PT_CDEV_MAJOR 61
120
121static struct cdevsw pt_cdevsw = {
122 .d_open = ptopen,
123 .d_close = ptclose,
124 .d_read = physread,
125 .d_write = physwrite,
126 .d_ioctl = ptioctl,
127 .d_strategy = ptstrategy,
128 .d_name = "pt",
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",
129 .d_maj = PT_CDEV_MAJOR,
130};
131
132#ifndef SCSI_PT_DEFAULT_TIMEOUT
133#define SCSI_PT_DEFAULT_TIMEOUT 60
134#endif
135
136static int
137ptopen(dev_t dev, int flags, int fmt, struct thread *td)

--- 584 unchanged lines hidden ---
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 ---