diff options
author | Damien Zammit <damien@zamaudio.com> | 2020-04-18 11:45:46 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2020-04-18 11:45:46 +1000 |
commit | 089244b220b0228c39adb0e84b1c21c6aa3a561c (patch) | |
tree | 8f60152deba2c9dc72597debb4e301cb7e05d367 /include/device | |
parent | 99a4e3f65f12f4efc47fd20f2ab66660132483c9 (diff) |
device/intr: WIP interrupts in userspace as a device
Diffstat (limited to 'include/device')
-rw-r--r-- | include/device/intr.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/device/intr.h b/include/device/intr.h new file mode 100644 index 00000000..a02b64c9 --- /dev/null +++ b/include/device/intr.h @@ -0,0 +1,17 @@ +#ifndef __INTR_H__ + +#define __INTR_H__ + +#include <device/device_types.h> + +typedef struct +{ + mach_msg_header_t intr_header; + mach_msg_type_t intr_type; + int line; +} mach_intr_notification_t; + +#define INTR_NOTIFY_MSGH_SEQNO 0 +#define MACH_INTR_NOTIFY 424242 + +#endif |