3 Copyright 2002 Broadcom Corp. All Rights Reserved.
5 This program is free software; you can distribute it and/or modify it
6 under the terms of the GNU General Public License (Version 2) as
7 published by the Free Software Foundation.
9 This program is distributed in the hope it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
19 /***********************************************************************/
21 /* MODULE: bcmnet.h */
23 /* PURPOSE: network interface ioctl definition */
25 /***********************************************************************/
33 #define LINKSTATE_DOWN 0
34 #define LINKSTATE_UP 1
36 /*---------------------------------------------------------------------*/
37 /* Ethernet Switch Type */
38 /*---------------------------------------------------------------------*/
39 #define ESW_TYPE_UNDEFINED 0
40 #define ESW_TYPE_BCM5325M 1
41 #define ESW_TYPE_BCM5325E 2
42 #define ESW_TYPE_BCM5325F 3
47 /* reserved SIOCDEVPRIVATE */
49 SIOCGLINKSTATE = SIOCDEVPRIVATE + 1,
53 SIOCSDUPLEX, /* 0: auto 1: full 2: half */
54 SIOCSSPEED, /* 0: auto 1: 100mbps 2: 10mbps */
58 SIOCGQUERYNUMVLANPORTS,
66 #define SPEED_10MBIT 10000000
67 #define SPEED_100MBIT 100000000
69 typedef struct IoctlMibInfo
71 unsigned long ulIfLastChange;
72 unsigned long ulIfSpeed;
73 } IOCTL_MIB_INFO, *PIOCTL_MIB_INFO;
80 #endif /* _IF_NET_H_ */