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