00001 #ifndef TEMU_DEVICE_H 00002 #define TEMU_DEVICE_H 00003 00004 #include "temu-c/Support/Objsys.h" 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 /* Standard device interface 00011 Reset is called when the device is reset. 00012 mapDevice is (if defined) called when a device is mapped. 00013 */ 00014 typedef struct temu_DeviceIface { 00015 void (*reset)(void *Obj, int ResetType); 00016 void (*mapDevice)(void *Obj, uint64_t Address, uint64_t Len); 00017 } temu_DeviceIface; 00018 00019 OBJSYS_OBJ_TYPE(temu_Device); 00020 00021 #ifdef __cplusplus 00022 } 00023 #endif 00024 00025 #endif /* ! TEMU_DEVICE_H */