]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netinet/if_fddi.h
c250256eb6471ecd003e79fc29191757e0b3bca4
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
23 * @APPLE_LICENSE_HEADER_END@
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.
31 * Redistribution and use in source and binary forms, with or without
32 * modification, are permitted provided that the following conditions
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.
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
59 * @(#)if_fddi.h 8.1 (Berkeley) 6/10/93
60 * $FreeBSD: src/sys/netinet/if_fddi.h,v 1.8 1999/12/29 04:40:58 peter Exp $
63 #ifndef _NETINET_IF_FDDI_H_
64 #define _NETINET_IF_FDDI_H_
65 #include <sys/appleapiopts.h>
68 * Structure of an 100Mb/s FDDI header.
76 #define FDDIIPMTU 4352
80 #define FDDIFC_C 0x80 /* 0b10000000 */
81 #define FDDIFC_L 0x40 /* 0b01000000 */
82 #define FDDIFC_F 0x30 /* 0b00110000 */
83 #define FDDIFC_Z 0x0F /* 0b00001111 */
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
98 #ifdef __APPLE_API_PRIVATE
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
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
*));
110 #endif /* __APPLE_API_PRIVATE */