54#define ASIC_EVT_PVR_RENDERDONE_VIDEO 0x0000
55#define ASIC_EVT_PVR_RENDERDONE_ISP 0x0001
56#define ASIC_EVT_PVR_RENDERDONE_TSP 0x0002
57#define ASIC_EVT_PVR_VBLANK_BEGIN 0x0003
58#define ASIC_EVT_PVR_VBLANK_END 0x0004
59#define ASIC_EVT_PVR_HBLANK_BEGIN 0x0005
61#define ASIC_EVT_PVR_YUV_DONE 0x0006
62#define ASIC_EVT_PVR_OPAQUEDONE 0x0007
63#define ASIC_EVT_PVR_OPAQUEMODDONE 0x0008
64#define ASIC_EVT_PVR_TRANSDONE 0x0009
65#define ASIC_EVT_PVR_TRANSMODDONE 0x000a
67#define ASIC_EVT_PVR_DMA 0x0013
68#define ASIC_EVT_PVR_PTDONE 0x0015
70#define ASIC_EVT_PVR_ISP_OUTOFMEM 0x0200
71#define ASIC_EVT_PVR_STRIP_HALT 0x0201
72#define ASIC_EVT_PVR_PARAM_OUTOFMEM 0x0202
73#define ASIC_EVT_PVR_OPB_OUTOFMEM 0x0203
74#define ASIC_EVT_PVR_TA_INPUT_ERR 0x0204
75#define ASIC_EVT_PVR_TA_INPUT_OVERFLOW 0x0205
85#define ASIC_EVT_GD_COMMAND 0x0100
86#define ASIC_EVT_GD_DMA 0x000e
87#define ASIC_EVT_GD_DMA_OVERRUN 0x020d
88#define ASIC_EVT_GD_DMA_ILLADDR 0x020c
98#define ASIC_EVT_MAPLE_DMA 0x000c
99#define ASIC_EVT_MAPLE_ERROR 0x000d
109#define ASIC_EVT_SPU_DMA 0x000f
110#define ASIC_EVT_SPU_IRQ 0x0101
120#define ASIC_EVT_G2_DMA0 0x000f
121#define ASIC_EVT_G2_DMA1 0x0010
122#define ASIC_EVT_G2_DMA2 0x0011
123#define ASIC_EVT_G2_DMA3 0x0012
133#define ASIC_EVT_EXP_8BIT 0x0102
134#define ASIC_EVT_EXP_PCI 0x0103
146#define ASIC_ACK_A 0xa05f6900
147#define ASIC_ACK_B 0xa05f6904
148#define ASIC_ACK_C 0xa05f6908
150#define ASIC_IRQD_A 0xa05f6910
151#define ASIC_IRQD_B 0xa05f6914
152#define ASIC_IRQD_C 0xa05f6918
153#define ASIC_IRQB_A 0xa05f6920
154#define ASIC_IRQB_B 0xa05f6924
155#define ASIC_IRQB_C 0xa05f6928
156#define ASIC_IRQ9_A 0xa05f6930
157#define ASIC_IRQ9_B 0xa05f6934
158#define ASIC_IRQ9_C 0xa05f6938
173#define ASIC_IRQ_MAX 3
174#define ASIC_IRQ_DEFAULT ASIC_IRQ9
223 void (*ack_and_mask)(uint16_t),
224 void (*unmask)(uint16_t));
275void asic_shutdown(
void);
void asic_evt_enable(uint16_t code, uint8_t irqlevel)
Enable an ASIC event.
void asic_evt_disable(uint16_t code, uint8_t irqlevel)
Disable one ASIC event.
void(* asic_evt_handler)(uint32_t code, void *data)
ASIC event handler type.
Definition asic.h:188
int asic_evt_request_threaded_handler(uint16_t code, asic_evt_handler handler, void *data, void(*ack_and_mask)(uint16_t), void(*unmask)(uint16_t))
Register a threaded handler with the given ASIC event.
void asic_evt_set_handler(uint16_t code, asic_evt_handler handler, void *data)
Set or remove an ASIC handler.
void asic_evt_disable_all(void)
Disable all ASIC events.
void asic_evt_remove_handler(uint16_t code)
Unregister any handler set to the given ASIC event.