···4343#include "../rtmp_iface.h"4444#include "../rtmp_dot11.h"45454646-//4747-// Device ID & Vendor ID related definitions,4848-// NOTE: you should not add the new VendorID/DeviceID here unless you not sure it belongs to what chip.4949-//4646+/* */4747+/* Device ID & Vendor ID related definitions, */4848+/* NOTE: you should not add the new VendorID/DeviceID here unless you not sure it belongs to what chip. */4949+/* */5050#define NIC_PCI_VENDOR_ID 0x18145151#define PCIBUS_INTEL_VENDOR 0x80865252···66666767#define AUX_CTRL 0x10c68686969-//7070-// TX descriptor format, Tx ring, Mgmt Ring7171-//6969+/* */7070+/* TX descriptor format, Tx ring, Mgmt Ring */7171+/* */7272struct PACKED rt_txd {7373- // Word 07373+ /* Word 0 */7474 u32 SDPtr0;7575- // Word 17575+ /* Word 1 */7676 u32 SDLen1:14;7777 u32 LastSec1:1;7878 u32 Burst:1;7979 u32 SDLen0:14;8080 u32 LastSec0:1;8181 u32 DMADONE:1;8282- //Word28282+ /*Word2 */8383 u32 SDPtr1;8484- //Word38484+ /*Word3 */8585 u32 rsv2:24;8686 u32 WIV:1; /* Wireless Info Valid. 1 if Driver already fill WI, o if DMA needs to copy WI to correctposition */8787 u32 QSEL:2; /* select on-chip FIFO ID for 2nd-stage output scheduler.0:MGMT, 1:HCCA 2:EDCA */···9191 u32 ICO:1; /* */9292};93939494-//9595-// Rx descriptor format, Rx Ring9696-//9494+/* */9595+/* Rx descriptor format, Rx Ring */9696+/* */9797typedef struct PACKED rt_rxd {9898- // Word 09898+ /* Word 0 */9999 u32 SDP0;100100- // Word 1100100+ /* Word 1 */101101 u32 SDL1:14;102102 u32 Rsv:2;103103 u32 SDL0:14;104104 u32 LS0:1;105105 u32 DDONE:1;106106- // Word 2106106+ /* Word 2 */107107 u32 SDP1;108108- // Word 3108108+ /* Word 3 */109109 u32 BA:1;110110 u32 DATA:1;111111 u32 NULLDATA:1;···141141142142/* ----------------- EEPROM Related MACRO ----------------- */143143144144-// 8051 firmware image for RT2860 - base address = 0x4000144144+/* 8051 firmware image for RT2860 - base address = 0x4000 */145145#define FIRMWARE_IMAGE_BASE 0x2000146146-#define MAX_FIRMWARE_IMAGE_SIZE 0x2000 // 8kbyte146146+#define MAX_FIRMWARE_IMAGE_SIZE 0x2000 /* 8kbyte */147147148148/* ----------------- Frimware Related MACRO ----------------- */149149#define RTMP_WRITE_FIRMWARE(_pAd, _pFwImage, _FwLen) \···222222/* ----------------- RX Related MACRO ----------------- */223223224224/* ----------------- ASIC Related MACRO ----------------- */225225-// reset MAC of a station entry to 0x000000000000225225+/* reset MAC of a station entry to 0x000000000000 */226226#define RTMP_STA_ENTRY_MAC_RESET(pAd, Wcid) \227227 AsicDelWcidTab(pAd, Wcid);228228229229-// add this entry into ASIC RX WCID search table229229+/* add this entry into ASIC RX WCID search table */230230#define RTMP_STA_ENTRY_ADD(pAd, pEntry) \231231 AsicUpdateRxWCIDTable(pAd, pEntry->Aid, pEntry->Addr);232232233233-// add by johnli, fix "in_interrupt" error when call "MacTableDeleteEntry" in Rx tasklet234234-// Set MAC register value according operation mode233233+/* add by johnli, fix "in_interrupt" error when call "MacTableDeleteEntry" in Rx tasklet */234234+/* Set MAC register value according operation mode */235235#define RTMP_UPDATE_PROTECT(pAd) \236236 AsicUpdateProtect(pAd, 0, (ALLN_SETPROTECT), TRUE, 0);237237-// end johnli237237+/* end johnli */238238239239-// remove Pair-wise key material from ASIC239239+/* remove Pair-wise key material from ASIC */240240#define RTMP_STA_ENTRY_KEY_DEL(pAd, BssIdx, Wcid) \241241 AsicRemovePairwiseKeyEntry(pAd, BssIdx, (u8)Wcid);242242243243-// add Client security information into ASIC WCID table and IVEIV table243243+/* add Client security information into ASIC WCID table and IVEIV table */244244#define RTMP_STA_SECURITY_INFO_ADD(pAd, apidx, KeyID, pEntry) \245245 RTMPAddWcidAttributeEntry(pAd, apidx, KeyID, \246246 pAd->SharedKey[apidx][KeyID].CipherAlg, pEntry);···257257 pAd->SharedKey[apidx][KeyID].CipherAlg, \258258 pEntry); }259259260260-// Insert the BA bitmap to ASIC for the Wcid entry260260+/* Insert the BA bitmap to ASIC for the Wcid entry */261261#define RTMP_ADD_BA_SESSION_TO_ASIC(_pAd, _Aid, _TID) \262262 do{ \263263 u32 _Value = 0, _Offset; \···267267 RTMP_IO_WRITE32((_pAd), _Offset, _Value);\268268 }while(0)269269270270-// Remove the BA bitmap from ASIC for the Wcid entry271271-// bitmap field starts at 0x10000 in ASIC WCID table270270+/* Remove the BA bitmap from ASIC for the Wcid entry */271271+/* bitmap field starts at 0x10000 in ASIC WCID table */272272#define RTMP_DEL_BA_SESSION_FROM_ASIC(_pAd, _Wcid, _TID) \273273 do{ \274274 u32 _Value = 0, _Offset; \···280280281281/* ----------------- Interface Related MACRO ----------------- */282282283283-//284284-// Enable & Disable NIC interrupt via writing interrupt mask register285285-// Since it use ADAPTER structure, it have to be put after structure definition.286286-//283283+/* */284284+/* Enable & Disable NIC interrupt via writing interrupt mask register */285285+/* Since it use ADAPTER structure, it have to be put after structure definition. */286286+/* */287287#define RTMP_ASIC_INTERRUPT_DISABLE(_pAd) \288288 do{ \289289 RTMP_IO_WRITE32((_pAd), INT_MASK_CSR, 0x0); /* 0: disable */ \···324324/* ----------------- Power Save Related MACRO ----------------- */325325#define RTMP_PS_POLL_ENQUEUE(pAd) EnqueuePsPoll(pAd)326326327327-// For RTMPPCIePowerLinkCtrlRestore () function327327+/* For RTMPPCIePowerLinkCtrlRestore () function */328328#define RESTORE_HALT 1329329#define RESTORE_WAKEUP 2330330#define RESTORE_CLOSE 3···352352#define RTMP_MLME_RADIO_OFF(pAd) \353353 RT28xxPciMlmeRadioOFF(pAd);354354355355-#endif //__MAC_PCI_H__ //355355+#endif /*__MAC_PCI_H__ // */