Deleted Added
full compact
isp_freebsd.c (125877) isp_freebsd.c (126076)
1/*
2 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters.
3 *
4 * Copyright (c) 1997, 1998, 1999, 2000, 2001 by Matthew Jacob
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*
2 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters.
3 *
4 * Copyright (c) 1997, 1998, 1999, 2000, 2001 by Matthew Jacob
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 125877 2004-02-16 17:43:57Z mjacob $");
29__FBSDID("$FreeBSD: head/sys/dev/isp/isp_freebsd.c 126076 2004-02-21 19:42:58Z phk $");
30
31#include <dev/isp/isp_freebsd.h>
32#include <sys/unistd.h>
33#include <sys/kthread.h>
34#include <machine/stdarg.h> /* for use by isp_prt below */
35#include <sys/conf.h>
36#include <sys/module.h>
37#include <sys/ioccom.h>

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

47static void isp_intr_enable(void *);
48static void isp_cam_async(void *, u_int32_t, struct cam_path *, void *);
49static void isp_poll(struct cam_sim *);
50static timeout_t isp_watchdog;
51static void isp_kthread(void *);
52static void isp_action(struct cam_sim *, union ccb *);
53
54
30
31#include <dev/isp/isp_freebsd.h>
32#include <sys/unistd.h>
33#include <sys/kthread.h>
34#include <machine/stdarg.h> /* for use by isp_prt below */
35#include <sys/conf.h>
36#include <sys/module.h>
37#include <sys/ioccom.h>

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

47static void isp_intr_enable(void *);
48static void isp_cam_async(void *, u_int32_t, struct cam_path *, void *);
49static void isp_poll(struct cam_sim *);
50static timeout_t isp_watchdog;
51static void isp_kthread(void *);
52static void isp_action(struct cam_sim *, union ccb *);
53
54
55#define ISP_CDEV_MAJOR 248
56static struct cdevsw isp_cdevsw = {
57 .d_ioctl = ispioctl,
58 .d_name = "isp",
55static struct cdevsw isp_cdevsw = {
56 .d_ioctl = ispioctl,
57 .d_name = "isp",
59 .d_maj = ISP_CDEV_MAJOR,
60};
61
62static struct ispsoftc *isplist = NULL;
63
64void
65isp_attach(struct ispsoftc *isp)
66{
67 int primary, secondary;

--- 3051 unchanged lines hidden ---
58};
59
60static struct ispsoftc *isplist = NULL;
61
62void
63isp_attach(struct ispsoftc *isp)
64{
65 int primary, secondary;

--- 3051 unchanged lines hidden ---