2008-10-02 15:43:32 +02:00
|
|
|
#ifndef _LINUX_SWIFI_H
|
|
|
|
#define _LINUX_SWIFI_H
|
|
|
|
|
2008-10-02 15:48:05 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2008-10-02 15:43:32 +02:00
|
|
|
#include "swifi-user.h"
|
|
|
|
|
|
|
|
long
|
|
|
|
swifi_inject_fault(char * nook_name,
|
|
|
|
unsigned long faultType,
|
|
|
|
unsigned long randSeed,
|
|
|
|
unsigned long numFaults,
|
|
|
|
void * results,
|
|
|
|
unsigned long do_inject);
|
|
|
|
|
|
|
|
|
|
|
|
long
|
|
|
|
sys_inject_fault(char * module,
|
|
|
|
unsigned long argFaultType,
|
|
|
|
unsigned long argRandomSeed,
|
|
|
|
unsigned long argNumFaults,
|
|
|
|
pswifi_result_t result_record,
|
|
|
|
unsigned long argInjectFault);
|
|
|
|
|
|
|
|
void
|
|
|
|
swifi_kfree(const void *addr);
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
swifi_vfree(void *addr);
|
|
|
|
|
|
|
|
|
|
|
|
void *
|
|
|
|
swifi_memmove_fn(void *to, void *from, size_t len);
|
|
|
|
|
|
|
|
|
|
|
|
void *
|
|
|
|
swifi_memcpy_fn(void *to, void *from, size_t len);
|
|
|
|
|
|
|
|
|
|
|
|
void *
|
|
|
|
memmove_fn(void *to, void *from, size_t len);
|
|
|
|
|
|
|
|
void *
|
|
|
|
memcpy_fn(void *to, void *from, size_t len);
|
|
|
|
|
|
|
|
unsigned long
|
|
|
|
swifi___generic_copy_from_user (void *kaddr, void *udaddr, unsigned long len);
|
|
|
|
|
|
|
|
unsigned long
|
|
|
|
swifi___generic_copy_to_user(void *udaddr, void *kaddr, unsigned long len);
|
|
|
|
|
|
|
|
|
|
|
|
void *
|
|
|
|
swifi_kmalloc(size_t size, int flags);
|
|
|
|
|
|
|
|
|
2008-10-02 15:48:05 +02:00
|
|
|
#if 0
|
2008-10-02 15:43:32 +02:00
|
|
|
void *
|
|
|
|
swifi___vmalloc(unsigned long size, int gfp_mask, pgprot_t prot);
|
2008-10-02 15:48:05 +02:00
|
|
|
#endif
|
2008-10-02 15:43:32 +02:00
|
|
|
|
2008-10-02 15:48:05 +02:00
|
|
|
#endif /* _LINUX_SWIFI_H */
|
2008-10-02 15:43:32 +02:00
|
|
|
|