TEMU  4.4
The Terma Emulator
Device.h
Go to the documentation of this file.
1 //===------------------------------------------------------------*- C++ -*-===//
2 //
3 // TEMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEMU_DEVICE_H
10 #define TEMU_DEVICE_H
11 
12 #include "temu-c/Support/Objsys.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /*!
19  Standard device interface
20 
21  \field reset Called when the device is reset.
22  \field mapDevice If defined, called when a device is mapped.
23  */
24 typedef struct temu_DeviceIface {
25  void (*reset)(void *Obj, int ResetType);
26  void (*mapDevice)(void *Obj, uint64_t Address, uint64_t Len);
27 } temu_DeviceIface;
28 #define TEMU_DEVICE_IFACE_TYPE "DeviceIface"
29 TEMU_IFACE_REFERENCE_TYPE(temu_Device);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif /* ! TEMU_DEVICE_H */
temu_DeviceIface::mapDevice
void(* mapDevice)(void *Obj, uint64_t Address, uint64_t Len)
Definition: Device.h:26
temu_DeviceIface::reset
void(* reset)(void *Obj, int ResetType)
Definition: Device.h:25
temu_DeviceIface
Definition: Device.h:24