Standardize package build (isn't it easier ?)
[openwrt.git] / openwrt / package / linux / kernel-source / include / etsockio.h
1 /*
2 * Driver-specific socket ioctls
3 * used by BSD, Linux, and PSOS
4 * Broadcom BCM44XX 10/100Mbps Ethernet Device Driver
5 *
6 * Copyright 2004, Broadcom Corporation
7 * All Rights Reserved.
8 *
9 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
10 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
11 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
12 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
13 *
14 * $Id$
15 */
16
17 #ifndef _etsockio_h_
18 #define _etsockio_h_
19
20 /* THESE MUST BE CONTIGUOUS AND CONSISTENT WITH VALUES IN ETC.H */
21
22
23 #if defined(linux)
24 #define SIOCSETCUP (SIOCDEVPRIVATE + 0)
25 #define SIOCSETCDOWN (SIOCDEVPRIVATE + 1)
26 #define SIOCSETCLOOP (SIOCDEVPRIVATE + 2)
27 #define SIOCGETCDUMP (SIOCDEVPRIVATE + 3)
28 #define SIOCSETCSETMSGLEVEL (SIOCDEVPRIVATE + 4)
29 #define SIOCSETCPROMISC (SIOCDEVPRIVATE + 5)
30 #define SIOCSETCTXDOWN (SIOCDEVPRIVATE + 6) /* obsolete */
31 #define SIOCSETCSPEED (SIOCDEVPRIVATE + 7)
32 #define SIOCTXGEN (SIOCDEVPRIVATE + 8)
33 #define SIOCGETCPHYRD (SIOCDEVPRIVATE + 9)
34 #define SIOCSETCPHYWR (SIOCDEVPRIVATE + 10)
35
36 #else /* !linux */
37
38 #define SIOCSETCUP _IOWR('e', 130 + 0, struct ifreq)
39 #define SIOCSETCDOWN _IOWR('e', 130 + 1, struct ifreq)
40 #define SIOCSETCLOOP _IOWR('e', 130 + 2, struct ifreq)
41 #define SIOCGETCDUMP _IOWR('e', 130 + 3, struct ifreq)
42 #define SIOCSETCSETMSGLEVEL _IOWR('e', 130 + 4, struct ifreq)
43 #define SIOCSETCPROMISC _IOWR('e', 130 + 5, struct ifreq)
44 #define SIOCSETCTXDOWN _IOWR('e', 130 + 6, struct ifreq) /* obsolete */
45 #define SIOCSETCSPEED _IOWR('e', 130 + 7, struct ifreq)
46 #define SIOCTXGEN _IOWR('e', 130 + 8, struct ifreq)
47
48 #endif
49
50 /* arg to SIOCTXGEN */
51 struct txg {
52 uint32 num; /* number of frames to send */
53 uint32 delay; /* delay in microseconds between sending each */
54 uint32 size; /* size of ether frame to send */
55 uchar buf[1514]; /* starting ether frame data */
56 };
57
58 #endif
This page took 0.061585 seconds and 5 git commands to generate.