Deleted Added
full compact
firewire.h (130456) firewire.h (147256)
1/*-
2 * Copyright (c) 2004 Doug Rabson
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

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

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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/net/firewire.h 130456 2004-06-14 08:17:51Z dfr $
26 * $FreeBSD: head/sys/net/firewire.h 147256 2005-06-10 16:49:24Z brooks $
27 */
28
29#ifndef _NET_FIREWIRE_H_
30#define _NET_FIREWIRE_H_
31
32#define FW_ENCAP_UNFRAG 0
33#define FW_ENCAP_FIRST 1
34#define FW_ENCAP_LAST 2

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

116struct fw_reass {
117 STAILQ_ENTRY(fw_reass) fr_link;
118 uint32_t fr_id; /* host+dgl */
119 struct mbuf *fr_frags; /* chain of frags */
120};
121STAILQ_HEAD(fw_reass_list, fw_reass);
122
123struct fw_com {
27 */
28
29#ifndef _NET_FIREWIRE_H_
30#define _NET_FIREWIRE_H_
31
32#define FW_ENCAP_UNFRAG 0
33#define FW_ENCAP_FIRST 1
34#define FW_ENCAP_LAST 2

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

116struct fw_reass {
117 STAILQ_ENTRY(fw_reass) fr_link;
118 uint32_t fr_id; /* host+dgl */
119 struct mbuf *fr_frags; /* chain of frags */
120};
121STAILQ_HEAD(fw_reass_list, fw_reass);
122
123struct fw_com {
124 struct ifnet fc_if;
124 struct ifnet *fc_ifp;
125 struct fw_hwaddr fc_hwaddr;
126 struct firewire_comm *fc_fc;
127 uint8_t fc_broadcast_channel;
128 uint8_t fc_speed; /* our speed */
129 uint16_t fc_node; /* our nodeid */
130 struct fw_reass_list fc_frags; /* partial datagrams */
131};
125 struct fw_hwaddr fc_hwaddr;
126 struct firewire_comm *fc_fc;
127 uint8_t fc_broadcast_channel;
128 uint8_t fc_speed; /* our speed */
129 uint16_t fc_node; /* our nodeid */
130 struct fw_reass_list fc_frags; /* partial datagrams */
131};
132#define IFP2FWC(ifp) ((struct fw_com *)(ifp)->if_l2com)
132
133extern void firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src);
134extern void firewire_ifattach(struct ifnet *, struct fw_hwaddr *);
135extern void firewire_ifdetach(struct ifnet *);
136extern void firewire_busreset(struct ifnet *);
137extern int firewire_ioctl(struct ifnet *, int, caddr_t);
138
139#endif /* !_KERNEL */
140
141#endif /* !_NET_FIREWIRE_H_ */
133
134extern void firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src);
135extern void firewire_ifattach(struct ifnet *, struct fw_hwaddr *);
136extern void firewire_ifdetach(struct ifnet *);
137extern void firewire_busreset(struct ifnet *);
138extern int firewire_ioctl(struct ifnet *, int, caddr_t);
139
140#endif /* !_KERNEL */
141
142#endif /* !_NET_FIREWIRE_H_ */