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