xref: /openbmc/linux/include/uapi/linux/bpqether.h (revision 9cfc5c90)
1 #ifndef	__BPQETHER_H
2 #define	__BPQETHER_H
3 
4 /*
5  * 	Defines for the BPQETHER pseudo device driver
6  */
7 
8 #ifndef __LINUX_IF_ETHER_H
9 #include <linux/if_ether.h>
10 #endif
11 
12 #define SIOCSBPQETHOPT		(SIOCDEVPRIVATE+0)	/* reserved */
13 #define SIOCSBPQETHADDR		(SIOCDEVPRIVATE+1)
14 
15 struct bpq_ethaddr {
16 	unsigned char destination[ETH_ALEN];
17 	unsigned char accept[ETH_ALEN];
18 };
19 
20 /*
21  * For SIOCSBPQETHOPT - this is compatible with PI2/PacketTwin card drivers,
22  * currently not implemented, though. If someone wants to hook a radio
23  * to his Ethernet card he may find this useful. ;-)
24  */
25 
26 #define SIOCGBPQETHPARAM	0x5000  /* get Level 1 parameters */
27 #define SIOCSBPQETHPARAM	0x5001  /* set */
28 
29 struct bpq_req  {
30     int cmd;
31     int speed;			/* unused */
32     int clockmode;		/* unused */
33     int txdelay;
34     unsigned char persist;	/* unused */
35     int slotime;		/* unused */
36     int squeldelay;
37     int dmachan;		/* unused */
38     int irq;			/* unused */
39 };
40 
41 #endif
42