Deleted Added
full compact
firewirereg.h (103285) firewirereg.h (106810)
1/*
2 * Copyright (c) 1998-2002 Katsushi Kobayashi and 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) 1998-2002 Katsushi Kobayashi and 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/dev/firewire/firewirereg.h 103285 2002-09-13 12:31:56Z ikob $
33 * $FreeBSD: head/sys/dev/firewire/firewirereg.h 106810 2002-11-12 13:49:17Z simokawa $
34 *
35 */
36
37#if __FreeBSD_version >= 500000
38typedef struct thread fw_proc;
39#include <sys/selinfo.h>
40#else
41typedef struct proc fw_proc;

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

53 u_int8_t maxrec;
54 u_int8_t nport;
55 u_int8_t power;
56#define CSRROMOFF 0x400
57#define CSRROMSIZE 0x400
58 int rommax; /* offset from 0xffff f000 0000 */
59 u_int32_t csrrom[CSRROMSIZE/4];
60 int rcnt;
34 *
35 */
36
37#if __FreeBSD_version >= 500000
38typedef struct thread fw_proc;
39#include <sys/selinfo.h>
40#else
41typedef struct proc fw_proc;

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

53 u_int8_t maxrec;
54 u_int8_t nport;
55 u_int8_t power;
56#define CSRROMOFF 0x400
57#define CSRROMSIZE 0x400
58 int rommax; /* offset from 0xffff f000 0000 */
59 u_int32_t csrrom[CSRROMSIZE/4];
60 int rcnt;
61 device_t dev;
61 struct firewire_comm *fc;
62 u_int32_t status;
63#define FWDEVINIT 1
64#define FWDEVATTACHED 2
65#define FWDEVINVAL 3
66 TAILQ_ENTRY(fw_device) link;
62 u_int32_t status;
63#define FWDEVINIT 1
64#define FWDEVATTACHED 2
65#define FWDEVINVAL 3
66 TAILQ_ENTRY(fw_device) link;
67#if 0
67 LIST_HEAD(, fw_xfer) txqueue;
68 LIST_HEAD(, fw_xfer) rxqueue;
68 LIST_HEAD(, fw_xfer) txqueue;
69 LIST_HEAD(, fw_xfer) rxqueue;
70#endif
69};
70struct firewire_softc {
71#if __FreeBSD_version >= 500000
72 dev_t dev;
73#else
74 dev_t dev[FWMAXNDMA+1];
75#endif
76 struct firewire_comm *fc;

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

305int fw_bindadd __P((struct firewire_comm *, struct fw_bind *));
306int fw_bindremove __P((struct firewire_comm *, struct fw_bind *));
307int fw_asyreq __P((struct firewire_comm *, int, struct fw_xfer*));
308void fw_busreset __P((struct firewire_comm *));
309u_int16_t fw_crc16 __P((u_int32_t *, u_int32_t));
310void fw_xfer_timeout __P((void *));
311void fw_xfer_done __P((struct fw_xfer *));
312void fw_asy_callback __P((struct fw_xfer *));
71};
72struct firewire_softc {
73#if __FreeBSD_version >= 500000
74 dev_t dev;
75#else
76 dev_t dev[FWMAXNDMA+1];
77#endif
78 struct firewire_comm *fc;

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

307int fw_bindadd __P((struct firewire_comm *, struct fw_bind *));
308int fw_bindremove __P((struct firewire_comm *, struct fw_bind *));
309int fw_asyreq __P((struct firewire_comm *, int, struct fw_xfer*));
310void fw_busreset __P((struct firewire_comm *));
311u_int16_t fw_crc16 __P((u_int32_t *, u_int32_t));
312void fw_xfer_timeout __P((void *));
313void fw_xfer_done __P((struct fw_xfer *));
314void fw_asy_callback __P((struct fw_xfer *));
315struct fw_device *fw_noderesolve __P((struct firewire_comm *, struct fw_eui64));
313
314extern int firewire_debug;
315extern devclass_t firewire_devclass;
316
317#define DV_BROADCAST_ON (1<<30)
318#define IP_CHANNELS 0x0234
319
320#define STATE_CLEAR 0x0000

--- 29 unchanged lines hidden ---
316
317extern int firewire_debug;
318extern devclass_t firewire_devclass;
319
320#define DV_BROADCAST_ON (1<<30)
321#define IP_CHANNELS 0x0234
322
323#define STATE_CLEAR 0x0000

--- 29 unchanged lines hidden ---