1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef _COMMON_QCOM_H_
- #define _COMMON_QCOM_H_
- #define NCI_RESET_CMD_LEN (4)
- #define NCI_RESET_RSP_LEN (4)
- #define NCI_CORE_RESET_CMD_OID (0x0)
- #define NCI_CORE_RESET_CMD_PAYLOAD_LEN (0x1)
- #define NCI_CORE_RESET_KEEP_CONFIG (0x0)
- #define NCI_RESET_NTF_LEN (13)
- #define NCI_CMD_RSP_TIMEOUT_MS (2000)
- #define SN1XX_ROM_VER 0x01
- #define SN1xx_MAJOR_VER 0x10
- #define SN220_ROM_VER 0x01
- #define SN220_MAJOR_VER 0x01
- #define FW_ROM_CODE_VER_OFFSET 4
- #define FW_MAJOR_VER_OFFSET 7
- #define GET_VERSION_RSP_CHIP_TYPE_OFFSET 3
- #define GET_VERSION_RSP_MINOR_VERSION_OFFSET 6
- #define DL_GET_VERSION_CMD_LEN (8)
- #define DL_GET_VERSION_RSP_LEN_1 (12)
- #define DL_GET_VERSION_RSP_LEN_2 (20)
- #define DL_GET_VERSION_CMD_PAYLOAD_LEN (4)
- #define DL_GET_VERSION_CMD_ID (0xF1)
- #define DL_GET_VERSION_CMD_CRC_1 (0x6E)
- #define DL_GET_VERSION_CMD_CRC_2 (0xEF)
- #define DL_RESET_CMD_LEN (8)
- #define DL_GET_SESSION_STATE_CMD_LEN (8)
- #define DL_GET_SESSION_STATE_RSP_LEN (8)
- #define DL_GET_SESSION_STATE_CMD_PAYLOAD_LEN (4)
- #define DL_GET_SESSION_CMD_ID (0xF2)
- #define DL_GET_SESSION_CMD_CRC_1 (0xF5)
- #define DL_GET_SESSION_CMD_CRC_2 (0x33)
- #define GET_SESSION_STS_OFF (3)
- #define NFCC_SESSION_STS_CLOSED (0x0)
- #define NFC_CHIP_TYPE_OFF (4)
- #define NFC_FW_MINOR_OFF (1)
- enum chip_types {
- CHIP_SN1XX = 0x01,
- CHIP_SN220 = 0x02,
- CHIP_UNKNOWN = 0xFF,
- };
- #endif
|