12 #define BRANCH_FAULT 7
15 #define BCOPY_FAULT 10
18 #define MEM_LEAK_FAULT 13
19 #define INTERFACE_FAULT 14
20 #define DIRECT_FAULT 15
21 #define DIRECT_FAULT1 16
24 #define PANIC_FAULT 20
25 #define WHILE1_FAULT 21
26 #define DEBUGGER_FAULT 22
27 #define CPU_RESET_FAULT 23
28 #define PAGE_REG_DUMP 24
31 #define ALLOC_FAULT 27
35 #define SWIFI_MAX_FAULTS 1000
37 typedef struct swifi_result
{
38 unsigned long address
;
41 } swifi_result_t
, *pswifi_result_t
;
44 sys_inject_fault(char * module
,
45 unsigned long argFaultType
,
46 unsigned long argRandomSeed
,
47 unsigned long argNumFaults
,
48 pswifi_result_t result_record
,
49 unsigned long argInjectFault
);
52 #endif /* _SWIFI_USER_H */