amr.c (111528) | amr.c (111815) |
---|---|
1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 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: --- 39 unchanged lines hidden (view full) --- 48 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 49 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 50 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 51 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 52 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 53 * SUCH DAMAGE. 54 * 55 * | 1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 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: --- 39 unchanged lines hidden (view full) --- 48 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 49 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 50 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 51 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 52 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 53 * SUCH DAMAGE. 54 * 55 * |
56 * $FreeBSD: head/sys/dev/amr/amr.c 111528 2003-02-26 03:15:42Z scottl $ | 56 * $FreeBSD: head/sys/dev/amr/amr.c 111815 2003-03-03 12:15:54Z phk $ |
57 */ 58 59/* 60 * Driver for the AMI MegaRaid family of controllers. 61 */ 62 63#include <sys/param.h> 64#include <sys/systm.h> --- 24 unchanged lines hidden (view full) --- 89 90#define AMR_CDEV_MAJOR 132 91 92static d_open_t amr_open; 93static d_close_t amr_close; 94static d_ioctl_t amr_ioctl; 95 96static struct cdevsw amr_cdevsw = { | 57 */ 58 59/* 60 * Driver for the AMI MegaRaid family of controllers. 61 */ 62 63#include <sys/param.h> 64#include <sys/systm.h> --- 24 unchanged lines hidden (view full) --- 89 90#define AMR_CDEV_MAJOR 132 91 92static d_open_t amr_open; 93static d_close_t amr_close; 94static d_ioctl_t amr_ioctl; 95 96static struct cdevsw amr_cdevsw = { |
97 /* open */ amr_open, 98 /* close */ amr_close, 99 /* read */ noread, 100 /* write */ nowrite, 101 /* ioctl */ amr_ioctl, 102 /* poll */ nopoll, 103 /* mmap */ nommap, 104 /* strategy */ nostrategy, 105 /* name */ "amr", 106 /* maj */ AMR_CDEV_MAJOR, 107 /* dump */ nodump, 108 /* psize */ nopsize, 109 /* flags */ 0, | 97 .d_open = amr_open, 98 .d_close = amr_close, 99 .d_ioctl = amr_ioctl, 100 .d_name = "amr", 101 .d_maj = AMR_CDEV_MAJOR, |
110}; 111 112/* 113 * Initialisation, bus interface. 114 */ 115static void amr_startup(void *arg); 116 117/* --- 1701 unchanged lines hidden --- | 102}; 103 104/* 105 * Initialisation, bus interface. 106 */ 107static void amr_startup(void *arg); 108 109/* --- 1701 unchanged lines hidden --- |