|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25:
26: /*
27: * Copyright (c) 1988, 1989 Apple Computer, Inc.
28: *
29: * The information contained herein is subject to change without
30: * notice and should not be construed as a commitment by Apple
31: * Computer, Inc. Apple Computer, Inc. assumes no responsibility
32: * for any errors that may appear.
33: *
34: * Confidential and Proprietary to Apple Computer, Inc.
35: */
36:
37: /* "@(#)at_elap.h: 2.0, 1.6; 7/14/89; Copyright 1988-89, Apple Computer, Inc." */
38:
39: /* This is a header file for EtherTalk LAP layer.
40: *
41: * Author: R. C. Venkatraman
42: * Date : 2/29/88 (WOW! What a day to LEAP forward)
43: */
44:
45: #define NOOFIFS 4 /* no of ethernet cards we can support
46: */
47: #ifndef FLUSHALL
48: #define FLUSHALL 1 /* parm for streams flushq */
49: #endif
50:
51: typedef struct {
52: int pat_id;
53: char interface_no; /* interface number --
54: * 0 for "ethertalk0",
55: * 1 for "ethertalk1" etc.
56: */
57: at_elap_cfg_t cfg; /* elap config struct; defined in
58: * <at/elap.h>
59: */
60: at_elap_stats_t stats;
61: at_if_t elap_if;
62: u_short flags; /* port specific flags (see MPORT_FL_xxx ) */
63: struct etalk_addr ZoneMcastAddr; /* zone multicast addr
64: (for MH only) */
65: struct etalk_addr cable_multicast_addr; /* AppleTalk broadcast addr */
66: int (*wait_p)();
67: gref_t *wait_q;
68: gbuf_t *wait_m;
69: } elap_specifics_t;
70:
71: /* ELAP internal control codes (for elap_control() ) */
72: #define ELAP_CABLE_BROADCAST_FOR_ZONE 0
73: #define ELAP_REG_ZONE_MCAST 1
74: #define ELAP_UNREG_ZONE_MCAST 2
75: #define ELAP_RESET_INITNODE 3
76: #define ELAP_DESIRED_ZONE 4
77:
78: #define AT_ADDR 0
79: #define ET_ADDR 1
80: #define AT_ADDR_NO_LOOP 2 /* disables packets from looping back */
81:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.