Deleted Added
full compact
cam_periph.h (111979) cam_periph.h (132199)
1/*
2 * Data structures and definitions for CAM peripheral ("type") drivers.
3 *
4 * Copyright (c) 1997, 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

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*
2 * Data structures and definitions for CAM peripheral ("type") drivers.
3 *
4 * Copyright (c) 1997, 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

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

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/cam/cam_periph.h 111979 2003-03-08 08:01:31Z phk $
28 * $FreeBSD: head/sys/cam/cam_periph.h 132199 2004-07-15 08:26:07Z phk $
29 */
30
31#ifndef _CAM_CAM_PERIPH_H
32#define _CAM_CAM_PERIPH_H 1
33
34#include <sys/queue.h>
35
36#ifdef _KERNEL

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

48 { \
49 switch (type) { \
50 case MOD_LOAD: \
51 periphdriver_register(data); \
52 break; \
53 case MOD_UNLOAD: \
54 printf(#name " module unload - not possible for this module type\n"); \
55 return EINVAL; \
29 */
30
31#ifndef _CAM_CAM_PERIPH_H
32#define _CAM_CAM_PERIPH_H 1
33
34#include <sys/queue.h>
35
36#ifdef _KERNEL

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

48 { \
49 switch (type) { \
50 case MOD_LOAD: \
51 periphdriver_register(data); \
52 break; \
53 case MOD_UNLOAD: \
54 printf(#name " module unload - not possible for this module type\n"); \
55 return EINVAL; \
56 default: \
57 return EOPNOTSUPP; \
56 } \
57 return 0; \
58 } \
59 static moduledata_t name ## _mod = { \
60 #name, \
61 name ## _modevent, \
62 (void *)&driver \
63 }; \

--- 113 unchanged lines hidden ---
58 } \
59 return 0; \
60 } \
61 static moduledata_t name ## _mod = { \
62 #name, \
63 name ## _modevent, \
64 (void *)&driver \
65 }; \

--- 113 unchanged lines hidden ---