]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netinet/if_fddi.h
6fb93f98b0efa52de82e46db852e92f8805c92ca
2 * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
31 * Copyright (c) 1982, 1986, 1993
32 * The Regents of the University of California. All rights reserved.
33 * Copyright (c) 1995 Matt Thomas (thomas@lkg.dec.com)
34 * All rights reserved.
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions
39 * 1. Redistributions of source code must retain the above copyright
40 * notice, this list of conditions and the following disclaimer.
41 * 2. Redistributions in binary form must reproduce the above copyright
42 * notice, this list of conditions and the following disclaimer in the
43 * documentation and/or other materials provided with the distribution.
44 * 3. All advertising materials mentioning features or use of this software
45 * must display the following acknowledgement:
46 * This product includes software developed by the University of
47 * California, Berkeley and its contributors.
48 * 4. Neither the name of the University nor the names of its contributors
49 * may be used to endorse or promote products derived from this software
50 * without specific prior written permission.
52 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
53 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
54 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
55 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
56 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
57 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
58 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
59 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * @(#)if_fddi.h 8.1 (Berkeley) 6/10/93
65 * $FreeBSD: src/sys/netinet/if_fddi.h,v 1.8 1999/12/29 04:40:58 peter Exp $
68 #ifndef _NETINET_IF_FDDI_H_
69 #define _NETINET_IF_FDDI_H_
70 #include <sys/appleapiopts.h>
73 * Structure of an 100Mb/s FDDI header.
81 #define FDDIIPMTU 4352
85 #define FDDIFC_C 0x80 /* 0b10000000 */
86 #define FDDIFC_L 0x40 /* 0b01000000 */
87 #define FDDIFC_F 0x30 /* 0b00110000 */
88 #define FDDIFC_Z 0x0F /* 0b00001111 */
90 #define FDDIFC_LLC_ASYNC 0x50
91 #define FDDIFC_LLC_PRIO0 0
92 #define FDDIFC_LLC_PRIO1 1
93 #define FDDIFC_LLC_PRIO2 2
94 #define FDDIFC_LLC_PRIO3 3
95 #define FDDIFC_LLC_PRIO4 4
96 #define FDDIFC_LLC_PRIO5 5
97 #define FDDIFC_LLC_PRIO6 6
98 #define FDDIFC_LLC_PRIO7 7
99 #define FDDIFC_LLC_SYNC 0xd0
100 #define FDDIFC_SMT 0x40
102 #ifdef KERNEL_PRIVATE
103 #define fddibroadcastaddr etherbroadcastaddr
104 #define fddi_ipmulticast_min ether_ipmulticast_min
105 #define fddi_ipmulticast_max ether_ipmulticast_max
106 #define fddi_addmulti ether_addmulti
107 #define fddi_delmulti ether_delmulti
108 #define fddi_sprintf ether_sprintf
110 void fddi_ifattach(struct ifnet
*);
111 void fddi_input(struct ifnet
*, struct fddi_header
*, struct mbuf
*);
112 int fddi_output(struct ifnet
*,
113 struct mbuf
*, struct sockaddr
*, struct rtentry
*);
114 #endif KERNEL_PRIVATE
116 #endif _NETINET_IF_FDDI_H_