From owner-freebsd-arch@FreeBSD.ORG Tue Apr 22 03:09:58 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F4837B401 for ; Tue, 22 Apr 2003 03:09:58 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 067A243FE5 for ; Tue, 22 Apr 2003 03:09:57 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h3MA9tE11538 for ; Tue, 22 Apr 2003 12:09:55 +0200 (MEST) Date: Tue, 22 Apr 2003 12:09:55 +0200 (CEST) From: Harti Brandt To: freebsd-arch@freebsd.org Message-ID: <20030422115708.J39097@beagle.fokus.fraunhofer.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: media definitions for ATM X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 10:09:58 -0000 Hi all, in preparation for a SUNI module that allows uniform access to the ATM layer stuff for most ATM cards I want to introduce if_media definitions for ATM. Neither OpenBSD nor NetBSD seems to have them, I don't know about BSD/OS (is there a place on can look at their header files?). While you normally can't switch media on an ATM card, it makes sense to be able to toggle media options via ifconfig (SDH and Sonet, for example) and see the carrier state.c So driven by the lack of prior art I came up with the following definitions that use the next available media code (5): /* * ATM */ #define IFM_ATM 0x000000a0 #define IFM_ATM_UNKNOWN 3 #define IFM_ATM_TAXI_100 4 #define IFM_ATM_TAXI_140 5 #define IFM_ATM_MM_155 6 #define IFM_ATM_SM_155 7 #define IFM_ATM_UTP_155 8 #define IFM_ATM_MM_622 9 #define IFM_ATM_SM_622 10 #define IFM_ATM_SDH 0x00000100 /* SDH instead of SONET */ #define IFM_ATM_NOSCRAMB 0x00000200 /* no scrambling */ #define IFM_ATM_UNASSIGNED 0x00000400 /* unassigned cells */ Would these be ok? Does anybody know of any conflicts with other *BSD*? harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org