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 * Note, we need CHIP_6348 so that user application can also use this.
38 #if defined(CHIP_6348) || defined(CONFIG_BCM96348)
44 /*---------------------------------------------------------------------*/
45 /* Ethernet Switch Type */
46 /*---------------------------------------------------------------------*/
47 #define ESW_TYPE_UNDEFINED 0
48 #define ESW_TYPE_BCM5325M 1
49 #define ESW_TYPE_BCM5325E 2
50 #define ESW_TYPE_BCM5325F 3
55 /* reserved SIOCDEVPRIVATE */
57 SIOCGLINKSTATE = SIOCDEVPRIVATE + 1,
61 SIOCSDUPLEX, /* 0: auto 1: full 2: half */
62 SIOCSSPEED, /* 0: auto 1: 100mbps 2: 10mbps */
66 SIOCGQUERYNUMVLANPORTS,
74 #define SPEED_10MBIT 10000000
75 #define SPEED_100MBIT 100000000
77 typedef struct IoctlMibInfo
79 unsigned long ulIfLastChange;
80 unsigned long ulIfSpeed;
81 } IOCTL_MIB_INFO, *PIOCTL_MIB_INFO;
88 #endif /* _IF_NET_H_ */