Deleted Added
full compact
fwohci.c (124169) fwohci.c (124378)
1/*
2 * Copyright (c) 2003 Hidetoshi Shimokawa
3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
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:

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

26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT 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) 2003 Hidetoshi Shimokawa
3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
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:

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

26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT 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/firewire/fwohci.c 124169 2004-01-06 14:30:47Z simokawa $
34 * $FreeBSD: head/sys/dev/firewire/fwohci.c 124378 2004-01-11 15:40:42Z simokawa $
35 *
36 */
37
38#define ATRQ_CH 0
39#define ATRS_CH 1
40#define ARRQ_CH 2
41#define ARRS_CH 3
42#define ITX_CH 4

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

79 "data write err","bus reset","timeout","tcode err",
80 "Undef","Undef","unknown event","flushed",
81 "Undef","ack complete","ack pend","Undef",
82 "ack busy_X","ack busy_A","ack busy_B","Undef",
83 "Undef","Undef","Undef","ack tardy",
84 "Undef","ack data_err","ack type_err",""};
85
86#define MAX_SPEED 3
35 *
36 */
37
38#define ATRQ_CH 0
39#define ATRS_CH 1
40#define ARRQ_CH 2
41#define ARRS_CH 3
42#define ITX_CH 4

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

79 "data write err","bus reset","timeout","tcode err",
80 "Undef","Undef","unknown event","flushed",
81 "Undef","ack complete","ack pend","Undef",
82 "ack busy_X","ack busy_A","ack busy_B","Undef",
83 "Undef","Undef","Undef","ack tardy",
84 "Undef","ack data_err","ack type_err",""};
85
86#define MAX_SPEED 3
87extern char linkspeed[][0x10];
87extern char *linkspeed[];
88u_int32_t tagbit[4] = { 1 << 28, 1 << 29, 1 << 30, 1 << 31};
89
90static struct tcode_info tinfo[] = {
91/* hdr_len block flag*/
92/* 0 WREQQ */ {16, FWTI_REQ | FWTI_TLABEL},
93/* 1 WREQB */ {16, FWTI_REQ | FWTI_TLABEL | FWTI_BLOCK_ASY},
94/* 2 WRES */ {12, FWTI_RES},
95/* 3 XXX */ { 0, 0},

--- 2795 unchanged lines hidden ---
88u_int32_t tagbit[4] = { 1 << 28, 1 << 29, 1 << 30, 1 << 31};
89
90static struct tcode_info tinfo[] = {
91/* hdr_len block flag*/
92/* 0 WREQQ */ {16, FWTI_REQ | FWTI_TLABEL},
93/* 1 WREQB */ {16, FWTI_REQ | FWTI_TLABEL | FWTI_BLOCK_ASY},
94/* 2 WRES */ {12, FWTI_RES},
95/* 3 XXX */ { 0, 0},

--- 2795 unchanged lines hidden ---