1 /*************************************************************************/
2 /* Copyright (c) 2008 Atheros Communications, Inc., All Rights Reserved */
4 /* Module Name : romp_api.h */
7 /* This file contains definition of data structure and interface */
12 /*************************************************************************/
19 /******** hardware API table structure (API descriptions below) *************/
22 void (*_romp_init)(void);
23 BOOLEAN (*_romp_download)(uint16_t );
24 BOOLEAN (*_romp_install)(void);
25 BOOLEAN (*_romp_decode)(uint32_t );
28 #define _ROMP_MAGIC_ "[PaTcH]"
31 uint16_t crc16; // crc filed to maintain the integrity
32 uint16_t len; // length of the patch code
33 uint32_t ld_addr; // load address of the patch code
34 uint32_t fun_addr; // entry address of the patch code
35 uint8_t *pfun; // patch code
39 struct eep_redir_addr {
44 /************************* EXPORT function ***************************/
45 uint16_t cal_crc16(uint32_t sz, uint8_t *p);
47 #endif // end of _UART_API_H_