if_atm.h (114201) | if_atm.h (114739) |
---|---|
1/* $NetBSD: if_atm.h,v 1.7 1996/11/09 23:02:27 chuck Exp $ */ | 1/* $NetBSD: if_atm.h,v 1.7 1996/11/09 23:02:27 chuck Exp $ */ |
2/* $FreeBSD: head/sys/net/if_atm.h 114201 2003-04-29 08:07:44Z harti $ */ | 2/* $FreeBSD: head/sys/net/if_atm.h 114739 2003-05-05 16:35:52Z harti $ */ |
3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36/* 37 * net/if_atm.h 38 */ 39 | 3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36/* 37 * net/if_atm.h 38 */ 39 |
40/* 41 * Classification of ATM cards. 42 */ 43#define ATM_DEVICE_UNKNOWN 0 44#define ATM_DEVICE_PCA200E 1 /* Fore/Marconi PCA200-E */ 45#define ATM_DEVICE_HE155 2 /* Fore/Marconi HE155 */ 46#define ATM_DEVICE_HE622 3 /* Fore/Marconi HE622 */ 47#define ATM_DEVICE_ENI155P 4 /* Efficient networks 155p */ 48#define ATM_DEVICE_ADP155P 5 /* Adaptec 155p */ 49 50/* map to strings and vendors */ 51#define ATM_DEVICE_NAMES \ 52 { "Unknown", "Unknown" }, \ 53 { "PCA200-E", "Fore/Marconi" }, \ 54 { "HE155", "Fore/Marconi" }, \ 55 { "HE622", "Fore/Marconi" }, \ 56 { "ENI155p", "Efficient Networks" }, \ 57 { "ADP155p", "Adaptec" }, 58 59/* 60 * This is the common link layer MIB for all ATM interfaces. Much of the 61 * information here is needed for ILMI. This will be augmented by statistics 62 * at some point. 63 */ 64struct ifatm_mib { 65 /* configuration data */ 66 uint8_t device; /* type of card */ 67 u_char esi[6]; /* end system identifier (MAC) */ 68 uint32_t serial; /* card serial number */ 69 uint32_t hw_version; /* card version */ 70 uint32_t sw_version; /* firmware version (if any) */ 71 uint32_t pcr; /* supported peak cell rate */ 72 uint32_t media; /* physical media */ 73 uint8_t vpi_bits; /* number of used bits in VPI field */ 74 uint8_t vci_bits; /* number of used bits in VCI field */ 75 uint16_t max_vpcs; /* maximum number of VPCs */ 76 uint32_t max_vccs; /* maximum number of VCCs */ 77}; 78 79#ifdef _KERNEL 80/* 81 * Common fields for all ATM interfaces. Each driver's softc must start with 82 * this structure. 83 */ 84struct ifatm { 85 struct ifnet ifnet; /* required by if_var.h */ 86 struct ifatm_mib mib; /* exported data */ 87 void *phy; /* usually SUNI */ 88 void *ngpriv; /* netgraph link */ 89}; 90#endif 91 92/* 93 * Peak cell rates for various physical media. Note, that there are 94 * different opinions on what the correct values are. 95 */ 96#define ATM_RATE_155M 353208 97#define ATM_RATE_622M 1412830 98#define ATM_RATE_24G 5651320 99 |
|
40#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) 41#define RTALLOC1(A,B) rtalloc1((A),(B)) 42#elif defined(__FreeBSD__) 43#define RTALLOC1(A,B) rtalloc1((A),(B),0UL) 44#endif 45 46/* 47 * pseudo header for packet transmission --- 61 unchanged lines hidden --- | 100#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) 101#define RTALLOC1(A,B) rtalloc1((A),(B)) 102#elif defined(__FreeBSD__) 103#define RTALLOC1(A,B) rtalloc1((A),(B),0UL) 104#endif 105 106/* 107 * pseudo header for packet transmission --- 61 unchanged lines hidden --- |