islpci_eth.h 1.9 KB

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