islpci_eth.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (C) 2002 Intersil Americas Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #ifndef _ISLPCI_ETH_H
  18. #define _ISLPCI_ETH_H
  19. #include "isl_38xx.h"
  20. #include "islpci_dev.h"
  21. struct rfmon_header {
  22. __le16 unk0; /* = 0x0000 */
  23. __le16 length; /* = 0x1400 */
  24. __le32 clock; /* 1MHz clock */
  25. u8 flags;
  26. u8 unk1;
  27. u8 rate;
  28. u8 unk2;
  29. __le16 freq;
  30. __le16 unk3;
  31. u8 rssi;
  32. u8 padding[3];
  33. } __packed;
  34. struct rx_annex_header {
  35. u8 addr1[ETH_ALEN];
  36. u8 addr2[ETH_ALEN];
  37. struct rfmon_header rfmon;
  38. } __packed;
  39. /* wlan-ng (and hopefully others) AVS header, version one. Fields in
  40. * network byte order. */
  41. #define P80211CAPTURE_VERSION 0x80211001
  42. struct avs_80211_1_header {
  43. __be32 version;
  44. __be32 length;
  45. __be64 mactime;
  46. __be64 hosttime;
  47. __be32 phytype;
  48. __be32 channel;
  49. __be32 datarate;
  50. __be32 antenna;
  51. __be32 priority;
  52. __be32 ssi_type;
  53. __be32 ssi_signal;
  54. __be32 ssi_noise;
  55. __be32 preamble;
  56. __be32 encoding;
  57. };
  58. void islpci_eth_cleanup_transmit(islpci_private *, isl38xx_control_block *);
  59. netdev_tx_t islpci_eth_transmit(struct sk_buff *, struct net_device *);
  60. int islpci_eth_receive(islpci_private *);
  61. void islpci_eth_tx_timeout(struct net_device *);
  62. void islpci_do_reset_and_wake(struct work_struct *);
  63. #endif /* _ISL_GEN_H */