Deleted Added
full compact
tw_osl_cam.c (163896) tw_osl_cam.c (168752)
1/*
2 * Copyright (c) 2004-05 Applied Micro Circuits Corporation.
3 * Copyright (c) 2004-05 Vinod Kashyap.
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:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 2004-05 Applied Micro Circuits Corporation.
3 * Copyright (c) 2004-05 Vinod Kashyap.
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:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/twa/tw_osl_cam.c 163896 2006-11-02 00:54:38Z mjacob $
27 * $FreeBSD: head/sys/dev/twa/tw_osl_cam.c 168752 2007-04-15 08:49:19Z scottl $
28 */
29
30/*
31 * AMCC'S 3ware driver for 9000 series storage controllers.
32 *
33 * Author: Vinod Kashyap
34 */
35

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

97 /*
98 * Create a SIM entry. Though we can support TW_OSLI_MAX_NUM_IOS
99 * simultaneous requests, we claim to be able to handle only
100 * (TW_OSLI_MAX_NUM_IOS - 1), so that we always have a request
101 * packet available to service ioctls.
102 */
103 tw_osli_dbg_dprintf(3, sc, "Calling cam_sim_alloc");
104 sc->sim = cam_sim_alloc(twa_action, twa_poll, "twa", sc,
28 */
29
30/*
31 * AMCC'S 3ware driver for 9000 series storage controllers.
32 *
33 * Author: Vinod Kashyap
34 */
35

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

97 /*
98 * Create a SIM entry. Though we can support TW_OSLI_MAX_NUM_IOS
99 * simultaneous requests, we claim to be able to handle only
100 * (TW_OSLI_MAX_NUM_IOS - 1), so that we always have a request
101 * packet available to service ioctls.
102 */
103 tw_osli_dbg_dprintf(3, sc, "Calling cam_sim_alloc");
104 sc->sim = cam_sim_alloc(twa_action, twa_poll, "twa", sc,
105 device_get_unit(sc->bus_dev),
105 device_get_unit(sc->bus_dev), &Giant,
106 TW_OSLI_MAX_NUM_IOS - 1, 1, devq);
107 if (sc->sim == NULL) {
108 cam_simq_free(devq);
109 tw_osli_printf(sc, "error = %d",
110 TW_CL_SEVERITY_ERROR_STRING,
111 TW_CL_MESSAGE_SOURCE_FREEBSD_DRIVER,
112 0x2101,
113 "Failed to create a SIM entry",

--- 702 unchanged lines hidden ---
106 TW_OSLI_MAX_NUM_IOS - 1, 1, devq);
107 if (sc->sim == NULL) {
108 cam_simq_free(devq);
109 tw_osli_printf(sc, "error = %d",
110 TW_CL_SEVERITY_ERROR_STRING,
111 TW_CL_MESSAGE_SOURCE_FREEBSD_DRIVER,
112 0x2101,
113 "Failed to create a SIM entry",

--- 702 unchanged lines hidden ---