blob: 1cb4a5dc0703b107014a899dd80bb24b97cd4ab5 [file] [log] [blame]
/******************************************************************************
*(C) Copyright 2008 Marvell International Ltd.
* All Rights Reserved
******************************************************************************/
/*-----------------------------------------------------------------------------
*
* Filename: eeh.h
*
* Description: API interface for error handler
*
* History:
* April 10, 2008 - Rovin Yu Creation of file
*
* Notes:
*
******************************************************************************/
#ifndef __EEH__
#define __EEH__
#include "linux_types.h"
#include "eeh_ioctl.h"
#if defined(HAWK_ENABLED)
#include "eeh_hawk.h"
#include "hawk_api.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
EEH_STATUS EehInit(int createPthread);
EEH_STATUS EehDeinit(void);
void EehStartHBTest(void);
void eeh_event_prt_and_rec(int prt, int rec, const char *fmt, ...);
void eeh_journal_update_and_cut(void);
void eeh_ap_thread_info(int onAssert);
void eeh_send_to_hawk(char *msg);
void eeh_cp_assert_info_rec(char *string);
int weh_init(int flag);
int weh_is_up_get_stat(void *name_or_idx, int *drv_stat, int flag);
int weh_do_silent_reset(int do_0_1_both);
extern const char *ramdump_loglist_ap[];
extern const char *ramdump_loglist_cp[];
extern const char *ramdump_loglist_sdl[];
extern const char *ramdump_loglist_cp_big[];
//extern const char *ramdump_loglist_wifi[] = "wifi_ITCM", "wifi_DTCM", "wifi_SQRAM";
extern const int ramdump_loglist_ap_sz;
extern const int ramdump_loglist_cp_sz;
extern const int ramdump_loglist_sdl_sz;
extern const int ramdump_loglist_cp_big_sz;
#ifdef __cplusplus
}
#endif
#endif