bpqether.h 952 B

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