Deleted Added
full compact
tws_services.c (226026) tws_services.c (226887)
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/dev/tws/tws_services.c 226026 2011-10-04 21:40:25Z delphij $
34 * $FreeBSD: head/sys/dev/tws/tws_services.c 226887 2011-10-28 17:53:34Z delphij $
35 */
36
37#include <dev/tws/tws.h>
38#include <dev/tws/tws_hdm.h>
39#include <dev/tws/tws_services.h>
40#include <sys/time.h>
41
42void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,

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

48 u_int8_t q_type );
49struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
50void tws_print_stats(void *arg);
51
52struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
53
54
55
35 */
36
37#include <dev/tws/tws.h>
38#include <dev/tws/tws_hdm.h>
39#include <dev/tws/tws_services.h>
40#include <sys/time.h>
41
42void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,

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

48 u_int8_t q_type );
49struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
50void tws_print_stats(void *arg);
51
52struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
53
54
55
56struct error_desc array[] = {
56static struct error_desc array[] = {
57 { "Cannot add sysctl tree node", 0x2000, ERROR,
58 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
59 { "Register window not available", 0x2001, ERROR,
60 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
61 { "Can't allocate register window", 0x2002, ERROR,
62 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
63 { "Can't allocate interrupt", 0x2003, ERROR,
64 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },

--- 337 unchanged lines hidden ---
57 { "Cannot add sysctl tree node", 0x2000, ERROR,
58 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
59 { "Register window not available", 0x2001, ERROR,
60 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
61 { "Can't allocate register window", 0x2002, ERROR,
62 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
63 { "Can't allocate interrupt", 0x2003, ERROR,
64 "%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },

--- 337 unchanged lines hidden ---