cam_xpt.c (111119) | cam_xpt.c (111815) |
---|---|
1/* 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/cam/cam_xpt.c 111119 2003-02-19 05:47:46Z imp $ | 29 * $FreeBSD: head/sys/cam/cam_xpt.c 111815 2003-03-03 12:15:54Z phk $ |
30 */ 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/systm.h> 34#include <sys/types.h> 35#include <sys/malloc.h> 36#include <sys/kernel.h> 37#include <sys/time.h> --- 593 unchanged lines hidden (view full) --- 631 632#define XPT_CDEV_MAJOR 104 633 634static d_open_t xptopen; 635static d_close_t xptclose; 636static d_ioctl_t xptioctl; 637 638static struct cdevsw xpt_cdevsw = { | 30 */ 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/systm.h> 34#include <sys/types.h> 35#include <sys/malloc.h> 36#include <sys/kernel.h> 37#include <sys/time.h> --- 593 unchanged lines hidden (view full) --- 631 632#define XPT_CDEV_MAJOR 104 633 634static d_open_t xptopen; 635static d_close_t xptclose; 636static d_ioctl_t xptioctl; 637 638static struct cdevsw xpt_cdevsw = { |
639 /* open */ xptopen, 640 /* close */ xptclose, 641 /* read */ noread, 642 /* write */ nowrite, 643 /* ioctl */ xptioctl, 644 /* poll */ nopoll, 645 /* mmap */ nommap, 646 /* strategy */ nostrategy, 647 /* name */ "xpt", 648 /* maj */ XPT_CDEV_MAJOR, 649 /* dump */ nodump, 650 /* psize */ nopsize, 651 /* flags */ 0, | 639 .d_open = xptopen, 640 .d_close = xptclose, 641 .d_ioctl = xptioctl, 642 .d_name = "xpt", 643 .d_maj = XPT_CDEV_MAJOR, |
652}; 653 654static struct intr_config_hook *xpt_config_hook; 655 656/* Registered busses */ 657static TAILQ_HEAD(,cam_eb) xpt_busses; 658static u_int bus_generation; 659 --- 6346 unchanged lines hidden --- | 644}; 645 646static struct intr_config_hook *xpt_config_hook; 647 648/* Registered busses */ 649static TAILQ_HEAD(,cam_eb) xpt_busses; 650static u_int bus_generation; 651 --- 6346 unchanged lines hidden --- |