hal_com_phycfg.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __HAL_COM_PHYCFG_H__
  21. #define __HAL_COM_PHYCFG_H__
  22. #define MAX_POWER_INDEX 0x3F
  23. typedef enum _REGULATION_TXPWR_LMT {
  24. TXPWR_LMT_FCC = 0,
  25. TXPWR_LMT_MKK,
  26. TXPWR_LMT_ETSI,
  27. } REGULATION_TXPWR_LMT;
  28. /*------------------------------Define structure----------------------------*/
  29. typedef struct _BB_REGISTER_DEFINITION{
  30. u32 rfintfs; // set software control:
  31. // 0x870~0x877[8 bytes]
  32. u32 rfintfo; // output data:
  33. // 0x860~0x86f [16 bytes]
  34. u32 rfintfe; // output enable:
  35. // 0x860~0x86f [16 bytes]
  36. u32 rf3wireOffset; // LSSI data:
  37. // 0x840~0x84f [16 bytes]
  38. u32 rfHSSIPara2; // wire parameter control2 :
  39. // 0x824~0x827,0x82c~0x82f, 0x834~0x837, 0x83c~0x83f [16 bytes]
  40. u32 rfLSSIReadBack; //LSSI RF readback data SI mode
  41. // 0x8a0~0x8af [16 bytes]
  42. u32 rfLSSIReadBackPi; //LSSI RF readback data PI mode 0x8b8-8bc for Path A and B
  43. }BB_REGISTER_DEFINITION_T, *PBB_REGISTER_DEFINITION_T;
  44. #ifndef CONFIG_EMBEDDED_FWIMG
  45. int phy_ConfigMACWithParaFile(IN PADAPTER Adapter, IN u8* pFileName);
  46. int PHY_ConfigBBWithPowerLimitTableParaFile(IN PADAPTER Adapter, IN s8* pFileName);
  47. int phy_ConfigBBWithParaFile(IN PADAPTER Adapter, IN u8* pFileName);
  48. int phy_ConfigBBWithPgParaFile(IN PADAPTER Adapter, IN u8* pFileName);
  49. int phy_ConfigBBWithMpParaFile(IN PADAPTER Adapter, IN u8* pFileName);
  50. int PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN u8* pFileName, IN u8 eRFPath);
  51. int PHY_ConfigRFWithTxPwrTrackParaFile(IN PADAPTER Adapter, IN u8* pFileName);
  52. #endif
  53. #endif //__HAL_COMMON_H__