T-EMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Device.h
Go to the documentation of this file.
1 #ifndef TEMU_DEVICE_H
2 #define TEMU_DEVICE_H
3 
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 /* Standard device interface
11  Reset is called when the device is reset.
12  mapDevice is (if defined) called when a device is mapped.
13  */
14 typedef struct temu_DeviceIface {
15  void (*reset)(void *Obj, int ResetType);
16  void (*mapDevice)(void *Obj, uint64_t Address, uint64_t Len);
18 
19 OBJSYS_OBJ_TYPE(temu_Device);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif /* ! TEMU_DEVICE_H */
void(* mapDevice)(void *Obj, uint64_t Address, uint64_t Len)
Definition: Device.h:16
#define OBJSYS_OBJ_TYPE(N)
Definition: Objsys.h:74
void(* reset)(void *Obj, int ResetType)
Definition: Device.h:15
struct temu_DeviceIface temu_DeviceIface