bpqether.h 918 B

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