Deleted Added
sdiff udiff text old ( 60938 ) new ( 77217 )
full compact
1/* $NetBSD: if_media.h,v 1.3 1997/03/26 01:19:27 thorpej Exp $ */
2/* $FreeBSD: head/sys/net/if_media.h 60938 2000-05-26 02:09:24Z jake $ */
3
4/*
5 * Copyright (c) 1997
6 * Jonathan Stone and Jason R. Thorpe. All rights reserved.
7 *
8 * This software is derived from information provided by Matt Thomas.
9 *
10 * Redistribution and use in source and binary forms, with or without

--- 151 unchanged lines hidden (view full) ---

162 */
163#define IFM_FDDI 0x00000060
164#define IFM_FDDI_SMF 3 /* Single-mode fiber */
165#define IFM_FDDI_MMF 4 /* Multi-mode fiber */
166#define IFM_FDDI_UTP 5 /* CDDI / UTP */
167#define IFM_FDDI_DA 0x00000100 /* Dual attach / single attach */
168
169/*
170 * Shared media sub-types
171 */
172#define IFM_AUTO 0 /* Autoselect best media */
173#define IFM_MANUAL 1 /* Jumper/dipswitch selects media */
174#define IFM_NONE 2 /* Deselect all media */
175
176/*
177 * Shared options

--- 46 unchanged lines hidden (view full) ---

224 * Otherwise, parsing these in ifconfig(8) would be a nightmare.
225 */
226struct ifmedia_description {
227 int ifmt_word; /* word value; may be masked */
228 const char *ifmt_string; /* description */
229};
230
231#define IFM_TYPE_DESCRIPTIONS { \
232 { IFM_ETHER, "Ethernet" }, \
233 { IFM_TOKEN, "Token ring" }, \
234 { IFM_FDDI, "FDDI" }, \
235 { 0, NULL }, \
236}
237
238#define IFM_SUBTYPE_ETHERNET_DESCRIPTIONS { \
239 { IFM_10_T, "10baseT/UTP" }, \
240 { IFM_10_2, "10base2/BNC" }, \
241 { IFM_10_5, "10base5/AUI" }, \
242 { IFM_100_TX, "100baseTX" }, \

--- 82 unchanged lines hidden (view full) ---

325 { 0, NULL }, \
326}
327
328#define IFM_SUBTYPE_FDDI_OPTION_DESCRIPTIONS { \
329 { IFM_FDDI_DA, "Dual-attach" }, \
330 { 0, NULL }, \
331}
332
333#define IFM_SUBTYPE_SHARED_DESCRIPTIONS { \
334 { IFM_AUTO, "autoselect" }, \
335 { IFM_MANUAL, "manual" }, \
336 { IFM_NONE, "none" }, \
337 { 0, NULL }, \
338}
339
340#define IFM_SUBTYPE_SHARED_ALIASES { \

--- 15 unchanged lines hidden ---