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 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 = {
639 .d_open = xptopen,
640 .d_close = xptclose,
641 .d_ioctl = xptioctl,
642 .d_name = "xpt",
643 .d_maj = XPT_CDEV_MAJOR,
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 ---
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 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 = {
639 .d_open = xptopen,
640 .d_close = xptclose,
641 .d_ioctl = xptioctl,
642 .d_name = "xpt",
643 .d_maj = XPT_CDEV_MAJOR,
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 ---