Deleted Added
full compact
aac.c (111691) aac.c (111815)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/aac/aac.c 111691 2003-03-01 05:07:19Z scottl $
29 * $FreeBSD: head/sys/dev/aac/aac.c 111815 2003-03-03 12:15:54Z phk $
30 */
31
32/*
33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
34 */
35
36#include "opt_aac.h"
37

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

177static int aac_rev_check(struct aac_softc *sc, caddr_t udata);
178static int aac_getnext_aif(struct aac_softc *sc, caddr_t arg);
179static int aac_return_aif(struct aac_softc *sc, caddr_t uptr);
180static int aac_query_disk(struct aac_softc *sc, caddr_t uptr);
181
182#define AAC_CDEV_MAJOR 150
183
184static struct cdevsw aac_cdevsw = {
30 */
31
32/*
33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
34 */
35
36#include "opt_aac.h"
37

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

177static int aac_rev_check(struct aac_softc *sc, caddr_t udata);
178static int aac_getnext_aif(struct aac_softc *sc, caddr_t arg);
179static int aac_return_aif(struct aac_softc *sc, caddr_t uptr);
180static int aac_query_disk(struct aac_softc *sc, caddr_t uptr);
181
182#define AAC_CDEV_MAJOR 150
183
184static struct cdevsw aac_cdevsw = {
185 aac_open, /* open */
186 aac_close, /* close */
187 noread, /* read */
188 nowrite, /* write */
189 aac_ioctl, /* ioctl */
190 aac_poll, /* poll */
191 nommap, /* mmap */
192 nostrategy, /* strategy */
193 "aac", /* name */
194 AAC_CDEV_MAJOR, /* major */
195 nodump, /* dump */
196 nopsize, /* psize */
197 0, /* flags */
185 .d_open = aac_open,
186 .d_close = aac_close,
187 .d_ioctl = aac_ioctl,
188 .d_poll = aac_poll,
189 .d_name = "aac",
190 .d_maj = AAC_CDEV_MAJOR,
198};
199
200MALLOC_DEFINE(M_AACBUF, "aacbuf", "Buffers for the AAC driver");
201
202/* sysctl node */
203SYSCTL_NODE(_hw, OID_AUTO, aac, CTLFLAG_RD, 0, "AAC driver parameters");
204
205/*

--- 2597 unchanged lines hidden ---
191};
192
193MALLOC_DEFINE(M_AACBUF, "aacbuf", "Buffers for the AAC driver");
194
195/* sysctl node */
196SYSCTL_NODE(_hw, OID_AUTO, aac, CTLFLAG_RD, 0, "AAC driver parameters");
197
198/*

--- 2597 unchanged lines hidden ---