Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __BPQETHER_H
0003 #define __BPQETHER_H
0004 
0005 /*
0006  *  Defines for the BPQETHER pseudo device driver
0007  */
0008 
0009 #include <linux/if_ether.h>
0010 
0011 #define SIOCSBPQETHOPT      (SIOCDEVPRIVATE+0)  /* reserved */
0012 #define SIOCSBPQETHADDR     (SIOCDEVPRIVATE+1)
0013  
0014 struct bpq_ethaddr {
0015     unsigned char destination[ETH_ALEN];
0016     unsigned char accept[ETH_ALEN];
0017 };
0018 
0019 /* 
0020  * For SIOCSBPQETHOPT - this is compatible with PI2/PacketTwin card drivers,
0021  * currently not implemented, though. If someone wants to hook a radio
0022  * to his Ethernet card he may find this useful. ;-)
0023  */
0024 
0025 #define SIOCGBPQETHPARAM    0x5000  /* get Level 1 parameters */
0026 #define SIOCSBPQETHPARAM    0x5001  /* set */
0027 
0028 struct bpq_req  {
0029     int cmd;
0030     int speed;          /* unused */
0031     int clockmode;      /* unused */
0032     int txdelay;
0033     unsigned char persist;  /* unused */
0034     int slotime;        /* unused */
0035     int squeldelay;
0036     int dmachan;        /* unused */
0037     int irq;            /* unused */
0038 };
0039 
0040 #endif