1 1.5 kiyohara /* $NetBSD: if_fwipvar.h,v 1.5 2010/03/29 03:05:28 kiyohara Exp $ */ 2 1.1 kiyohara /*- 3 1.1 kiyohara * Copyright (c) 2004 4 1.1 kiyohara * Doug Rabson 5 1.1 kiyohara * Copyright (c) 2002-2003 6 1.1 kiyohara * Hidetoshi Shimokawa. All rights reserved. 7 1.5 kiyohara * 8 1.1 kiyohara * Redistribution and use in source and binary forms, with or without 9 1.1 kiyohara * modification, are permitted provided that the following conditions 10 1.1 kiyohara * are met: 11 1.1 kiyohara * 1. Redistributions of source code must retain the above copyright 12 1.1 kiyohara * notice, this list of conditions and the following disclaimer. 13 1.1 kiyohara * 2. Redistributions in binary form must reproduce the above copyright 14 1.1 kiyohara * notice, this list of conditions and the following disclaimer in the 15 1.1 kiyohara * documentation and/or other materials provided with the distribution. 16 1.1 kiyohara * 3. All advertising materials mentioning features or use of this software 17 1.1 kiyohara * must display the following acknowledgement: 18 1.1 kiyohara * 19 1.1 kiyohara * This product includes software developed by Hidetoshi Shimokawa. 20 1.1 kiyohara * 21 1.1 kiyohara * 4. Neither the name of the author nor the names of its contributors 22 1.1 kiyohara * may be used to endorse or promote products derived from this software 23 1.1 kiyohara * without specific prior written permission. 24 1.5 kiyohara * 25 1.1 kiyohara * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 1.1 kiyohara * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 1.1 kiyohara * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 1.1 kiyohara * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 1.1 kiyohara * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 1.1 kiyohara * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 1.1 kiyohara * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 1.1 kiyohara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 1.1 kiyohara * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 1.1 kiyohara * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 1.1 kiyohara * SUCH DAMAGE. 36 1.5 kiyohara * 37 1.4 kiyohara * $FreeBSD: src/sys/dev/firewire/if_fwipvar.h,v 1.5 2007/06/06 14:31:36 simokawa Exp $ 38 1.1 kiyohara */ 39 1.1 kiyohara 40 1.5 kiyohara #ifndef _IF_FWIPVAR_H_ 41 1.5 kiyohara #define _IF_FWIPVAR_H_ 42 1.5 kiyohara 43 1.5 kiyohara #define MTAG_FIREWIRE_HWADDR 0 44 1.5 kiyohara #define MTAG_FIREWIRE_SENDER_EUID 1 45 1.5 kiyohara 46 1.1 kiyohara 47 1.1 kiyohara struct fwip_softc { 48 1.1 kiyohara /* XXX this must be first for fd.post_explore() */ 49 1.5 kiyohara struct firewire_dev_comm sc_fd; 50 1.5 kiyohara short sc_dma_ch; 51 1.5 kiyohara struct fw_bind sc_fwb; 52 1.5 kiyohara struct fw_eui64 sc_last_dest; 53 1.5 kiyohara struct fw_pkt sc_last_hdr; 54 1.5 kiyohara STAILQ_HEAD(, fw_xfer) sc_xferlist; 55 1.5 kiyohara struct crom_chunk sc_unit4; /* unit directory for IPv4 */ 56 1.5 kiyohara struct crom_chunk sc_spec4; /* specifier description IPv4 */ 57 1.5 kiyohara struct crom_chunk sc_ver4; /* version description IPv4 */ 58 1.5 kiyohara struct crom_chunk sc_unit6; /* unit directory for IPv6 */ 59 1.5 kiyohara struct crom_chunk sc_spec6; /* specifier description IPv6 */ 60 1.5 kiyohara struct crom_chunk sc_ver6; /* version description IPv6 */ 61 1.1 kiyohara struct fwip_eth_softc { 62 1.1 kiyohara struct ieee1394com fwcom; 63 1.3 kiyohara struct ifnet *fwip_ifp; 64 1.1 kiyohara struct fwip_softc *fwip; 65 1.5 kiyohara } sc_eth; 66 1.5 kiyohara kmutex_t sc_mtx; 67 1.1 kiyohara }; 68 1.4 kiyohara 69 1.5 kiyohara #endif /* !_IF_FWIPVAR_H_ */ 70