islpci_eth.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2002 Intersil Americas Inc.
  4. */
  5. #ifndef _ISLPCI_ETH_H
  6. #define _ISLPCI_ETH_H
  7. #include "isl_38xx.h"
  8. #include "islpci_dev.h"
  9. struct rfmon_header {
  10. __le16 unk0; /* = 0x0000 */
  11. __le16 length; /* = 0x1400 */
  12. __le32 clock; /* 1MHz clock */
  13. u8 flags;
  14. u8 unk1;
  15. u8 rate;
  16. u8 unk2;
  17. __le16 freq;
  18. __le16 unk3;
  19. u8 rssi;
  20. u8 padding[3];
  21. } __packed;
  22. struct rx_annex_header {
  23. u8 addr1[ETH_ALEN];
  24. u8 addr2[ETH_ALEN];
  25. struct rfmon_header rfmon;
  26. } __packed;
  27. /* wlan-ng (and hopefully others) AVS header, version one. Fields in
  28. * network byte order. */
  29. #define P80211CAPTURE_VERSION 0x80211001
  30. struct avs_80211_1_header {
  31. __be32 version;
  32. __be32 length;
  33. __be64 mactime;
  34. __be64 hosttime;
  35. __be32 phytype;
  36. __be32 channel;
  37. __be32 datarate;
  38. __be32 antenna;
  39. __be32 priority;
  40. __be32 ssi_type;
  41. __be32 ssi_signal;
  42. __be32 ssi_noise;
  43. __be32 preamble;
  44. __be32 encoding;
  45. };
  46. void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *);
  47. netdev_tx_t islpci_eth_transmit(struct sk_buff *, struct net_device *);
  48. int islpci_eth_receive(islpci_private *);
  49. void islpci_eth_tx_timeout(struct net_device *);
  50. void islpci_do_reset_and_wake(struct work_struct *);
  51. #endif /* _ISL_GEN_H */