xref: /linux/include/uapi/linux/bpqether.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells #ifndef	__BPQETHER_H
3607ca46eSDavid Howells #define	__BPQETHER_H
4607ca46eSDavid Howells 
5607ca46eSDavid Howells /*
6607ca46eSDavid Howells  * 	Defines for the BPQETHER pseudo device driver
7607ca46eSDavid Howells  */
8607ca46eSDavid Howells 
9607ca46eSDavid Howells #include <linux/if_ether.h>
10607ca46eSDavid Howells 
11607ca46eSDavid Howells #define SIOCSBPQETHOPT		(SIOCDEVPRIVATE+0)	/* reserved */
12607ca46eSDavid Howells #define SIOCSBPQETHADDR		(SIOCDEVPRIVATE+1)
13607ca46eSDavid Howells 
14607ca46eSDavid Howells struct bpq_ethaddr {
15607ca46eSDavid Howells 	unsigned char destination[ETH_ALEN];
16607ca46eSDavid Howells 	unsigned char accept[ETH_ALEN];
17607ca46eSDavid Howells };
18607ca46eSDavid Howells 
19607ca46eSDavid Howells /*
20607ca46eSDavid Howells  * For SIOCSBPQETHOPT - this is compatible with PI2/PacketTwin card drivers,
21607ca46eSDavid Howells  * currently not implemented, though. If someone wants to hook a radio
22607ca46eSDavid Howells  * to his Ethernet card he may find this useful. ;-)
23607ca46eSDavid Howells  */
24607ca46eSDavid Howells 
25607ca46eSDavid Howells #define SIOCGBPQETHPARAM	0x5000  /* get Level 1 parameters */
26607ca46eSDavid Howells #define SIOCSBPQETHPARAM	0x5001  /* set */
27607ca46eSDavid Howells 
28607ca46eSDavid Howells struct bpq_req  {
29607ca46eSDavid Howells     int cmd;
30607ca46eSDavid Howells     int speed;			/* unused */
31607ca46eSDavid Howells     int clockmode;		/* unused */
32607ca46eSDavid Howells     int txdelay;
33607ca46eSDavid Howells     unsigned char persist;	/* unused */
34607ca46eSDavid Howells     int slotime;		/* unused */
35607ca46eSDavid Howells     int squeldelay;
36607ca46eSDavid Howells     int dmachan;		/* unused */
37607ca46eSDavid Howells     int irq;			/* unused */
38607ca46eSDavid Howells };
39607ca46eSDavid Howells 
40607ca46eSDavid Howells #endif
41