halmac_reg2.h 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232
  1. #ifndef __HALMAC_COM_REG_H__
  2. #define __HALMAC_COM_REG_H__
  3. /*-------------------------Modification Log-----------------------------------
  4. For Page0, it is based on Combo_And_WL_Only_Page0_Reg.xls SVN524
  5. The supported IC are 8723A, 8881A, 8723B, 8192E, 8881A
  6. 8812A and 8188E is not included in page0 register
  7. For other pages, it is based on MAC_Register.doc SVN502
  8. Most IC is the same with 8812A
  9. -------------------------Modification Log-----------------------------------*/
  10. /*--------------------------Include File--------------------------------------*/
  11. #include "halmac_hw_cfg.h"
  12. /*--------------------------Include File--------------------------------------*/
  13. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  14. #define REG_SYS_ISO_CTRL 0x0000
  15. #endif
  16. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  17. #define REG_SDIO_TX_CTRL 0x10250000
  18. #endif
  19. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  20. #define REG_SYS_FUNC_EN 0x0002
  21. #define REG_SYS_PW_CTRL 0x0004
  22. #define REG_SYS_CLK_CTRL 0x0008
  23. #define REG_SYS_EEPROM_CTRL 0x000A
  24. #define REG_EE_VPD 0x000C
  25. #define REG_SYS_SWR_CTRL1 0x0010
  26. #define REG_SYS_SWR_CTRL2 0x0014
  27. #endif
  28. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  29. #define REG_SDIO_HIMR 0x10250014
  30. #endif
  31. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  32. #define REG_SYS_SWR_CTRL3 0x0018
  33. #endif
  34. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  35. #define REG_SDIO_HISR 0x10250018
  36. #endif
  37. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  38. #define REG_RSV_CTRL 0x001C
  39. #endif
  40. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  41. #define REG_SDIO_RX_REQ_LEN 0x1025001C
  42. #endif
  43. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  44. #define REG_RF_CTRL 0x001F
  45. #endif
  46. #if (HALMAC_8197F_SUPPORT)
  47. #define REG_RF0_CTRL 0x001F
  48. #endif
  49. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  50. #define REG_SDIO_FREE_TXPG_SEQ_V1 0x1025001F
  51. #endif
  52. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  53. #define REG_AFE_LDO_CTRL 0x0020
  54. #endif
  55. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  56. #define REG_SDIO_FREE_TXPG 0x10250020
  57. #endif
  58. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  59. #define REG_AFE_CTRL1 0x0024
  60. #endif
  61. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  62. #define REG_SDIO_FREE_TXPG2 0x10250024
  63. #endif
  64. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  65. #define REG_AFE_CTRL2 0x0028
  66. #endif
  67. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  68. #define REG_SDIO_OQT_FREE_TXPG_V1 0x10250028
  69. #endif
  70. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  71. #define REG_AFE_CTRL3 0x002C
  72. #define REG_EFUSE_CTRL 0x0030
  73. #endif
  74. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  75. #define REG_SDIO_HTSFR_INFO 0x10250030
  76. #endif
  77. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  78. #define REG_LDO_EFUSE_CTRL 0x0034
  79. #define REG_PWR_OPTION_CTRL 0x0038
  80. #endif
  81. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  82. #define REG_SDIO_HCPWM1_V2 0x10250038
  83. #define REG_SDIO_HCPWM2_V2 0x1025003A
  84. #endif
  85. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  86. #define REG_CAL_TIMER 0x003C
  87. #define REG_ACLK_MON 0x003E
  88. #define REG_GPIO_MUXCFG 0x0040
  89. #endif
  90. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  91. #define REG_SDIO_INDIRECT_REG_CFG 0x10250040
  92. #endif
  93. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  94. #define REG_GPIO_PIN_CTRL 0x0044
  95. #endif
  96. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  97. #define REG_SDIO_INDIRECT_REG_DATA 0x10250044
  98. #endif
  99. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  100. #define REG_GPIO_INTM 0x0048
  101. #define REG_LED_CFG 0x004C
  102. #define REG_FSIMR 0x0050
  103. #define REG_FSISR 0x0054
  104. #define REG_HSIMR 0x0058
  105. #define REG_HSISR 0x005C
  106. #define REG_GPIO_EXT_CTRL 0x0060
  107. #endif
  108. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  109. #define REG_SDIO_H2C 0x10250060
  110. #endif
  111. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  112. #define REG_PAD_CTRL1 0x0064
  113. #endif
  114. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  115. #define REG_SDIO_C2H 0x10250064
  116. #endif
  117. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  118. #define REG_WL_BT_PWR_CTRL 0x0068
  119. #endif
  120. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  121. #define REG_SDM_DEBUG 0x006C
  122. #endif
  123. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  124. #define REG_GSSR 0x006C
  125. #endif
  126. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  127. #define REG_SYS_SDIO_CTRL 0x0070
  128. #endif
  129. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  130. #define REG_SYS_CLKR 0x0070
  131. #endif
  132. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  133. #define REG_HCI_OPT_CTRL 0x0074
  134. #endif
  135. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  136. #define REG_AFE_CTRL4 0x0078
  137. #endif
  138. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  139. #define REG_AFE_XTAL_CTRL_EXT 0x0078
  140. #endif
  141. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  142. #define REG_LDO_SWR_CTRL 0x007C
  143. #endif
  144. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  145. #define REG_8051FW_CTRL 0x0080
  146. #endif
  147. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  148. #define REG_MCUFW_CTRL 0x0080
  149. #endif
  150. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  151. #define REG_SDIO_HRPWM1 0x10250080
  152. #define REG_SDIO_HRPWM2 0x10250082
  153. #endif
  154. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  155. #define REG_MCU_TST_CFG 0x0084
  156. #endif
  157. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  158. #define REG_SDIO_HPS_CLKR 0x10250084
  159. #define REG_SDIO_BUS_CTRL 0x10250085
  160. #endif
  161. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  162. #define REG_SDIO_HSUS_CTRL 0x10250086
  163. #endif
  164. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  165. #define REG_HMEBOX_E0_E1 0x0088
  166. #endif
  167. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  168. #define REG_SDIO_RESPONSE_TIMER 0x10250088
  169. #endif
  170. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  171. #define REG_SDIO_CMD_CRC 0x1025008A
  172. #endif
  173. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  174. #define REG_HMEBOX_E2_E3 0x008C
  175. #define REG_WLLPS_CTRL 0x0090
  176. #endif
  177. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  178. #define REG_SDIO_HSISR 0x10250090
  179. #define REG_SDIO_HSIMR 0x10250091
  180. #endif
  181. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  182. #define REG_AFE_CTRL5 0x0094
  183. #endif
  184. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  185. #define REG_GPIO_DEBOUNCE_CTRL 0x0098
  186. #define REG_RPWM2 0x009C
  187. #define REG_SYSON_FSM_MON 0x00A0
  188. #endif
  189. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  190. #define REG_AFE_CTRL6 0x00A4
  191. #endif
  192. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  193. #define REG_PMC_DBG_CTRL1 0x00A8
  194. #endif
  195. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  196. #define REG_AFE_CTRL7 0x00AC
  197. #endif
  198. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  199. #define REG_HIMR0 0x00B0
  200. #define REG_HISR0 0x00B4
  201. #define REG_HIMR1 0x00B8
  202. #define REG_HISR1 0x00BC
  203. #define REG_DBG_PORT_SEL 0x00C0
  204. #endif
  205. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  206. #define REG_SDIO_ERR_RPT 0x102500C0
  207. #define REG_SDIO_CMD_ERRCNT 0x102500C1
  208. #define REG_SDIO_DATA_ERRCNT 0x102500C2
  209. #endif
  210. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  211. #define REG_PAD_CTRL2 0x00C4
  212. #endif
  213. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  214. #define REG_SDIO_CMD_ERR_CONTENT 0x102500C4
  215. #endif
  216. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  217. #define REG_MEM_RMC 0x00C8
  218. #endif
  219. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  220. #define REG_SDIO_CRC_ERR_IDX 0x102500C9
  221. #define REG_SDIO_DATA_CRC 0x102500CA
  222. #define REG_SDIO_DATA_REPLY_TIME 0x102500CB
  223. #endif
  224. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  225. #define REG_PMC_DBG_CTRL2 0x00CC
  226. #define REG_BIST_CTRL 0x00D0
  227. #define REG_BIST_RPT 0x00D4
  228. #define REG_MEM_CTRL 0x00D8
  229. #endif
  230. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  231. #define REG_AFE_CTRL8 0x00DC
  232. #endif
  233. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  234. #define REG_WLAN_DBG 0x00DC
  235. #endif
  236. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  237. #define REG_USB_SIE_INTF 0x00E0
  238. #define REG_PCIE_MIO_INTF 0x00E4
  239. #define REG_PCIE_MIO_INTD 0x00E8
  240. #endif
  241. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  242. #define REG_WLRF1 0x00EC
  243. #endif
  244. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  245. #define REG_HPON_FSM 0x00EC
  246. #endif
  247. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  248. #define REG_SYS_CFG1 0x00F0
  249. #define REG_SYS_STATUS1 0x00F4
  250. #define REG_SYS_STATUS2 0x00F8
  251. #define REG_SYS_CFG2 0x00FC
  252. #define REG_CR 0x0100
  253. #endif
  254. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  255. #define REG_PKT_BUFF_ACCESS_CTRL 0x0106
  256. #endif
  257. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  258. #define REG_TSF_CLK_STATE 0x0108
  259. #define REG_TXDMA_PQ_MAP 0x010C
  260. #define REG_TRXFF_BNDY 0x0114
  261. #endif
  262. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  263. #define REG_PTA_I2C_MBOX 0x0118
  264. #endif
  265. #if (HALMAC_8814A_SUPPORT)
  266. #define REG_FF_STATUS 0x0118
  267. #endif
  268. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8881A_SUPPORT)
  269. #define REG_RXFF_PTR 0x011C
  270. #endif
  271. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  272. #define REG_RXFF_BNDY 0x011C
  273. #endif
  274. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  275. #define REG_FEIMR 0x0120
  276. #endif
  277. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  278. #define REG_FE1IMR 0x0120
  279. #endif
  280. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  281. #define REG_FEISR 0x0124
  282. #endif
  283. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  284. #define REG_FE1ISR 0x0124
  285. #endif
  286. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  287. #define REG_CPWM 0x012C
  288. #define REG_FWIMR 0x0130
  289. #define REG_FWISR 0x0134
  290. #define REG_FTIMR 0x0138
  291. #define REG_FTISR 0x013C
  292. #define REG_PKTBUF_DBG_CTRL 0x0140
  293. #define REG_PKTBUF_DBG_DATA_L 0x0144
  294. #define REG_PKTBUF_DBG_DATA_H 0x0148
  295. #define REG_CPWM2 0x014C
  296. #define REG_TC0_CTRL 0x0150
  297. #define REG_TC1_CTRL 0x0154
  298. #define REG_TC2_CTRL 0x0158
  299. #define REG_TC3_CTRL 0x015C
  300. #define REG_TC4_CTRL 0x0160
  301. #define REG_TCUNIT_BASE 0x0164
  302. #define REG_TC5_CTRL 0x0168
  303. #define REG_TC6_CTRL 0x016C
  304. #define REG_MBIST_FAIL 0x0170
  305. #define REG_MBIST_START_PAUSE 0x0174
  306. #define REG_MBIST_DONE 0x0178
  307. #endif
  308. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  309. #define REG_MBIST_ROM_CRC_DATA 0x017C
  310. #endif
  311. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  312. #define REG_MBIST_FAIL_NRML 0x017C
  313. #endif
  314. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  315. #define REG_AES_DECRPT_DATA 0x0180
  316. #define REG_AES_DECRPT_CFG 0x0184
  317. #endif
  318. #if (HALMAC_8197F_SUPPORT)
  319. #define REG_MACCLKFRQ 0x018C
  320. #endif
  321. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  322. #define REG_TMETER 0x0190
  323. #define REG_OSC_32K_CTRL 0x0194
  324. #define REG_32K_CAL_REG1 0x0198
  325. #define REG_C2HEVT 0x01A0
  326. #endif
  327. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  328. #define REG_C2HEVT_1 0x01A4
  329. #define REG_C2HEVT_2 0x01A8
  330. #define REG_C2HEVT_3 0x01AC
  331. #endif
  332. #if (HALMAC_8814A_SUPPORT)
  333. #define REG_TC7_CTRL 0x01B0
  334. #define REG_TC8_CTRL 0x01B4
  335. #endif
  336. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  337. #define REG_SW_DEFINED_PAGE1 0x01B8
  338. #endif
  339. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  340. #define REG_SW_DEFINED_PAGE2 0x01BC
  341. #endif
  342. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  343. #define REG_MCUTST_I 0x01C0
  344. #define REG_MCUTST_II 0x01C4
  345. #define REG_FMETHR 0x01C8
  346. #define REG_HMETFR 0x01CC
  347. #define REG_HMEBOX0 0x01D0
  348. #define REG_HMEBOX1 0x01D4
  349. #define REG_HMEBOX2 0x01D8
  350. #define REG_HMEBOX3 0x01DC
  351. #define REG_LLT_INIT 0x01E0
  352. #endif
  353. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  354. #define REG_GENTST 0x01E4
  355. #endif
  356. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  357. #define REG_LLT_INIT_ADDR 0x01E4
  358. #endif
  359. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  360. #define REG_BB_ACCESS_CTRL 0x01E8
  361. #define REG_BB_ACCESS_DATA 0x01EC
  362. #define REG_HMEBOX_E0 0x01F0
  363. #define REG_HMEBOX_E1 0x01F4
  364. #define REG_HMEBOX_E2 0x01F8
  365. #define REG_HMEBOX_E3 0x01FC
  366. #endif
  367. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  368. #define REG_RQPN_CTRL_HLPQ 0x0200
  369. #endif
  370. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  371. #define REG_FIFOPAGE_CTRL_1 0x0200
  372. #endif
  373. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  374. #define REG_FIFOPAGE_INFO 0x0204
  375. #endif
  376. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  377. #define REG_FIFOPAGE_CTRL_2 0x0204
  378. #endif
  379. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  380. #define REG_DWBCN0_CTRL 0x0208
  381. #endif
  382. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  383. #define REG_AUTO_LLT_V1 0x0208
  384. #endif
  385. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  386. #define REG_TXDMA_OFFSET_CHK 0x020C
  387. #define REG_TXDMA_STATUS 0x0210
  388. #endif
  389. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  390. #define REG_RQPN_NPQ 0x0214
  391. #endif
  392. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  393. #define REG_TX_DMA_DBG 0x0214
  394. #endif
  395. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  396. #define REG_TQPNT1 0x0218
  397. #define REG_TQPNT2 0x021C
  398. #endif
  399. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  400. #define REG_TDE_DEBUG 0x0220
  401. #endif
  402. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  403. #define REG_TQPNT3 0x0220
  404. #endif
  405. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  406. #define REG_AUTO_LLT 0x0224
  407. #endif
  408. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  409. #define REG_TQPNT4 0x0224
  410. #endif
  411. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  412. #define REG_DWBCN1_CTRL 0x0228
  413. #endif
  414. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  415. #define REG_RQPN_CTRL_1 0x0228
  416. #define REG_RQPN_CTRL_2 0x022C
  417. #define REG_FIFOPAGE_INFO_1 0x0230
  418. #define REG_FIFOPAGE_INFO_2 0x0234
  419. #define REG_FIFOPAGE_INFO_3 0x0238
  420. #define REG_FIFOPAGE_INFO_4 0x023C
  421. #define REG_FIFOPAGE_INFO_5 0x0240
  422. #endif
  423. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  424. #define REG_H2C_HEAD 0x0244
  425. #define REG_H2C_TAIL 0x0248
  426. #define REG_H2C_READ_ADDR 0x024C
  427. #define REG_H2C_WR_ADDR 0x0250
  428. #define REG_H2C_INFO 0x0254
  429. #endif
  430. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  431. #define REG_RXDMA_AGG_PG_TH 0x0280
  432. #define REG_RXPKT_NUM 0x0284
  433. #define REG_RXDMA_STATUS 0x0288
  434. #define REG_RXDMA_DPR 0x028C
  435. #define REG_RXDMA_MODE 0x0290
  436. #define REG_C2H_PKT 0x0294
  437. #endif
  438. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  439. #define REG_FWFF_C2H 0x0298
  440. #define REG_FWFF_CTRL 0x029C
  441. #define REG_FWFF_PKT_INFO 0x02A0
  442. #endif
  443. #if (HALMAC_8197F_SUPPORT)
  444. #define REG_FC2H_INFO 0x02A6
  445. #endif
  446. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  447. #define REG_PCIE_CTRL 0x0300
  448. #endif
  449. #if (HALMAC_8197F_SUPPORT)
  450. #define REG_HCI_CTRL 0x0300
  451. #endif
  452. #if (HALMAC_8881A_SUPPORT)
  453. #define REG_LX_CTRL1 0x0300
  454. #endif
  455. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  456. #define REG_INT_MIG 0x0304
  457. #define REG_BCNQ_TXBD_DESA 0x0308
  458. #define REG_MGQ_TXBD_DESA 0x0310
  459. #define REG_VOQ_TXBD_DESA 0x0318
  460. #define REG_VIQ_TXBD_DESA 0x0320
  461. #define REG_BEQ_TXBD_DESA 0x0328
  462. #define REG_BKQ_TXBD_DESA 0x0330
  463. #define REG_RXQ_RXBD_DESA 0x0338
  464. #define REG_HI0Q_TXBD_DESA 0x0340
  465. #define REG_HI1Q_TXBD_DESA 0x0348
  466. #define REG_HI2Q_TXBD_DESA 0x0350
  467. #define REG_HI3Q_TXBD_DESA 0x0358
  468. #define REG_HI4Q_TXBD_DESA 0x0360
  469. #define REG_HI5Q_TXBD_DESA 0x0368
  470. #define REG_HI6Q_TXBD_DESA 0x0370
  471. #define REG_HI7Q_TXBD_DESA 0x0378
  472. #define REG_MGQ_TXBD_NUM 0x0380
  473. #define REG_RX_RXBD_NUM 0x0382
  474. #define REG_VOQ_TXBD_NUM 0x0384
  475. #define REG_VIQ_TXBD_NUM 0x0386
  476. #define REG_BEQ_TXBD_NUM 0x0388
  477. #define REG_BKQ_TXBD_NUM 0x038A
  478. #define REG_HI0Q_TXBD_NUM 0x038C
  479. #define REG_HI1Q_TXBD_NUM 0x038E
  480. #define REG_HI2Q_TXBD_NUM 0x0390
  481. #define REG_HI3Q_TXBD_NUM 0x0392
  482. #define REG_HI4Q_TXBD_NUM 0x0394
  483. #define REG_HI5Q_TXBD_NUM 0x0396
  484. #define REG_HI6Q_TXBD_NUM 0x0398
  485. #define REG_HI7Q_TXBD_NUM 0x039A
  486. #define REG_TSFTIMER_HCI 0x039C
  487. #define REG_BD_RWPTR_CLR 0x039C
  488. #define REG_VOQ_TXBD_IDX 0x03A0
  489. #define REG_VIQ_TXBD_IDX 0x03A4
  490. #define REG_BEQ_TXBD_IDX 0x03A8
  491. #define REG_BKQ_TXBD_IDX 0x03AC
  492. #define REG_MGQ_TXBD_IDX 0x03B0
  493. #define REG_RXQ_RXBD_IDX 0x03B4
  494. #define REG_HI0Q_TXBD_IDX 0x03B8
  495. #define REG_HI1Q_TXBD_IDX 0x03BC
  496. #define REG_HI2Q_TXBD_IDX 0x03C0
  497. #define REG_HI3Q_TXBD_IDX 0x03C4
  498. #define REG_HI4Q_TXBD_IDX 0x03C8
  499. #define REG_HI5Q_TXBD_IDX 0x03CC
  500. #define REG_HI6Q_TXBD_IDX 0x03D0
  501. #define REG_HI7Q_TXBD_IDX 0x03D4
  502. #endif
  503. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  504. #define REG_DBG_SEL_V1 0x03D8
  505. #endif
  506. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  507. #define REG_PCIE_HRPWM1_V1 0x03D9
  508. #endif
  509. #if (HALMAC_8197F_SUPPORT)
  510. #define REG_HCI_HRPWM1_V1 0x03D9
  511. #endif
  512. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  513. #define REG_PCIE_HCPWM1_V1 0x03DA
  514. #endif
  515. #if (HALMAC_8197F_SUPPORT)
  516. #define REG_HCI_HCPWM1_V1 0x03DA
  517. #endif
  518. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  519. #define REG_PCIE_CTRL2 0x03DB
  520. #endif
  521. #if (HALMAC_8197F_SUPPORT)
  522. #define REG_HCI_CTRL2 0x03DB
  523. #endif
  524. #if (HALMAC_8881A_SUPPORT)
  525. #define REG_LX_CTRL2 0x03DB
  526. #endif
  527. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  528. #define REG_PCIE_HRPWM2_V1 0x03DC
  529. #endif
  530. #if (HALMAC_8197F_SUPPORT)
  531. #define REG_HCI_HRPWM2_V1 0x03DC
  532. #endif
  533. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  534. #define REG_PCIE_HCPWM2_V1 0x03DE
  535. #endif
  536. #if (HALMAC_8197F_SUPPORT)
  537. #define REG_HCI_HCPWM2_V1 0x03DE
  538. #endif
  539. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  540. #define REG_PCIE_H2C_MSG_V1 0x03E0
  541. #endif
  542. #if (HALMAC_8197F_SUPPORT)
  543. #define REG_HCI_H2C_MSG_V1 0x03E0
  544. #endif
  545. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  546. #define REG_PCIE_C2H_MSG_V1 0x03E4
  547. #endif
  548. #if (HALMAC_8197F_SUPPORT)
  549. #define REG_HCI_C2H_MSG_V1 0x03E4
  550. #endif
  551. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  552. #define REG_DBI_WDATA_V1 0x03E8
  553. #endif
  554. #if (HALMAC_8881A_SUPPORT)
  555. #define REG_LX_DMA_ISR 0x03E8
  556. #endif
  557. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  558. #define REG_DBI_RDATA_V1 0x03EC
  559. #endif
  560. #if (HALMAC_8881A_SUPPORT)
  561. #define REG_LX_DMA_IMR 0x03EC
  562. #endif
  563. #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  564. #define REG_DBI_FLAG_V1 0x03F0
  565. #endif
  566. #if (HALMAC_8197F_SUPPORT)
  567. #define REG_STUCK_FLAG_V1 0x03F0
  568. #endif
  569. #if (HALMAC_8881A_SUPPORT)
  570. #define REG_LX_DMA_DBG 0x03F0
  571. #endif
  572. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  573. #define REG_MDIO_V1 0x03F4
  574. #endif
  575. #if (HALMAC_8192E_SUPPORT)
  576. #define REG_MDIO2_V1 0x03F8
  577. #endif
  578. #if (HALMAC_8197F_SUPPORT)
  579. #define REG_WDT_CFG 0x03F8
  580. #endif
  581. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  582. #define REG_PCIE_MIX_CFG 0x03F8
  583. #endif
  584. #if (HALMAC_8881A_SUPPORT)
  585. #define REG_BUS_MIX_CFG 0x03F8
  586. #endif
  587. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  588. #define REG_HCI_MIX_CFG 0x03FC
  589. #endif
  590. #if (HALMAC_8881A_SUPPORT)
  591. #define REG_BUS_MIX_CFG1 0x03FC
  592. #endif
  593. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  594. #define REG_Q0_INFO 0x0400
  595. #define REG_Q1_INFO 0x0404
  596. #define REG_Q2_INFO 0x0408
  597. #define REG_Q3_INFO 0x040C
  598. #define REG_MGQ_INFO 0x0410
  599. #define REG_HIQ_INFO 0x0414
  600. #define REG_BCNQ_INFO 0x0418
  601. #define REG_TXPKT_EMPTY 0x041A
  602. #define REG_CPU_MGQ_INFO 0x041C
  603. #define REG_FWHW_TXQ_CTRL 0x0420
  604. #endif
  605. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  606. #define REG_HWSEQ_CTRL 0x0423
  607. #endif
  608. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  609. #define REG_DATAFB_SEL 0x0423
  610. #endif
  611. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  612. #define REG_BCNQ_BDNY 0x0424
  613. #endif
  614. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  615. #define REG_BCNQ_BDNY_V1 0x0424
  616. #endif
  617. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  618. #define REG_MGQ_BDNY 0x0425
  619. #endif
  620. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  621. #define REG_LIFETIME_EN 0x0426
  622. #endif
  623. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  624. #define REG_FW_FREE_TAIL 0x0427
  625. #endif
  626. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  627. #define REG_SPEC_SIFS 0x0428
  628. #define REG_RETRY_LIMIT 0x042A
  629. #define REG_TXBF_CTRL 0x042C
  630. #define REG_DARFRC 0x0430
  631. #define REG_RARFRC 0x0438
  632. #define REG_RRSR 0x0440
  633. #define REG_ARFR0 0x0444
  634. #define REG_ARFR1_V1 0x044C
  635. #define REG_CCK_CHECK 0x0454
  636. #endif
  637. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  638. #define REG_AMPDU_BURST_CTRL 0x0455
  639. #endif
  640. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  641. #define REG_AMPDU_MAX_TIME_V1 0x0455
  642. #endif
  643. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  644. #define REG_AMPDU_MAX_TIME 0x0456
  645. #endif
  646. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  647. #define REG_BCNQ1_BDNY_V1 0x0456
  648. #endif
  649. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  650. #define REG_BCNQ1_BDNY 0x0457
  651. #endif
  652. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  653. #define REG_AMPDU_MAX_LENGTH 0x0458
  654. #define REG_ACQ_STOP 0x045C
  655. #endif
  656. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  657. #define REG_WMAC_LBK_BUF_HD 0x045D
  658. #endif
  659. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  660. #define REG_NDPA_RATE 0x045D
  661. #endif
  662. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  663. #define REG_TX_HANG_CTRL 0x045E
  664. #define REG_NDPA_OPT_CTRL 0x045F
  665. #endif
  666. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  667. #define REG_FAST_EDCA_CTRL 0x0460
  668. #endif
  669. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  670. #define REG_RD_RESP_PKT_TH 0x0463
  671. #define REG_CMDQ_INFO 0x0464
  672. #define REG_Q4_INFO 0x0468
  673. #define REG_Q5_INFO 0x046C
  674. #define REG_Q6_INFO 0x0470
  675. #define REG_Q7_INFO 0x0474
  676. #endif
  677. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  678. #define REG_WMAC_LBK_BUF_HD_V1 0x0478
  679. #define REG_MGQ_BDNY_V1 0x047A
  680. #endif
  681. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  682. #define REG_TXRPT_CTRL 0x047C
  683. #define REG_INIRTS_RATE_SEL 0x0480
  684. #define REG_BASIC_CFEND_RATE 0x0481
  685. #define REG_STBC_CFEND_RATE 0x0482
  686. #define REG_DATA_SC 0x0483
  687. #define REG_MACID_SLEEP3 0x0484
  688. #define REG_MACID_SLEEP1 0x0488
  689. #define REG_ARFR2_V1 0x048C
  690. #define REG_ARFR3_V1 0x0494
  691. #define REG_ARFR4 0x049C
  692. #define REG_ARFR5 0x04A4
  693. #define REG_TXRPT_START_OFFSET 0x04AC
  694. #endif
  695. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  696. #define REG_TRYING_CNT_TH 0x04B0
  697. #endif
  698. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  699. #define REG_POWER_STAGE1 0x04B4
  700. #endif
  701. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  702. #define REG_POWER_STAGE2 0x04B8
  703. #endif
  704. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  705. #define REG_SW_AMPDU_BURST_MODE_CTRL 0x04BC
  706. #define REG_PKT_LIFE_TIME 0x04C0
  707. #define REG_STBC_SETTING 0x04C4
  708. #define REG_STBC_SETTING2 0x04C5
  709. #define REG_QUEUE_CTRL 0x04C6
  710. #define REG_SINGLE_AMPDU_CTRL 0x04C7
  711. #define REG_PROT_MODE_CTRL 0x04C8
  712. #define REG_BAR_MODE_CTRL 0x04CC
  713. #define REG_RA_TRY_RATE_AGG_LMT 0x04CF
  714. #define REG_MACID_SLEEP2 0x04D0
  715. #define REG_MACID_SLEEP 0x04D4
  716. #endif
  717. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  718. #define REG_HW_SEQ0 0x04D8
  719. #define REG_HW_SEQ1 0x04DA
  720. #define REG_HW_SEQ2 0x04DC
  721. #define REG_HW_SEQ3 0x04DE
  722. #endif
  723. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  724. #define REG_CSI_SEQ 0x04DE
  725. #endif
  726. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  727. #define REG_NULL_PKT_STATUS 0x04E0
  728. #endif
  729. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  730. #define REG_NULL_PKT_STATUS_V1 0x04E0
  731. #endif
  732. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  733. #define REG_PTCL_ERR_STATUS 0x04E2
  734. #endif
  735. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  736. #define REG_PTCL_PKT_NUM 0x04E3
  737. #endif
  738. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  739. #define REG_NULL_PKT_STATUS_EXTEND 0x04E3
  740. #endif
  741. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  742. #define REG_TRXRPT_MISS_CNT 0x04E3
  743. #endif
  744. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  745. #define REG_VIDEO_ENHANCEMENT_FUN 0x04E4
  746. #endif
  747. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  748. #define REG_BT_POLLUTE_PKT_CNT 0x04E8
  749. #define REG_PTCL_DBG 0x04EC
  750. #endif
  751. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  752. #define REG_PTCL_TX_RPT 0x04F0
  753. #endif
  754. #if (HALMAC_8197F_SUPPORT)
  755. #define REG_TXOP_EXTRA_CTRL 0x04F0
  756. #endif
  757. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  758. #define REG_CPUMGQ_TIMER_CTRL2 0x04F4
  759. #endif
  760. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
  761. #define REG_DUMMY_PAGE4 0x04FC
  762. #endif
  763. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  764. #define REG_DUMMY_PAGE4_V1 0x04FC
  765. #define REG_MOREDATA 0x04FE
  766. #endif
  767. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  768. #define REG_EDCA_VO_PARAM 0x0500
  769. #define REG_EDCA_VI_PARAM 0x0504
  770. #define REG_EDCA_BE_PARAM 0x0508
  771. #define REG_EDCA_BK_PARAM 0x050C
  772. #define REG_BCNTCFG 0x0510
  773. #define REG_PIFS 0x0512
  774. #define REG_RDG_PIFS 0x0513
  775. #define REG_SIFS 0x0514
  776. #define REG_TSFTR_SYN_OFFSET 0x0518
  777. #define REG_AGGR_BREAK_TIME 0x051A
  778. #define REG_SLOT 0x051B
  779. #define REG_TX_PTCL_CTRL 0x0520
  780. #define REG_TXPAUSE 0x0522
  781. #define REG_DIS_TXREQ_CLR 0x0523
  782. #define REG_RD_CTRL 0x0524
  783. #define REG_MBSSID_CTRL 0x0526
  784. #define REG_P2PPS_CTRL 0x0527
  785. #define REG_PKT_LIFETIME_CTRL 0x0528
  786. #define REG_P2PPS_SPEC_STATE 0x052B
  787. #endif
  788. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  789. #define REG_BAR_TX_CTRL 0x0530
  790. #endif
  791. #if (HALMAC_8197F_SUPPORT || HALMAC_8822B_SUPPORT)
  792. #define REG_QUEUE_INCOL_THR 0x0538
  793. #define REG_QUEUE_INCOL_EN 0x053C
  794. #endif
  795. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  796. #define REG_TBTT_PROHIBIT 0x0540
  797. #define REG_P2PPS_STATE 0x0543
  798. #define REG_RD_NAV_NXT 0x0544
  799. #define REG_NAV_PROT_LEN 0x0546
  800. #endif
  801. #if (HALMAC_8197F_SUPPORT)
  802. #define REG_FTM_CTRL 0x0548
  803. #define REG_FTM_TSF_CNT 0x054C
  804. #endif
  805. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  806. #define REG_BCN_CTRL 0x0550
  807. #endif
  808. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  809. #define REG_BCN_CTRL1 0x0551
  810. #endif
  811. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  812. #define REG_BCN_CTRL_CLINT0 0x0551
  813. #endif
  814. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  815. #define REG_MBID_NUM 0x0552
  816. #define REG_DUAL_TSF_RST 0x0553
  817. #define REG_MBSSID_BCN_SPACE 0x0554
  818. #define REG_DRVERLYINT 0x0558
  819. #define REG_BCNDMATIM 0x0559
  820. #define REG_ATIMWND 0x055A
  821. #define REG_USTIME_TSF 0x055C
  822. #define REG_BCN_MAX_ERR 0x055D
  823. #define REG_RXTSF_OFFSET_CCK 0x055E
  824. #define REG_RXTSF_OFFSET_OFDM 0x055F
  825. #define REG_TSFTR 0x0560
  826. #endif
  827. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  828. #define REG_TSFTR_1 0x0564
  829. #endif
  830. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  831. #define REG_TSFTR1 0x0568
  832. #endif
  833. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  834. #define REG_FREERUN_CNT 0x0568
  835. #endif
  836. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  837. #define REG_FREERUN_CNT_1 0x056C
  838. #endif
  839. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
  840. #define REG_ATIMWND1 0x0570
  841. #endif
  842. #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  843. #define REG_ATIMWND1_V1 0x0570
  844. #endif
  845. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  846. #define REG_TBTT_PROHIBIT_INFRA 0x0571
  847. #endif
  848. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  849. #define REG_CTWND 0x0572
  850. #define REG_BCNIVLCUNT 0x0573
  851. #define REG_BCNDROPCTRL 0x0574
  852. #define REG_HGQ_TIMEOUT_PERIOD 0x0575
  853. #endif
  854. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  855. #define REG_TXCMD_TIMEOUT_PERIOD 0x0576
  856. #define REG_MISC_CTRL 0x0577
  857. #define REG_BCN_CTRL_CLINT1 0x0578
  858. #define REG_BCN_CTRL_CLINT2 0x0579
  859. #define REG_BCN_CTRL_CLINT3 0x057A
  860. #endif
  861. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  862. #define REG_EXTEND_CTRL 0x057B
  863. #endif
  864. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  865. #define REG_P2PPS1_SPEC_STATE 0x057C
  866. #define REG_P2PPS1_STATE 0x057D
  867. #define REG_P2PPS2_SPEC_STATE 0x057E
  868. #define REG_P2PPS2_STATE 0x057F
  869. #endif
  870. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  871. #define REG_PS_TIMER 0x0580
  872. #endif
  873. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  874. #define REG_PS_TIMER0 0x0580
  875. #endif
  876. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  877. #define REG_TIMER0 0x0584
  878. #endif
  879. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  880. #define REG_PS_TIMER1 0x0584
  881. #endif
  882. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  883. #define REG_TIMER1 0x0588
  884. #endif
  885. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  886. #define REG_PS_TIMER2 0x0588
  887. #endif
  888. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  889. #define REG_TBTT_CTN_AREA 0x058C
  890. #define REG_FORCE_BCN_IFS 0x058E
  891. #define REG_TXOP_MIN 0x0590
  892. #define REG_PRE_BKF_TIME 0x0592
  893. #define REG_CROSS_TXOP_CTRL 0x0593
  894. #endif
  895. #if (HALMAC_8197F_SUPPORT)
  896. #define REG_TBTT_INT_SHIFT_CLI0 0x0594
  897. #define REG_TBTT_INT_SHIFT_CLI1 0x0595
  898. #define REG_TBTT_INT_SHIFT_CLI2 0x0596
  899. #define REG_TBTT_INT_SHIFT_CLI3 0x0597
  900. #define REG_TBTT_INT_SHIFT_ENABLE 0x0598
  901. #endif
  902. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  903. #define REG_ATIMWND2 0x05A0
  904. #define REG_ATIMWND3 0x05A1
  905. #define REG_ATIMWND4 0x05A2
  906. #define REG_ATIMWND5 0x05A3
  907. #define REG_ATIMWND6 0x05A4
  908. #define REG_ATIMWND7 0x05A5
  909. #define REG_ATIMUGT 0x05A6
  910. #define REG_HIQ_NO_LMT_EN 0x05A7
  911. #define REG_DTIM_COUNTER_ROOT 0x05A8
  912. #define REG_DTIM_COUNTER_VAP1 0x05A9
  913. #define REG_DTIM_COUNTER_VAP2 0x05AA
  914. #define REG_DTIM_COUNTER_VAP3 0x05AB
  915. #define REG_DTIM_COUNTER_VAP4 0x05AC
  916. #define REG_DTIM_COUNTER_VAP5 0x05AD
  917. #define REG_DTIM_COUNTER_VAP6 0x05AE
  918. #define REG_DTIM_COUNTER_VAP7 0x05AF
  919. #define REG_DIS_ATIM 0x05B0
  920. #endif
  921. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  922. #define REG_EARLY_128US 0x05B1
  923. #define REG_P2PPS1_CTRL 0x05B2
  924. #define REG_P2PPS2_CTRL 0x05B3
  925. #define REG_TIMER0_SRC_SEL 0x05B4
  926. #define REG_NOA_UNIT_SEL 0x05B5
  927. #define REG_P2POFF_DIS_TXTIME 0x05B7
  928. #define REG_MBSSID_BCN_SPACE2 0x05B8
  929. #define REG_MBSSID_BCN_SPACE3 0x05BC
  930. #endif
  931. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  932. #define REG_ACMHWCTRL 0x05C0
  933. #define REG_ACMRSTCTRL 0x05C1
  934. #define REG_ACMAVG 0x05C2
  935. #define REG_VO_ADMTIME 0x05C4
  936. #define REG_VI_ADMTIME 0x05C6
  937. #define REG_BE_ADMTIME 0x05C8
  938. #define REG_EDCA_RANDOM_GEN 0x05CC
  939. #define REG_TXCMD_NOA_SEL 0x05CF
  940. #define REG_NOA_PARAM 0x05E0
  941. #endif
  942. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  943. #define REG_NOA_PARAM_1 0x05E4
  944. #define REG_NOA_PARAM_2 0x05E8
  945. #define REG_NOA_PARAM_3 0x05EC
  946. #endif
  947. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  948. #define REG_NOA_SUBIE 0x05ED
  949. #endif
  950. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  951. #define REG_P2P_RST 0x05F0
  952. #define REG_SCHEDULER_RST 0x05F1
  953. #endif
  954. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  955. #define REG_SCH_TXCMD 0x05F8
  956. #define REG_PAGE5_DUMMY 0x05FC
  957. #define REG_WMAC_CR 0x0600
  958. #endif
  959. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  960. #define REG_WMAC_FWPKT_CR 0x0601
  961. #endif
  962. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  963. #define REG_FW_STS_FILTER 0x0602
  964. #endif
  965. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  966. #define REG_BWOPMODE 0x0603
  967. #endif
  968. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  969. #define REG_TCR 0x0604
  970. #define REG_RCR 0x0608
  971. #define REG_RX_PKT_LIMIT 0x060C
  972. #define REG_RX_DLK_TIME 0x060D
  973. #define REG_RX_DRVINFO_SZ 0x060F
  974. #define REG_MACID 0x0610
  975. #define REG_BSSID 0x0618
  976. #define REG_MAR 0x0620
  977. #define REG_MBIDCAMCFG_1 0x0628
  978. #define REG_MBIDCAMCFG_2 0x062C
  979. #endif
  980. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  981. #define REG_MCU_TEST_1 0x0630
  982. #endif
  983. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  984. #define REG_WMAC_TCR_TSFT_OFS 0x0630
  985. #define REG_UDF_THSD 0x0632
  986. #define REG_ZLD_NUM 0x0633
  987. #endif
  988. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  989. #define REG_MCU_TEST_2 0x0634
  990. #endif
  991. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  992. #define REG_STMP_THSD 0x0634
  993. #define REG_WMAC_TXTIMEOUT 0x0635
  994. #define REG_MCU_TEST_2_V1 0x0636
  995. #endif
  996. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  997. #define REG_USTIME_EDCA 0x0638
  998. #endif
  999. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1000. #define REG_ACKTO_CCK 0x0639
  1001. #endif
  1002. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1003. #define REG_MAC_SPEC_SIFS 0x063A
  1004. #define REG_RESP_SIFS_CCK 0x063C
  1005. #define REG_RESP_SIFS_OFDM 0x063E
  1006. #define REG_ACKTO 0x0640
  1007. #define REG_CTS2TO 0x0641
  1008. #define REG_EIFS 0x0642
  1009. #endif
  1010. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1011. #define REG_RPFM_MAP0 0x0644
  1012. #define REG_RPFM_MAP1 0x0646
  1013. #define REG_RPFM_CAM_CMD 0x0648
  1014. #define REG_RPFM_CAM_RWD 0x064C
  1015. #endif
  1016. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1017. #define REG_NAV_CTRL 0x0650
  1018. #define REG_BACAMCMD 0x0654
  1019. #define REG_BACAMCONTENT 0x0658
  1020. #define REG_LBDLY 0x0660
  1021. #endif
  1022. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1023. #define REG_WMAC_BACAM_RPMEN 0x0661
  1024. #endif
  1025. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1026. #define REG_TX_RX 0x0662
  1027. #endif
  1028. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1029. #define REG_WMAC_BITMAP_CTL 0x0663
  1030. #endif
  1031. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1032. #define REG_RXERR_RPT 0x0664
  1033. #define REG_WMAC_TRXPTCL_CTL 0x0668
  1034. #define REG_CAMCMD 0x0670
  1035. #define REG_CAMWRITE 0x0674
  1036. #define REG_CAMREAD 0x0678
  1037. #define REG_CAMDBG 0x067C
  1038. #define REG_SECCFG 0x0680
  1039. #endif
  1040. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1041. #define REG_RXFILTER_CATEGORY_1 0x0682
  1042. #define REG_RXFILTER_ACTION_1 0x0683
  1043. #define REG_RXFILTER_CATEGORY_2 0x0684
  1044. #define REG_RXFILTER_ACTION_2 0x0685
  1045. #define REG_RXFILTER_CATEGORY_3 0x0686
  1046. #define REG_RXFILTER_ACTION_3 0x0687
  1047. #define REG_RXFLTMAP3 0x0688
  1048. #define REG_RXFLTMAP4 0x068A
  1049. #define REG_RXFLTMAP5 0x068C
  1050. #define REG_RXFLTMAP6 0x068E
  1051. #endif
  1052. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1053. #define REG_WOW_CTRL 0x0690
  1054. #endif
  1055. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1056. #define REG_NAN_RX_TSF_FILTER 0x0691
  1057. #endif
  1058. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1059. #define REG_PS_RX_INFO 0x0692
  1060. #define REG_WMMPS_UAPSD_TID 0x0693
  1061. #define REG_LPNAV_CTRL 0x0694
  1062. #endif
  1063. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1064. #define REG_WKFMCAM_NUM 0x0698
  1065. #endif
  1066. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1067. #define REG_WKFMCAM_CMD 0x0698
  1068. #define REG_WKFMCAM_RWD 0x069C
  1069. #endif
  1070. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1071. #define REG_RXFLTMAP0 0x06A0
  1072. #define REG_RXFLTMAP1 0x06A2
  1073. #define REG_RXFLTMAP 0x06A4
  1074. #define REG_BCN_PSR_RPT 0x06A8
  1075. #endif
  1076. #if (HALMAC_8192E_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1077. #define REG_FLC_RPC 0x06AC
  1078. #define REG_FLC_RPCT 0x06AD
  1079. #define REG_FLC_PTS 0x06AE
  1080. #define REG_FLC_TRPC 0x06AF
  1081. #endif
  1082. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1083. #define REG_RXPKTMON_CTRL 0x06B0
  1084. #endif
  1085. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1086. #define REG_STATE_MON 0x06B4
  1087. #endif
  1088. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1089. #define REG_ERROR_MON 0x06B8
  1090. #define REG_SEARCH_MACID 0x06BC
  1091. #endif
  1092. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1093. #define REG_BT_COEX_TABLE 0x06C0
  1094. #endif
  1095. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1096. #define REG_RXCMD_0 0x06D0
  1097. #define REG_RXCMD_1 0x06D4
  1098. #endif
  1099. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1100. #define REG_WMAC_RESP_TXINFO 0x06D8
  1101. #endif
  1102. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1103. #define REG_BBPSF_CTRL 0x06DC
  1104. #endif
  1105. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1106. #define REG_P2P_RX_BCN_NOA 0x06E0
  1107. #define REG_ASSOCIATED_BFMER0_INFO 0x06E4
  1108. #define REG_ASSOCIATED_BFMER1_INFO 0x06EC
  1109. #define REG_TX_CSI_RPT_PARAM_BW20 0x06F4
  1110. #define REG_TX_CSI_RPT_PARAM_BW40 0x06F8
  1111. #define REG_TX_CSI_RPT_PARAM_BW80 0x06FC
  1112. #define REG_MACID1 0x0700
  1113. #endif
  1114. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1115. #define REG_MACID1_1 0x0704
  1116. #endif
  1117. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1118. #define REG_BSSID1 0x0708
  1119. #endif
  1120. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1121. #define REG_BSSID1_1 0x070C
  1122. #endif
  1123. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1124. #define REG_BCN_PSR_RPT1 0x0710
  1125. #define REG_ASSOCIATED_BFMEE_SEL 0x0714
  1126. #define REG_SND_PTCL_CTRL 0x0718
  1127. #define REG_RX_CSI_RPT_INFO 0x071C
  1128. #define REG_NS_ARP_CTRL 0x0720
  1129. #define REG_NS_ARP_INFO 0x0724
  1130. #endif
  1131. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1132. #define REG_NS_ARP_IPADDR 0x0728
  1133. #endif
  1134. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1135. #define REG_BEAMFORMING_INFO_NSARP_V1 0x0728
  1136. #endif
  1137. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1138. #define REG_WRITE_RX_CSI_RPT_INFO 0x072C
  1139. #endif
  1140. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1141. #define REG_BEAMFORMING_INFO_NSARP 0x072C
  1142. #endif
  1143. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1144. #define REG_NS_ARP_IPV6_MYADDR 0x0730
  1145. #endif
  1146. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1147. #define REG_IPV6 0x0730
  1148. #define REG_IPV6_1 0x0734
  1149. #define REG_IPV6_2 0x0738
  1150. #define REG_IPV6_3 0x073C
  1151. #endif
  1152. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1153. #define REG_WMAC_RTX_CTX_SUBTYPE_CFG 0x0750
  1154. #endif
  1155. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1156. #define REG_WMAC_SWAES_CFG 0x0760
  1157. #endif
  1158. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1159. #define REG_BT_COEX_V2 0x0762
  1160. #endif
  1161. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1162. #define REG_BT_COEX 0x0764
  1163. #endif
  1164. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1165. #define REG_WLAN_ACT_MSK_CTRL 0x0768
  1166. #endif
  1167. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1168. #define REG_WLAN_ACT_MASK_CTRL 0x0768
  1169. #endif
  1170. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1171. #define REG_WLAN_ACT_MASK_CTRL_1 0x076C
  1172. #endif
  1173. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1174. #define REG_BT_STATISTICS_CTRL 0x076E
  1175. #define REG_BT_COEX_ENH_INTF_CTRL 0x076E
  1176. #endif
  1177. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1178. #define REG_BT_COEX_ENHANCED_INTR_CTRL 0x076E
  1179. #endif
  1180. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1181. #define REG_BT_ACT_STATISTICS 0x0770
  1182. #endif
  1183. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1184. #define REG_BT_ACT_STATISTICS_1 0x0774
  1185. #endif
  1186. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1187. #define REG_BT_STATISTICS_OTH_CTRL 0x0778
  1188. #endif
  1189. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1190. #define REG_BT_STATISTICS_CONTROL_REGISTER 0x0778
  1191. #endif
  1192. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1193. #define REG_BT_CMD_ID 0x077C
  1194. #endif
  1195. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1196. #define REG_BT_STATUS_REPORT_REGISTER 0x077C
  1197. #endif
  1198. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1199. #define REG_BT__STATUS_RPT 0x077D
  1200. #define REG_BT_DATA 0x0780
  1201. #endif
  1202. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1203. #define REG_BT_INTERRUPT_CONTROL_REGISTER 0x0780
  1204. #endif
  1205. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1206. #define REG_WLAN_RPT_ 0x0781
  1207. #define REG_BT_ISR_CTRL 0x0783
  1208. #define REG_WLAN_RPT_TO_CTR 0x0784
  1209. #endif
  1210. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1211. #define REG_WLAN_REPORT_TIME_OUT_CONTROL_REGISTER 0x0784
  1212. #endif
  1213. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1214. #define REG_BT_ISOLATION_TABLE 0x0785
  1215. #endif
  1216. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1217. #define REG_BT_ISOLATION_TABLE_REGISTER_REGISTER 0x0785
  1218. #endif
  1219. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1220. #define REG_BT_ISOLATION_TABLE_REGISTER_REGISTER_1 0x0788
  1221. #define REG_BT_ISOLATION_TABLE_REGISTER_REGISTER_2 0x078C
  1222. #endif
  1223. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1224. #define REG_BT_ISR_STA 0x078F
  1225. #endif
  1226. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1227. #define REG_BT_INTERRUPT_STATUS_REGISTER 0x078F
  1228. #endif
  1229. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1230. #define REG_TDMA_TIME_AND_RPT_SAM_SET 0x0790
  1231. #endif
  1232. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1233. #define REG_BT_TDMA_TIME_REGISTER 0x0790
  1234. #endif
  1235. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1236. #define REG_BT_CH_INFO 0x0794
  1237. #endif
  1238. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1239. #define REG_BT_ACT_REGISTER 0x0794
  1240. #endif
  1241. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1242. #define REG_BT_STATIC_INFO_EXT 0x0795
  1243. #define REG_LTR_IDLE_LATENCY 0x0798
  1244. #endif
  1245. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1246. #define REG_OBFF_CTRL_BASIC 0x0798
  1247. #endif
  1248. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1249. #define REG_LTR_ACTIVE_LATENCY 0x079C
  1250. #endif
  1251. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1252. #define REG_OBFF_CTRL2_TIMER 0x079C
  1253. #endif
  1254. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1255. #define REG_OBFF_CTRL 0x07A0
  1256. #endif
  1257. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1258. #define REG_LTR_CTRL_BASIC 0x07A0
  1259. #endif
  1260. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1261. #define REG_LTR_CTRL 0x07A4
  1262. #endif
  1263. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1264. #define REG_LTR_CTRL2_TIMER_THRESHOLD 0x07A4
  1265. #endif
  1266. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1267. #define REG_LTR_CTRL2 0x07A8
  1268. #endif
  1269. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1270. #define REG_LTR_IDLE_LATENCY_V1 0x07A8
  1271. #define REG_LTR_ACTIVE_LATENCY_V1 0x07AC
  1272. #endif
  1273. #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
  1274. #define REG_ANTTRN_CTRL 0x07B0
  1275. #endif
  1276. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1277. #define REG_ANTENNA_TRAINING_CONTROL_REGISTER 0x07B0
  1278. #endif
  1279. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1280. #define REG_ANTENNA_TRAINING_CONTROL_REGISTER_1 0x07B4
  1281. #endif
  1282. #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
  1283. #define REG_WMAC_PKTCNT_RWD 0x07B8
  1284. #define REG_WMAC_PKTCNT_CTRL 0x07BC
  1285. #endif
  1286. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1287. #define REG_IQ_DUMP 0x07C0
  1288. #endif
  1289. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1290. #define REG_IQ_DUMP_1 0x07C4
  1291. #define REG_IQ_DUMP_2 0x07C8
  1292. #endif
  1293. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1294. #define REG_WMAC_FTM_CTL 0x07CC
  1295. #endif
  1296. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1297. #define REG_WMAC_IQ_MDPK_FUNC 0x07CE
  1298. #endif
  1299. #if (HALMAC_8197F_SUPPORT)
  1300. #define REG_IQ_DUMP_EXT 0x07CF
  1301. #endif
  1302. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
  1303. #define REG_OFDM_CCK_LEN_MASK 0x07D0
  1304. #endif
  1305. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1306. #define REG_WMAC_OPTION_FUNCTION 0x07D0
  1307. #endif
  1308. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1309. #define REG_WMAC_OPTION_FUNCTION_1 0x07D4
  1310. #define REG_WMAC_OPTION_FUNCTION_2 0x07D8
  1311. #endif
  1312. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1313. #define REG_RX_FILTER_FUNCTION 0x07DA
  1314. #endif
  1315. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1316. #define REG_NDP_SIG 0x07E0
  1317. #define REG_TXCMD_INFO_FOR_RSP_PKT 0x07E4
  1318. #endif
  1319. #if (HALMAC_8814AMP_SUPPORT)
  1320. #define REG_SEC_OPT 0x07E8
  1321. #endif
  1322. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1323. #define REG_TXCMD_INFO_FOR_RSP_PKT_1 0x07E8
  1324. #endif
  1325. #if (HALMAC_8197F_SUPPORT)
  1326. #define REG_SEC_OPT_V2 0x07EC
  1327. #endif
  1328. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1329. #define REG_WSEC_OPTION 0x07EC
  1330. #endif
  1331. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1332. #define REG_RTS_ADDRESS_0 0x07F0
  1333. #endif
  1334. #if (HALMAC_8814AMP_SUPPORT)
  1335. #define REG_RTS_ADDR0 0x07F0
  1336. #endif
  1337. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1338. #define REG_RTS_ADDRESS_0_1 0x07F4
  1339. #endif
  1340. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1341. #define REG_RTS_ADDRESS_1 0x07F8
  1342. #endif
  1343. #if (HALMAC_8814AMP_SUPPORT)
  1344. #define REG_RTS_ADDR1 0x07F8
  1345. #endif
  1346. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1347. #define REG_RTS_ADDRESS_1_1 0x07FC
  1348. #endif
  1349. #if (HALMAC_8822B_SUPPORT)
  1350. #define REG__RPFM_MAP1 0x07FE
  1351. #endif
  1352. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1353. #define REG_SYS_CFG3 0x1000
  1354. #define REG_SYS_CFG4 0x1034
  1355. #endif
  1356. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1357. #define REG_SYS_CFG5 0x1070
  1358. #endif
  1359. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1360. #define REG_CPU_DMEM_CON 0x1080
  1361. #endif
  1362. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1363. #define REG_BOOT_REASON 0x1088
  1364. #define REG_NFCPAD_CTRL 0x10A8
  1365. #endif
  1366. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1367. #define REG_HIMR2 0x10B0
  1368. #define REG_HISR2 0x10B4
  1369. #define REG_HIMR3 0x10B8
  1370. #define REG_HISR3 0x10BC
  1371. #define REG_SW_MDIO 0x10C0
  1372. #define REG_SW_FLUSH 0x10C4
  1373. #endif
  1374. #if (HALMAC_8197F_SUPPORT)
  1375. #define REG_DBG_GPIO_BMUX 0x10C8
  1376. #define REG_FPGA_TAG 0x10CC
  1377. #define REG_WL_DSS_CTRL0 0x10D0
  1378. #endif
  1379. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1380. #define REG_H2C_PKT_READADDR 0x10D0
  1381. #define REG_H2C_PKT_WRITEADDR 0x10D4
  1382. #endif
  1383. #if (HALMAC_8197F_SUPPORT)
  1384. #define REG_WL_DSS_CTRL1 0x10D8
  1385. #endif
  1386. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1387. #define REG_MEM_PWR_CRTL 0x10D8
  1388. #endif
  1389. #if (HALMAC_8197F_SUPPORT)
  1390. #define REG_WL_DSS_STATUS1 0x10DC
  1391. #endif
  1392. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1393. #define REG_FW_DBG0 0x10E0
  1394. #define REG_FW_DBG1 0x10E4
  1395. #define REG_FW_DBG2 0x10E8
  1396. #define REG_FW_DBG3 0x10EC
  1397. #define REG_FW_DBG4 0x10F0
  1398. #define REG_FW_DBG5 0x10F4
  1399. #define REG_FW_DBG6 0x10F8
  1400. #define REG_FW_DBG7 0x10FC
  1401. #define REG_CR_EXT 0x1100
  1402. #define REG_FWFF 0x1114
  1403. #endif
  1404. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1405. #define REG_RXFF_PTR_V1 0x1118
  1406. #define REG_RXFF_WTR_V1 0x111C
  1407. #endif
  1408. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1409. #define REG_FE2IMR 0x1120
  1410. #define REG_FE2ISR 0x1124
  1411. #define REG_FE3IMR 0x1128
  1412. #define REG_FE3ISR 0x112C
  1413. #define REG_FE4IMR 0x1130
  1414. #define REG_FE4ISR 0x1134
  1415. #define REG_FT1IMR 0x1138
  1416. #define REG_FT1ISR 0x113C
  1417. #define REG_SPWR0 0x1140
  1418. #define REG_SPWR1 0x1144
  1419. #define REG_SPWR2 0x1148
  1420. #define REG_SPWR3 0x114C
  1421. #define REG_POWSEQ 0x1150
  1422. #endif
  1423. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1424. #define REG_TC7_CTRL_V1 0x1158
  1425. #define REG_TC8_CTRL_V1 0x115C
  1426. #endif
  1427. #if (HALMAC_8197F_SUPPORT)
  1428. #define REG_RXBCN_TBTT_INTERVAL_PORT0TO3 0x1160
  1429. #define REG_RXBCN_TBTT_INTERVAL_PORT4 0x1164
  1430. #endif
  1431. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
  1432. #define REG_EXT_QUEUE_REG 0x11C0
  1433. #define REG_COUNTER_CONTROL 0x11C4
  1434. #define REG_COUNTER_TH 0x11C8
  1435. #define REG_COUNTER_SET 0x11CC
  1436. #define REG_COUNTER_OVERFLOW 0x11D0
  1437. #define REG_TDE_LEN_TH 0x11D4
  1438. #define REG_RDE_LEN_TH 0x11D8
  1439. #define REG_PCIE_EXEC_TIME 0x11DC
  1440. #endif
  1441. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1442. #define REG_FT2IMR 0x11E0
  1443. #define REG_FT2ISR 0x11E4
  1444. #endif
  1445. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1446. #define REG_MSG2 0x11F0
  1447. #define REG_MSG3 0x11F4
  1448. #define REG_MSG4 0x11F8
  1449. #define REG_MSG5 0x11FC
  1450. #define REG_DDMA_CH0SA 0x1200
  1451. #define REG_DDMA_CH0DA 0x1204
  1452. #define REG_DDMA_CH0CTRL 0x1208
  1453. #define REG_DDMA_CH1SA 0x1210
  1454. #define REG_DDMA_CH1DA 0x1214
  1455. #define REG_DDMA_CH1CTRL 0x1218
  1456. #define REG_DDMA_CH2SA 0x1220
  1457. #define REG_DDMA_CH2DA 0x1224
  1458. #define REG_DDMA_CH2CTRL 0x1228
  1459. #define REG_DDMA_CH3SA 0x1230
  1460. #define REG_DDMA_CH3DA 0x1234
  1461. #define REG_DDMA_CH3CTRL 0x1238
  1462. #define REG_DDMA_CH4SA 0x1240
  1463. #define REG_DDMA_CH4DA 0x1244
  1464. #define REG_DDMA_CH4CTRL 0x1248
  1465. #define REG_DDMA_CH5SA 0x1250
  1466. #define REG_DDMA_CH5DA 0x1254
  1467. #endif
  1468. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8822B_SUPPORT)
  1469. #define REG_REG_DDMA_CH5CTRL 0x1258
  1470. #endif
  1471. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1472. #define REG_DDMA_CH5CTRL 0x1258
  1473. #endif
  1474. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1475. #define REG_DDMA_INT_MSK 0x12E0
  1476. #define REG_DDMA_CHSTATUS 0x12E8
  1477. #define REG_DDMA_CHKSUM 0x12F0
  1478. #define REG_DDMA_MONITOR 0x12FC
  1479. #endif
  1480. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1481. #define REG_STC_INT_CS 0x1300
  1482. #define REG_ST_INT_CFG 0x1304
  1483. #define REG_CMU_DLY_CTRL 0x1310
  1484. #define REG_CMU_DLY_CFG 0x1314
  1485. #define REG_H2CQ_TXBD_DESA 0x1320
  1486. #define REG_H2CQ_TXBD_NUM 0x1328
  1487. #define REG_H2CQ_TXBD_IDX 0x132C
  1488. #define REG_H2CQ_CSR 0x1330
  1489. #endif
  1490. #if (HALMAC_8197F_SUPPORT)
  1491. #define REG_AXI_EXCEPT_CS 0x1350
  1492. #endif
  1493. #if (HALMAC_8822B_SUPPORT)
  1494. #define REG_CHANGE_PCIE_SPEED 0x1350
  1495. #endif
  1496. #if (HALMAC_8197F_SUPPORT)
  1497. #define REG_AXI_EXCEPT_TIME 0x1354
  1498. #endif
  1499. #if (HALMAC_8822B_SUPPORT)
  1500. #define REG_OLD_DEHANG 0x13F4
  1501. #endif
  1502. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1503. #define REG_Q0_Q1_INFO 0x1400
  1504. #define REG_Q2_Q3_INFO 0x1404
  1505. #define REG_Q4_Q5_INFO 0x1408
  1506. #define REG_Q6_Q7_INFO 0x140C
  1507. #define REG_MGQ_HIQ_INFO 0x1410
  1508. #define REG_CMDQ_BCNQ_INFO 0x1414
  1509. #define REG_USEREG_SETTING 0x1420
  1510. #define REG_AESIV_SETTING 0x1424
  1511. #define REG_BF0_TIME_SETTING 0x1428
  1512. #define REG_BF1_TIME_SETTING 0x142C
  1513. #define REG_BF_TIMEOUT_EN 0x1430
  1514. #define REG_MACID_RELEASE0 0x1434
  1515. #define REG_MACID_RELEASE1 0x1438
  1516. #define REG_MACID_RELEASE2 0x143C
  1517. #define REG_MACID_RELEASE3 0x1440
  1518. #define REG_MACID_RELEASE_SETTING 0x1444
  1519. #define REG_FAST_EDCA_VOVI_SETTING 0x1448
  1520. #define REG_FAST_EDCA_BEBK_SETTING 0x144C
  1521. #define REG_MACID_DROP0 0x1450
  1522. #define REG_MACID_DROP1 0x1454
  1523. #define REG_MACID_DROP2 0x1458
  1524. #define REG_MACID_DROP3 0x145C
  1525. #endif
  1526. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1527. #define REG_R_MACID_RELEASE_SUCCESS_0 0x1460
  1528. #define REG_R_MACID_RELEASE_SUCCESS_1 0x1464
  1529. #define REG_R_MACID_RELEASE_SUCCESS_2 0x1468
  1530. #define REG_R_MACID_RELEASE_SUCCESS_3 0x146C
  1531. #define REG_MGG_FIFO_CRTL 0x1470
  1532. #define REG_MGG_FIFO_INT 0x1474
  1533. #define REG_MGG_FIFO_LIFETIME 0x1478
  1534. #define REG_R_MACID_RELEASE_SUCCESS_CLEAR_OFFSET 0x147C
  1535. #endif
  1536. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
  1537. #define REG_SHCUT_SETTING 0x1480
  1538. #endif
  1539. #if (HALMAC_8822B_SUPPORT)
  1540. #define REG_MACID_SHCUT_OFFSET 0x1480
  1541. #endif
  1542. #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
  1543. #define REG_SHCUT_LLC_ETH_TYPE0 0x1484
  1544. #define REG_SHCUT_LLC_ETH_TYPE1 0x1488
  1545. #define REG_SHCUT_LLC_OUI0 0x148C
  1546. #define REG_SHCUT_LLC_OUI1 0x1490
  1547. #define REG_SHCUT_LLC_OUI2 0x1494
  1548. #define REG_SHCUT_LLC_OUI3 0x1498
  1549. #endif
  1550. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1551. #define REG_MU_TX_CTL 0x14C0
  1552. #define REG_MU_STA_GID_VLD 0x14C4
  1553. #define REG_MU_STA_USER_POS_INFO 0x14C8
  1554. #define REG_MU_TRX_DBG_CNT 0x14D0
  1555. #endif
  1556. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1557. #define REG_CPUMGQ_TX_TIMER 0x1500
  1558. #define REG_PS_TIMER_A 0x1504
  1559. #define REG_PS_TIMER_B 0x1508
  1560. #define REG_PS_TIMER_C 0x150C
  1561. #define REG_PS_TIMER_ABC_CPUMGQ_TIMER_CRTL 0x1510
  1562. #define REG_CPUMGQ_TX_TIMER_EARLY 0x1514
  1563. #define REG_PS_TIMER_A_EARLY 0x1515
  1564. #define REG_PS_TIMER_B_EARLY 0x1516
  1565. #define REG_PS_TIMER_C_EARLY 0x1517
  1566. #endif
  1567. #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1568. #define REG_BCN_PSR_RPT2 0x1600
  1569. #define REG_BCN_PSR_RPT3 0x1604
  1570. #define REG_BCN_PSR_RPT4 0x1608
  1571. #define REG_A1_ADDR_MASK 0x160C
  1572. #define REG_MACID2 0x1620
  1573. #define REG_BSSID2 0x1628
  1574. #define REG_MACID3 0x1630
  1575. #define REG_BSSID3 0x1638
  1576. #define REG_MACID4 0x1640
  1577. #define REG_BSSID4 0x1648
  1578. #endif
  1579. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1580. #define REG_NOA_REPORT 0x1650
  1581. #define REG_PWRBIT_SETTING 0x1660
  1582. #define REG_WMAC_MU_BF_OPTION 0x167C
  1583. #endif
  1584. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1585. #define REG_WMAC_PAUSE_BB_CLR_TH 0x167D
  1586. #endif
  1587. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1588. #define REG_WMAC_MU_ARB 0x167E
  1589. #define REG_WMAC_MU_OPTION 0x167F
  1590. #define REG_WMAC_MU_BF_CTL 0x1680
  1591. #endif
  1592. #if (HALMAC_8197F_SUPPORT || HALMAC_8822B_SUPPORT)
  1593. #define REG_WMAC_MU_BFRPT_PARA 0x1682
  1594. #endif
  1595. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1596. #define REG_WMAC_MU_BIT_BFRPT_PARA 0x1682
  1597. #endif
  1598. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1599. #define REG_WMAC_ASSOCIATED_MU_BFMEE2 0x1684
  1600. #define REG_WMAC_ASSOCIATED_MU_BFMEE3 0x1686
  1601. #define REG_WMAC_ASSOCIATED_MU_BFMEE4 0x1688
  1602. #define REG_WMAC_ASSOCIATED_MU_BFMEE5 0x168A
  1603. #define REG_WMAC_ASSOCIATED_MU_BFMEE6 0x168C
  1604. #define REG_WMAC_ASSOCIATED_MU_BFMEE7 0x168E
  1605. #endif
  1606. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT)
  1607. #define REG_WMAC_BB_STOP_RX_COUNTER 0x1690
  1608. #define REG_WMAC_PLCP_MONITOR 0x1694
  1609. #define REG_WMAC_PLCP_MONITOR_MUTX 0x1698
  1610. #endif
  1611. #if (HALMAC_8197F_SUPPORT || HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1612. #define REG_TRANSMIT_ADDRSS_0 0x16A0
  1613. #define REG_TRANSMIT_ADDRSS_1 0x16A8
  1614. #define REG_TRANSMIT_ADDRSS_2 0x16B0
  1615. #define REG_TRANSMIT_ADDRSS_3 0x16B8
  1616. #define REG_TRANSMIT_ADDRSS_4 0x16C0
  1617. #endif
  1618. #if (HALMAC_8814B_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
  1619. #define REG_WL2LTECOEX_INDIRECT_ACCESS_CTRL_V1 0x1700
  1620. #define REG_WL2LTECOEX_INDIRECT_ACCESS_WRITE_DATA_V1 0x1704
  1621. #define REG_WL2LTECOEX_INDIRECT_ACCESS_READ_DATA_V1 0x1708
  1622. #endif
  1623. /* ----------------------------------------------------- */
  1624. /* */
  1625. /* 0xFB00h ~ 0xFCFFh TX/RX packet buffer affress */
  1626. /* */
  1627. /* ----------------------------------------------------- */
  1628. #define REG_RXPKTBUF_STARTADDR 0xFB00
  1629. #define REG_TXPKTBUF_STARTADDR 0xFC00
  1630. /* ----------------------------------------------------- */
  1631. /* */
  1632. /* 0xFD00h ~ 0xFDFFh 8051 CPU Local REG */
  1633. /* */
  1634. /* ----------------------------------------------------- */
  1635. #define REG_SYS_CTRL 0xFD00
  1636. #define REG_PONSTS_RPT1 0xFD01
  1637. #define REG_PONSTS_RPT2 0xFD02
  1638. #define REG_PONSTS_RPT3 0xFD03
  1639. #define REG_PONSTS_RPT4 0xFD04 /* 0x84 */
  1640. #define REG_PONSTS_RPT5 0xFD05 /* 0x85 */
  1641. #define REG_8051ERRFLAG 0xFD08
  1642. #define REG_8051ERRFLAG_MASK 0xFD09
  1643. #define REG_TXADDRH 0xFD10 /* Tx Packet High Address */
  1644. #define REG_RXADDRH 0xFD11 /* Rx Packet High Address */
  1645. #define REG_TXADDRH_EXT 0xFD12 /* 0xFD12[0] : for 8051 access txpktbuf high64k as external register */
  1646. #define REG_U3_STATE 0xFD48 /* (Read only) [7:4] : usb3 changed last state. [3:0] usb3 state */
  1647. /* for MAILBOX */
  1648. #define REG_OUTDATA0 0xFD50
  1649. #define REG_OUTDATA1 0xFD54
  1650. #define REG_OUTRDY 0xFD58 /* bit[0] : OutReady, bit[1] : OutEmptyIntEn */
  1651. #define REG_INDATA0 0xFD60
  1652. #define REG_INDATA1 0xFD64
  1653. #define REG_INRDY 0xFD68 /* bit[0] : InReady, bit[1] : InRdyIntEn */
  1654. /* MCU ERROR debug REG */
  1655. #define REG_MCUERR_PCLSB 0xFD90 /* PC[7:0] */
  1656. #define REG_MCUERR_PCMSB 0xFD91 /* PC[15:8] */
  1657. #define REG_MCUERR_ACC 0xFD92
  1658. #define REG_MCUERR_B 0xFD93
  1659. #define REG_MCUERR_DPTRLSB 0xFD94 /* DPTR[7:0] */
  1660. #define REG_MCUERR_DPTRMSB 0xFD95 /* DPTR[15:8] */
  1661. #define REG_MCUERR_SP 0xFD96 /* SP[7:0] */
  1662. #define REG_MCUERR_IE 0xFD97 /* IE[7:0] */
  1663. #define REG_MCUERR_EIE 0xFD98 /* EIE[7:0] */
  1664. #define REG_VERA_SIM 0xFD9F
  1665. /* 0xFD99~0xFD9F are reserved.. */
  1666. /* ----------------------------------------------------- */
  1667. /* */
  1668. /* 0xFE00h ~ 0xFEFFh USB Configuration */
  1669. /* */
  1670. /* ----------------------------------------------------- */
  1671. /* RTS5101 USB Register Definition */
  1672. #define REG_USB_SETUP_DEC_INT 0xFE00
  1673. #define REG_USB_DMACTL 0xFE01
  1674. #define REG_USB_IRQSTAT0 0xFE02
  1675. #define REG_USB_IRQSTAT1 0xFE03
  1676. #define REG_USB_IRQEN0 0xFE04
  1677. #define REG_USB_IRQEN1 0xFE05
  1678. #define REG_USB_AUTOPTRL 0xFE06
  1679. #define REG_USB_AUTOPTRH 0xFE07
  1680. #define REG_USB_AUTODAT 0xFE08
  1681. #define REG_USB_SCRATCH0 0xFE09
  1682. #define REG_USB_SCRATCH1 0xFE0A
  1683. #define REG_USB_SEEPROM 0xFE0B
  1684. #define REG_USB_GPIO0 0xFE0C
  1685. #define REG_USB_GPIO0DIR 0xFE0D
  1686. #define REG_USB_CLKSEL 0xFE0E
  1687. #define REG_USB_BOOTCTL 0xFE0F
  1688. #define REG_USB_USBCTL 0xFE10
  1689. #define REG_USB_USBSTAT 0xFE11
  1690. #define REG_USB_DEVADDR 0xFE12
  1691. #define REG_USB_USBTEST 0xFE13
  1692. #define REG_USB_FNUM0 0xFE14
  1693. #define REG_USB_FNUM1 0xFE15
  1694. #define REG_USB_EP_IDX 0xFE20
  1695. #define REG_USB_EP_CFG 0xFE21
  1696. #define REG_USB_EP_CTL 0xFE22
  1697. #define REG_USB_EP_STAT 0xFE23
  1698. #define REG_USB_EP_IRQ 0xFE24
  1699. #define REG_USB_EP_IRQEN 0xFE25
  1700. #define REG_USB_EP_MAXPKT0 0xFE26
  1701. #define REG_USB_EP_MAXPKT1 0xFE27
  1702. #define REG_USB_EP_DAT 0xFE28
  1703. #define REG_USB_EP_BC0 0xFE29
  1704. #define REG_USB_EP_BC1 0xFE2A
  1705. #define REG_USB_EP_TC0 0xFE2B
  1706. #define REG_USB_EP_TC1 0xFE2C
  1707. #define REG_USB_EP_TC2 0xFE2D
  1708. #define REG_USB_EP_CTL2 0xFE2E
  1709. #define REG_USB_INFO 0xFE17
  1710. #define REG_USB_SPECIAL_OPTION 0xFE55
  1711. #define REG_USB_DMA_AGG_TO 0xFE5B
  1712. #define REG_USB_AGG_TO 0xFE5C
  1713. #define REG_USB_AGG_TH 0xFE5D
  1714. #define REG_USB_VID 0xFE60
  1715. #define REG_USB_PID 0xFE62
  1716. #define REG_USB_OPT 0xFE64
  1717. #define REG_USB_CONFIG 0xFE65 /* RX EP setting. 0xFE65 Bit[3:0] : RXQ, Bit[7:4] : INTQ */
  1718. /* TX EP setting. 0xFE66 Bit[3:0] : TXQ0, Bit[7:4] : TXQ1, 0xFE67 Bit[3:0] : TXQ2 */
  1719. #define REG_USB_PHY_PARA1 0xFE68 /* Bit[7:4]: XCVR_SEN (USB PHY 0xE2[7:4]), Bit[3:0]: XCVR_SH (USB PHY 0xE2[3:0]) */
  1720. #define REG_USB_PHY_PARA2 0xFE69 /* Bit[7:5]: XCVR_BG (USB PHY 0xE3[5:3]), Bit[4:2]: XCVR_DR (USB PHY 0xE3[2:0]), Bit[1]: SE0_LVL (USB PHY 0xE5[7]), Bit[0]: FORCE_XTL_ON (USB PHY 0xE5[1]) */
  1721. #define REG_USB_PHY_PARA3 0xFE6A /* Bit[7:5]: XCVR_SRC (USB PHY 0xE5[4:2]), Bit[4]: LATE_DLLEN (USB PHY 0xF0[4]), Bit[3]: HS_LP_MODE (USB PHY 0xF0[3]), Bit[2]: UTMI_POS_OUT (USB PHY 0xF1 [7]), Bit[1:0]: TX_DELAY (USB PHY 0xF1 [2:1]) */
  1722. #define REG_USB_PHY_PARA4 0xFE6B /* (USB PHY 0xE7[7:0]) */
  1723. #define REG_USB_OPT2 0xFE6C
  1724. #define REG_USB_MAC_ADDR 0xFE70 /* 0xFE70~0xFE75 */
  1725. #define REG_USB_MANUFACTURE_SETTING 0xFE80 /* 0xFE80~0xFE90 Max : 32 bytes */
  1726. #define REG_USB_PRODUCT_STRING 0xFEA0 /* 0xFEA0~0xFECF Max : 48 bytes */
  1727. #define REG_USB_SERIAL_NUMBER_STRING 0xFED0 /* 0xFED0~0xFEDF Max : 12 bytes */
  1728. #define REG_USB_ALTERNATE_SETTING 0xFE4F
  1729. #define REG_USB_INT_BINTERVAL 0xFE6E
  1730. #define REG_USB_GPS_EP_CONFIG 0xFE6D
  1731. #endif /* __HALMAC_COM_REG_H__ */