rf.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
  3. * All rights reserved.
  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, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. *
  20. * File: rf.h
  21. *
  22. * Purpose:
  23. *
  24. * Author: Jerry Chen
  25. *
  26. * Date: Feb. 19, 2004
  27. *
  28. */
  29. #ifndef __RF_H__
  30. #define __RF_H__
  31. #include "device.h"
  32. /*--------------------- Export Definitions -------------------------*/
  33. /*
  34. * Baseband RF pair definition in eeprom (Bits 6..0)
  35. */
  36. #define RF_RFMD2959 0x01
  37. #define RF_MAXIMAG 0x02
  38. #define RF_AIROHA 0x03
  39. #define RF_UW2451 0x05
  40. #define RF_MAXIMG 0x06
  41. #define RF_MAXIM2829 0x07 /* RobertYu: 20041118 */
  42. #define RF_UW2452 0x08 /* RobertYu: 20041210 */
  43. #define RF_AIROHA7230 0x0a /* RobertYu: 20050104 */
  44. #define RF_UW2453 0x0b
  45. #define RF_VT3226 0x09
  46. #define RF_AL2230S 0x0e
  47. #define RF_NOTHING 0x7E
  48. #define RF_EMU 0x80
  49. #define RF_MASK 0x7F
  50. #define ZONE_FCC 0
  51. #define ZONE_MKK1 1
  52. #define ZONE_ETSI 2
  53. #define ZONE_IC 3
  54. #define ZONE_SPAIN 4
  55. #define ZONE_FRANCE 5
  56. #define ZONE_MKK 6
  57. #define ZONE_ISRAEL 7
  58. /* [20050104] CB_MAXIM2829_CHANNEL_5G_HIGH, CB_UW2452_CHANNEL_5G_HIGH: 40==>41 */
  59. #define CB_MAXIM2829_CHANNEL_5G_HIGH 41 /* Index41: channel = 100, Tf = 5500MHz, set the (A3:A0=0101) D6=1 */
  60. #define CB_UW2452_CHANNEL_5G_HIGH 41 /* [20041210] Index41: channel = 100, Tf = 5500MHz, change VCO2->VCO3 */
  61. /*--------------------- Export Classes ----------------------------*/
  62. /*--------------------- Export Variables --------------------------*/
  63. /*--------------------- Export Functions --------------------------*/
  64. bool IFRFbWriteEmbedded(struct vnt_private *, unsigned long dwData);
  65. bool RFbSelectChannel(struct vnt_private *, unsigned char byRFType, u16);
  66. bool RFbInit(
  67. struct vnt_private *
  68. );
  69. bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, u16);
  70. bool RFbSetPower(struct vnt_private *, unsigned int rate, u16);
  71. bool RFbRawSetPower(
  72. struct vnt_private *,
  73. unsigned char byPwr,
  74. unsigned int rate
  75. );
  76. void
  77. RFvRSSITodBm(
  78. struct vnt_private *,
  79. unsigned char byCurrRSSI,
  80. long *pldBm
  81. );
  82. /* {{ RobertYu: 20050104 */
  83. bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, u16, u16);
  84. /* }} RobertYu */
  85. #endif /* __RF_H__ */