aic.c (163896) | aic.c (168752) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/aic/aic.c 163896 2006-11-02 00:54:38Z mjacob $"); | 28__FBSDID("$FreeBSD: head/sys/dev/aic/aic.c 168752 2007-04-15 08:49:19Z scottl $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> |
33#include <sys/lock.h> 34#include <sys/mutex.h> 35#include <sys/malloc.h> |
|
33#include <sys/bus.h> 34 35#include <machine/bus.h> 36 37#include <cam/cam.h> 38#include <cam/cam_ccb.h> 39#include <cam/cam_sim.h> 40#include <cam/cam_xpt_sim.h> --- 1494 unchanged lines hidden (view full) --- 1535 devq = cam_simq_alloc(256); 1536 if (devq == NULL) 1537 return (ENOMEM); 1538 1539 /* 1540 * Construct our SIM entry 1541 */ 1542 aic->sim = cam_sim_alloc(aic_action, aic_poll, "aic", aic, | 36#include <sys/bus.h> 37 38#include <machine/bus.h> 39 40#include <cam/cam.h> 41#include <cam/cam_ccb.h> 42#include <cam/cam_sim.h> 43#include <cam/cam_xpt_sim.h> --- 1494 unchanged lines hidden (view full) --- 1538 devq = cam_simq_alloc(256); 1539 if (devq == NULL) 1540 return (ENOMEM); 1541 1542 /* 1543 * Construct our SIM entry 1544 */ 1545 aic->sim = cam_sim_alloc(aic_action, aic_poll, "aic", aic, |
1543 aic->unit, 2, 256, devq); | 1546 aic->unit, &Giant, 2, 256, devq); |
1544 if (aic->sim == NULL) { 1545 cam_simq_free(devq); 1546 return (ENOMEM); 1547 } 1548 1549 if (xpt_bus_register(aic->sim, 0) != CAM_SUCCESS) { 1550 cam_sim_free(aic->sim, /*free_devq*/TRUE); 1551 return (ENXIO); --- 34 unchanged lines hidden --- | 1547 if (aic->sim == NULL) { 1548 cam_simq_free(devq); 1549 return (ENOMEM); 1550 } 1551 1552 if (xpt_bus_register(aic->sim, 0) != CAM_SUCCESS) { 1553 cam_sim_free(aic->sim, /*free_devq*/TRUE); 1554 return (ENXIO); --- 34 unchanged lines hidden --- |