Deleted Added
full compact
cam_xpt.c (122347) cam_xpt.c (126076)
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

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

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
30#include <sys/cdefs.h>
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

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

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
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/cam/cam_xpt.c 122347 2003-11-09 02:22:33Z scottl $");
31__FBSDID("$FreeBSD: head/sys/cam/cam_xpt.c 126076 2004-02-21 19:42:58Z phk $");
32
33#include <sys/param.h>
34#include <sys/bus.h>
35#include <sys/systm.h>
36#include <sys/types.h>
37#include <sys/malloc.h>
38#include <sys/kernel.h>
39#include <sys/time.h>

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

625{
626 probe_periph_init, "probe",
627 TAILQ_HEAD_INITIALIZER(probe_driver.units)
628};
629
630PERIPHDRIVER_DECLARE(xpt, xpt_driver);
631PERIPHDRIVER_DECLARE(probe, probe_driver);
632
32
33#include <sys/param.h>
34#include <sys/bus.h>
35#include <sys/systm.h>
36#include <sys/types.h>
37#include <sys/malloc.h>
38#include <sys/kernel.h>
39#include <sys/time.h>

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

625{
626 probe_periph_init, "probe",
627 TAILQ_HEAD_INITIALIZER(probe_driver.units)
628};
629
630PERIPHDRIVER_DECLARE(xpt, xpt_driver);
631PERIPHDRIVER_DECLARE(probe, probe_driver);
632
633#define XPT_CDEV_MAJOR 104
634
635static d_open_t xptopen;
636static d_close_t xptclose;
637static d_ioctl_t xptioctl;
638
639static struct cdevsw xpt_cdevsw = {
640 .d_open = xptopen,
641 .d_close = xptclose,
642 .d_ioctl = xptioctl,
643 .d_name = "xpt",
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",
644 .d_maj = XPT_CDEV_MAJOR,
645};
646
647static struct intr_config_hook *xpt_config_hook;
648
649/* Registered busses */
650static TAILQ_HEAD(,cam_eb) xpt_busses;
651static u_int bus_generation;
652

--- 6401 unchanged lines hidden ---
643};
644
645static struct intr_config_hook *xpt_config_hook;
646
647/* Registered busses */
648static TAILQ_HEAD(,cam_eb) xpt_busses;
649static u_int bus_generation;
650

--- 6401 unchanged lines hidden ---