1 #ifndef __INC_FIRMWARE_H
2 #define __INC_FIRMWARE_H
4 #define RTL8190_CPU_START_OFFSET 0x80
5 /* TODO: this definition is TBD */
6 //#define USB_HWDESC_HEADER_LEN 0
8 /* It should be double word alignment */
9 //#if DEV_BUS_TYPE==PCI_INTERFACE
10 //#define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) 4*(v/4) - 8
12 #define GET_COMMAND_PACKET_FRAG_THRESHOLD(v) (4*(v/4) - 8 - USB_HWDESC_HEADER_LEN)
15 typedef enum _firmware_init_step
{
16 FW_INIT_STEP0_BOOT
= 0,
17 FW_INIT_STEP1_MAIN
= 1,
18 FW_INIT_STEP2_DATA
= 2,
19 }firmware_init_step_e
;
21 typedef enum _opt_rst_type
{
23 OPT_FIRMWARE_RESET
= 1,