Nugget
Loading...
Searching...
No Matches
events.h
Go to the documentation of this file.
1/*
2
3MIT License
4
5Copyright (c) 2020 PCSX-Redux authors
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23SOFTWARE.
24
25*/
26
27#pragma once
28
30 EVENT_VBLANK = 0xf0000001, // IRQ0
31 EVENT_GPU = 0xf0000002, // IRQ1
32 EVENT_CDROM = 0xf0000003, // IRQ2
33 EVENT_DMA = 0xf0000004, // IRQ3
34 EVENT_RTC0 = 0xf0000005, // IRQ4 - Timer 0
35 EVENT_RTC1 = 0xf0000006, // IRQ5 - Timer 1 or 2
36 // 0xf0000007 - unused, should be Timer 2
37 EVENT_CONTROLLER = 0xf0000008, // IRQ7
38 EVENT_SPU = 0xf0000009, // IRQ9
39 EVENT_PIO = 0xf000000a, // IRQ10
40 EVENT_SIO = 0xf000000b, // IRQ8
41 EVENT_CARD = 0xf0000011,
42 EVENT_BU = 0xf4000001,
43};
44
49
event_flag
Definition events.h:50
@ EVENT_FLAG_PENDING
Definition events.h:54
@ EVENT_FLAG_DISABLED
Definition events.h:52
@ EVENT_FLAG_FREE
Definition events.h:51
@ EVENT_FLAG_ENABLED
Definition events.h:53
event_class
Definition events.h:29
@ EVENT_BU
Definition events.h:42
@ EVENT_CONTROLLER
Definition events.h:37
@ EVENT_DMA
Definition events.h:33
@ EVENT_RTC1
Definition events.h:35
@ EVENT_GPU
Definition events.h:31
@ EVENT_PIO
Definition events.h:39
@ EVENT_SIO
Definition events.h:40
@ EVENT_SPU
Definition events.h:38
@ EVENT_VBLANK
Definition events.h:30
@ EVENT_CDROM
Definition events.h:32
@ EVENT_RTC0
Definition events.h:34
@ EVENT_CARD
Definition events.h:41
event_mode
Definition events.h:45
@ EVENT_MODE_NO_CALLBACK
Definition events.h:47
@ EVENT_MODE_CALLBACK
Definition events.h:46