Deleted Added
full compact
fwohci.h (170101) fwohci.h (258780)
1/*
2 * Copyright (c) 2007 Hidetoshi Shimokawa
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

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

25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 2007 Hidetoshi Shimokawa
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

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

25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/boot/i386/libfirewire/fwohci.h 170101 2007-05-29 14:35:57Z simokawa $
33 * $FreeBSD: head/sys/boot/i386/libfirewire/fwohci.h 258780 2013-11-30 22:17:27Z eadler $
34 *
35 */
36
37#define MAX_OHCI 5
38#define CROMSIZE 0x400
39
40struct fw_eui64 {
41 uint32_t hi, lo;

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

71#define OREAD(f, o) (*(volatile uint32_t *)((f)->handle + (o)))
72#define OWRITE(f, o, v) (*(volatile uint32_t *)((f)->handle + (o)) = (v))
73
74#define OHCI_VERSION 0x00
75#define OHCI_ATRETRY 0x08
76#define OHCI_CROMHDR 0x18
77#define OHCI_BUS_ID 0x1c
78#define OHCI_BUS_OPT 0x20
34 *
35 */
36
37#define MAX_OHCI 5
38#define CROMSIZE 0x400
39
40struct fw_eui64 {
41 uint32_t hi, lo;

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

71#define OREAD(f, o) (*(volatile uint32_t *)((f)->handle + (o)))
72#define OWRITE(f, o, v) (*(volatile uint32_t *)((f)->handle + (o)) = (v))
73
74#define OHCI_VERSION 0x00
75#define OHCI_ATRETRY 0x08
76#define OHCI_CROMHDR 0x18
77#define OHCI_BUS_ID 0x1c
78#define OHCI_BUS_OPT 0x20
79#define OHCI_BUSIRMC (1 << 31)
79#define OHCI_BUSIRMC (1U << 31)
80#define OHCI_BUSCMC (1 << 30)
81#define OHCI_BUSISC (1 << 29)
82#define OHCI_BUSBMC (1 << 28)
83#define OHCI_BUSPMC (1 << 27)
84#define OHCI_BUSFNC OHCI_BUSIRMC | OHCI_BUSCMC | OHCI_BUSISC |\
85 OHCI_BUSBMC | OHCI_BUSPMC
86
87#define OHCI_EUID_HI 0x24

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

97#define OHCI_PREQHI 0x110
98#define OHCI_PREQHICLR 0x114
99#define OHCI_PREQLO 0x118
100#define OHCI_PREQLOCLR 0x11c
101#define OHCI_PREQUPPER 0x120
102
103#define OHCI_SID_BUF 0x64
104#define OHCI_SID_CNT 0x68
80#define OHCI_BUSCMC (1 << 30)
81#define OHCI_BUSISC (1 << 29)
82#define OHCI_BUSBMC (1 << 28)
83#define OHCI_BUSPMC (1 << 27)
84#define OHCI_BUSFNC OHCI_BUSIRMC | OHCI_BUSCMC | OHCI_BUSISC |\
85 OHCI_BUSBMC | OHCI_BUSPMC
86
87#define OHCI_EUID_HI 0x24

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

97#define OHCI_PREQHI 0x110
98#define OHCI_PREQHICLR 0x114
99#define OHCI_PREQLO 0x118
100#define OHCI_PREQLOCLR 0x11c
101#define OHCI_PREQUPPER 0x120
102
103#define OHCI_SID_BUF 0x64
104#define OHCI_SID_CNT 0x68
105#define OHCI_SID_ERR (1 << 31)
105#define OHCI_SID_ERR (1U << 31)
106#define OHCI_SID_CNT_MASK 0xffc
107
108#define OHCI_IT_STAT 0x90
109#define OHCI_IT_STATCLR 0x94
110#define OHCI_IT_MASK 0x98
111#define OHCI_IT_MASKCLR 0x9c
112
113#define OHCI_IR_STAT 0xa0

--- 49 unchanged lines hidden ---
106#define OHCI_SID_CNT_MASK 0xffc
107
108#define OHCI_IT_STAT 0x90
109#define OHCI_IT_STATCLR 0x94
110#define OHCI_IT_MASK 0x98
111#define OHCI_IT_MASKCLR 0x9c
112
113#define OHCI_IR_STAT 0xa0

--- 49 unchanged lines hidden ---