#ifndef PHYSMEM_HH
#define PHYSMEM_HH
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#ifdef __cplusplus
}
#endif
typedef char *LOCAL_ADDRESS_TYPE;
class PHYSMEM_HANDLE {
public:
PHYSMEM_HANDLE();
PHYSMEM_HANDLE(unsigned long _physical_address,
long _address_code, long _size);
virtual ~ PHYSMEM_HANDLE();
long offset;
long size;
int read(void *_to, long _read_size);
int write(void *_from, long _write_size);
void set_to_ptr(void *_ptr, long size);
long address_code;
void memsetf(long offset, char _byte, long _memset_size);
int clear_memory();
int valid();
int isvalid;
char *temp_buf;
unsigned long physical_address;
LOCAL_ADDRESS_TYPE local_address;
protected:
public:
int using_bit3;
double total_bytes_moved;
int enable_byte_counting;
};
#endif