xref: /freebsd/sys/dev/firewire/if_fwevar.h (revision 3c60ba66c4479fdf0045acf25f21c6806fd06c0f)
13c60ba66SKatsushi Kobayashi /*
23c60ba66SKatsushi Kobayashi  * Copyright (C) 2002
33c60ba66SKatsushi Kobayashi  * 	Hidetoshi Shimokawa. All rights reserved.
43c60ba66SKatsushi Kobayashi  *
53c60ba66SKatsushi Kobayashi  * Redistribution and use in source and binary forms, with or without
63c60ba66SKatsushi Kobayashi  * modification, are permitted provided that the following conditions
73c60ba66SKatsushi Kobayashi  * are met:
83c60ba66SKatsushi Kobayashi  * 1. Redistributions of source code must retain the above copyright
93c60ba66SKatsushi Kobayashi  *    notice, this list of conditions and the following disclaimer.
103c60ba66SKatsushi Kobayashi  * 2. Redistributions in binary form must reproduce the above copyright
113c60ba66SKatsushi Kobayashi  *    notice, this list of conditions and the following disclaimer in the
123c60ba66SKatsushi Kobayashi  *    documentation and/or other materials provided with the distribution.
133c60ba66SKatsushi Kobayashi  * 3. All advertising materials mentioning features or use of this software
143c60ba66SKatsushi Kobayashi  *    must display the following acknowledgement:
153c60ba66SKatsushi Kobayashi  *
163c60ba66SKatsushi Kobayashi  *	This product includes software developed by Hidetoshi Shimokawa.
173c60ba66SKatsushi Kobayashi  *
183c60ba66SKatsushi Kobayashi  * 4. Neither the name of the author nor the names of its contributors
193c60ba66SKatsushi Kobayashi  *    may be used to endorse or promote products derived from this software
203c60ba66SKatsushi Kobayashi  *    without specific prior written permission.
213c60ba66SKatsushi Kobayashi  *
223c60ba66SKatsushi Kobayashi  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
233c60ba66SKatsushi Kobayashi  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
243c60ba66SKatsushi Kobayashi  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
253c60ba66SKatsushi Kobayashi  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
263c60ba66SKatsushi Kobayashi  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
273c60ba66SKatsushi Kobayashi  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
283c60ba66SKatsushi Kobayashi  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
293c60ba66SKatsushi Kobayashi  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
303c60ba66SKatsushi Kobayashi  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
313c60ba66SKatsushi Kobayashi  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
323c60ba66SKatsushi Kobayashi  * SUCH DAMAGE.
333c60ba66SKatsushi Kobayashi  *
343c60ba66SKatsushi Kobayashi  * $FreeBSD$
353c60ba66SKatsushi Kobayashi  */
363c60ba66SKatsushi Kobayashi 
373c60ba66SKatsushi Kobayashi #ifndef _NET_IF_FWEVAR_H_
383c60ba66SKatsushi Kobayashi #define _NET_IF_FWEVAR_H_
393c60ba66SKatsushi Kobayashi 
403c60ba66SKatsushi Kobayashi struct fwe_softc {
413c60ba66SKatsushi Kobayashi 	/* XXX this must be first for fd.post_explore() */
423c60ba66SKatsushi Kobayashi 	struct firewire_dev_comm fd;
433c60ba66SKatsushi Kobayashi 	short stream_ch;
443c60ba66SKatsushi Kobayashi 	short dma_ch;
453c60ba66SKatsushi Kobayashi 	struct fw_pkt pkt_hdr;
463c60ba66SKatsushi Kobayashi 	struct fwe_eth_softc {
473c60ba66SKatsushi Kobayashi 		/* XXX this must be first for if_ethersub.c */
483c60ba66SKatsushi Kobayashi 		struct arpcom	arpcom;	/* ethernet common data      */
493c60ba66SKatsushi Kobayashi 		#define fwe_if		eth_softc.arpcom.ac_if
503c60ba66SKatsushi Kobayashi 		struct fwe_softc *fwe;
513c60ba66SKatsushi Kobayashi 	} eth_softc;
523c60ba66SKatsushi Kobayashi };
533c60ba66SKatsushi Kobayashi #endif /* !_NET_IF_FWEVAR_H_ */
54