Skip to content

Commit

Permalink
create device structure
Browse files Browse the repository at this point in the history
  • Loading branch information
noahwooten05 committed Dec 27, 2023
1 parent 95cf0cf commit 0ef55cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Binary file not shown.
22 changes: 12 additions & 10 deletions plasm2_emu/devices/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@ typedef union _CPU_DEVICE_FLAGS {
};
}CPU_DEVICE_FLAGS, *PCPU_DEVICE_FLAGS;

typedef struct _CPU_DEVICE {
int DeviceType;
char DeviceName[32];
char DeviceVendor[32];
WORD64 VendorId;
WORD64 DeviceModel;
WORD64 DeviceSerial;
WORD64(*Callbacks[7])(WORD32 DeviceId, WORD64 Argument);
CPU_DEVICE_FLAGS Flags;
}CPU_DEVICE, *PCPU_DEVICE;

typedef struct _DEVICES_CTX {
WORD64 DeviceCount;
struct {
int DeviceType;
char DeviceName[32];
char DeviceVendor[32];
WORD64 VendorId;
WORD64 DeviceModel;
WORD64 DeviceSerial;
WORD64(*Callbacks[7])(WORD32 DeviceId, WORD64 Argument);
CPU_DEVICE_FLAGS Flags;
}*Devices;
PCPU_DEVICE Devices;
}DEVICES_CTX, *PDEVICES_CTX;
extern PDEVICES_CTX DevicesCtx;

0 comments on commit 0ef55cf

Please sign in to comment.