Author | Tokens | Token Proportion | Commits | Commit Proportion |
---|---|---|---|---|
Phillip Potter | 423 | 99.30% | 1 | 33.33% |
Larry Finger | 2 | 0.47% | 1 | 33.33% |
Greg Kroah-Hartman | 1 | 0.23% | 1 | 33.33% |
Total | 426 | 3 |
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* Copyright(c) 2007 - 2011 Realtek Corporation. */ #ifndef __RTW_EFUSE_H__ #define __RTW_EFUSE_H__ #include "osdep_service.h" #define EFUSE_ERROE_HANDLE 1 #define PG_STATE_HEADER 0x01 #define PG_STATE_WORD_0 0x02 #define PG_STATE_WORD_1 0x04 #define PG_STATE_WORD_2 0x08 #define PG_STATE_WORD_3 0x10 #define PG_STATE_DATA 0x20 #define PG_SWBYTE_H 0x01 #define PG_SWBYTE_L 0x02 #define PGPKT_DATA_SIZE 8 #define EFUSE_WIFI 0 #define EFUSE_BT 1 enum _EFUSE_DEF_TYPE { TYPE_EFUSE_MAX_SECTION = 0, TYPE_EFUSE_REAL_CONTENT_LEN = 1, TYPE_AVAILABLE_EFUSE_BYTES_BANK = 2, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL = 3, TYPE_EFUSE_MAP_LEN = 4, TYPE_EFUSE_PROTECT_BYTES_BANK = 5, TYPE_EFUSE_CONTENT_LEN_BANK = 6, }; /* E-Fuse */ #define EFUSE_MAP_SIZE 512 #define EFUSE_MAX_SIZE 256 /* end of E-Fuse */ #define EFUSE_MAX_MAP_LEN 512 #define EFUSE_MAX_HW_SIZE 512 #define EFUSE_MAX_SECTION_BASE 16 #define EXT_HEADER(header) ((header & 0x1F) == 0x0F) #define ALL_WORDS_DISABLED(wde) ((wde & 0x0F) == 0x0F) #define GET_HDR_OFFSET_2_0(header) ((header & 0xE0) >> 5) #define EFUSE_REPEAT_THRESHOLD_ 3 /* The following is for BT Efuse definition */ #define EFUSE_BT_MAX_MAP_LEN 1024 #define EFUSE_MAX_BANK 4 #define EFUSE_MAX_BT_BANK (EFUSE_MAX_BANK-1) /*--------------------------Define Parameters-------------------------------*/ #define EFUSE_MAX_WORD_UNIT 4 /*------------------------------Define structure----------------------------*/ struct pgpkt { u8 offset; u8 word_en; u8 data[8]; u8 word_cnts; }; /*------------------------------Define structure----------------------------*/ struct efuse_hal { u8 fakeEfuseBank; u32 fakeEfuseUsedBytes; u8 fakeEfuseContent[EFUSE_MAX_HW_SIZE]; u8 fakeEfuseInitMap[EFUSE_MAX_MAP_LEN]; u8 fakeEfuseModifiedMap[EFUSE_MAX_MAP_LEN]; u16 BTEfuseUsedBytes; u8 BTEfuseUsedPercentage; u8 BTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE]; u8 BTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN]; u8 BTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN]; u16 fakeBTEfuseUsedBytes; u8 fakeBTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE]; u8 fakeBTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN]; u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN]; }; /*------------------------Export global variable----------------------------*/ extern u8 fakeEfuseBank; extern u32 fakeEfuseUsedBytes; extern u8 fakeEfuseContent[]; extern u8 fakeEfuseInitMap[]; extern u8 fakeEfuseModifiedMap[]; extern u32 BTEfuseUsedBytes; extern u8 BTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE]; extern u8 BTEfuseInitMap[]; extern u8 BTEfuseModifiedMap[]; extern u32 fakeBTEfuseUsedBytes; extern u8 fakeBTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE]; extern u8 fakeBTEfuseInitMap[]; extern u8 fakeBTEfuseModifiedMap[]; /*------------------------Export global variable----------------------------*/ u8 Efuse_CalculateWordCnts(u8 word_en); void ReadEFuseByte(struct adapter *adapter, u16 _offset, u8 *pbuf, bool test); u8 efuse_OneByteRead(struct adapter *adapter, u16 addr, u8 *data, bool test); u8 efuse_OneByteWrite(struct adapter *adapter, u16 addr, u8 data, bool test); void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata); void EFUSE_ShadowMapUpdate(struct adapter *adapter, u8 efusetype, bool test); #endif
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with Cregit http://github.com/cregit/cregit
Version 2.0-RC1