34f12137497418e57ab09220853a9e1f6657e677
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / files / drivers / net / adm5120sw.h
1 /*
2 * Defines for ADM5120 built in ethernet switch driver
3 *
4 * Copyright Jeroen Vreeken (pe1rxq@amsat.org), 2005
5 *
6 * Values come from ADM5120 datasheet and original ADMtek 2.4 driver,
7 * Copyright ADMtek Inc.
8 */
9
10 #ifndef _INCLUDE_ADM5120SW_H_
11 #define _INCLUDE_ADM5120SW_H_
12
13 struct adm5120_sw {
14 int port;
15 };
16
17 #define SIOCSMATRIX SIOCDEVPRIVATE
18 #define SIOCGMATRIX SIOCDEVPRIVATE+1
19 #define SIOCGADMINFO SIOCDEVPRIVATE+2
20 #define SIOCGETBW SIOCDEVPRIVATE+3
21 #define SIOCSETBW SIOCDEVPRIVATE+4
22
23 struct adm5120_sw_info {
24 u16 magic;
25 u16 ports;
26 u16 vlan;
27 };
28
29 #endif /* _INCLUDE_ADM5120SW_H_ */