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