aic.c (54687) | aic.c (55997) |
---|---|
1/*- 2 * Copyright (c) 1999 Luoqi Chen. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Luoqi Chen. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/aic/aic.c 54687 1999-12-16 16:11:49Z luoqi $ | 26 * $FreeBSD: head/sys/dev/aic/aic.c 55997 2000-01-14 23:42:36Z imp $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/malloc.h> 32#include <sys/buf.h> 33#include <sys/kernel.h> 34#include <sys/sysctl.h> --- 30 unchanged lines hidden (view full) --- 65static void aic_dataout __P((struct aic_softc *aic)); 66static void aic_done __P((struct aic_softc *aic, struct aic_scb *scb)); 67static void aic_poll __P((struct cam_sim *sim)); 68static void aic_timeout __P((void *arg)); 69static void aic_scsi_reset __P((struct aic_softc *aic)); 70static void aic_chip_reset __P((struct aic_softc *aic)); 71static void aic_reset __P((struct aic_softc *aic, int initiate_reset)); 72 | 27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/malloc.h> 32#include <sys/buf.h> 33#include <sys/kernel.h> 34#include <sys/sysctl.h> --- 30 unchanged lines hidden (view full) --- 65static void aic_dataout __P((struct aic_softc *aic)); 66static void aic_done __P((struct aic_softc *aic, struct aic_scb *scb)); 67static void aic_poll __P((struct cam_sim *sim)); 68static void aic_timeout __P((void *arg)); 69static void aic_scsi_reset __P((struct aic_softc *aic)); 70static void aic_chip_reset __P((struct aic_softc *aic)); 71static void aic_reset __P((struct aic_softc *aic, int initiate_reset)); 72 |
73devclass_t aic_devclass; 74 |
|
73static struct aic_scb *free_scbs; 74 75static struct aic_scb * 76aic_get_scb(struct aic_softc *aic) 77{ 78 struct aic_scb *scb; 79 int s = splcam(); 80 if ((scb = free_scbs) != NULL) --- 1452 unchanged lines hidden --- | 75static struct aic_scb *free_scbs; 76 77static struct aic_scb * 78aic_get_scb(struct aic_softc *aic) 79{ 80 struct aic_scb *scb; 81 int s = splcam(); 82 if ((scb = free_scbs) != NULL) --- 1452 unchanged lines hidden --- |