bpqether.h 981 B

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