1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __INC_FIRMWARE_H 3 #define __INC_FIRMWARE_H 4 5 #define RTL8190_CPU_START_OFFSET 0x80 6 #define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) \ 7 (4*(v/4) - 8 - USB_HWDESC_HEADER_LEN) 8 9 typedef enum _firmware_init_step { 10 FW_INIT_STEP0_BOOT = 0, 11 FW_INIT_STEP1_MAIN = 1, 12 FW_INIT_STEP2_DATA = 2, 13 } firmware_init_step_e; 14 15 typedef enum _opt_rst_type { 16 OPT_SYSTEM_RESET = 0, 17 OPT_FIRMWARE_RESET = 1, 18 } opt_rst_type_e; 19 20 #endif 21