1/* $FreeBSD: head/sys/dev/isp/isp_freebsd.c 104806 2002-10-10 17:29:05Z mjacob $ */
2/*
3 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters.
4 *
5 * Copyright (c) 1997, 1998, 1999, 2000, 2001 by Matthew Jacob
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
--- 35 unchanged lines hidden (view full) ---
45static void isp_poll(struct cam_sim *);
46static timeout_t isp_watchdog;
47static void isp_kthread(void *);
48static void isp_action(struct cam_sim *, union ccb *);
49
50
51#define ISP_CDEV_MAJOR 248
52static struct cdevsw isp_cdevsw = {
53 /* open */ nullopen,
54 /* close */ nullclose,
55 /* read */ noread,
56 /* write */ nowrite,
57 /* ioctl */ ispioctl,
58 /* poll */ nopoll,
59 /* mmap */ nommap,
60 /* strategy */ nostrategy,
61 /* name */ "isp",
62 /* maj */ ISP_CDEV_MAJOR,
63 /* dump */ nodump,
64 /* psize */ nopsize,
65 /* flags */ D_TAPE,
66};
67
68static struct ispsoftc *isplist = NULL;
69
70void
71isp_attach(struct ispsoftc *isp)
72{
73 int primary, secondary;
--- 3059 unchanged lines hidden ---
2/*
3 * Platform (FreeBSD) dependent common attachment code for Qlogic adapters.
4 *
5 * Copyright (c) 1997, 1998, 1999, 2000, 2001 by Matthew Jacob
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
--- 35 unchanged lines hidden (view full) ---
45static void isp_poll(struct cam_sim *);
46static timeout_t isp_watchdog;
47static void isp_kthread(void *);
48static void isp_action(struct cam_sim *, union ccb *);
49
50
51#define ISP_CDEV_MAJOR 248
52static struct cdevsw isp_cdevsw = {
53 /* open */ nullopen,
54 /* close */ nullclose,
55 /* read */ noread,
56 /* write */ nowrite,
57 /* ioctl */ ispioctl,
58 /* poll */ nopoll,
59 /* mmap */ nommap,
60 /* strategy */ nostrategy,
61 /* name */ "isp",
62 /* maj */ ISP_CDEV_MAJOR,
63 /* dump */ nodump,
64 /* psize */ nopsize,
65 /* flags */ D_TAPE,
66};
67
68static struct ispsoftc *isplist = NULL;
69
70void
71isp_attach(struct ispsoftc *isp)
72{
73 int primary, secondary;
--- 3059 unchanged lines hidden ---