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 0x000b
68#define ASIC_EVT_TA_DMA 0x0013
69#define ASIC_EVT_PVR_PTDONE 0x0015
71#define ASIC_EVT_PVR_ISP_OUTOFMEM 0x0200
72#define ASIC_EVT_PVR_STRIP_HALT 0x0201
73#define ASIC_EVT_PVR_PARAM_OUTOFMEM 0x0202
74#define ASIC_EVT_PVR_OPB_OUTOFMEM 0x0203
75#define ASIC_EVT_PVR_TA_INPUT_ERR 0x0204
76#define ASIC_EVT_PVR_TA_INPUT_OVERFLOW 0x0205
86#define ASIC_EVT_GD_COMMAND 0x0100
87#define ASIC_EVT_GD_DMA 0x000e
88#define ASIC_EVT_GD_DMA_OVERRUN 0x020d
89#define ASIC_EVT_GD_DMA_ILLADDR 0x020c
99#define ASIC_EVT_MAPLE_DMA 0x000c
100#define ASIC_EVT_MAPLE_ERROR 0x000d
110#define ASIC_EVT_SPU_DMA 0x000f
111#define ASIC_EVT_SPU_IRQ 0x0101
121#define ASIC_EVT_G2_DMA0 0x000f
122#define ASIC_EVT_G2_DMA1 0x0010
123#define ASIC_EVT_G2_DMA2 0x0011
124#define ASIC_EVT_G2_DMA3 0x0012
134#define ASIC_EVT_EXP_8BIT 0x0102
135#define ASIC_EVT_EXP_PCI 0x0103
147#define ASIC_ACK_A 0xa05f6900
148#define ASIC_ACK_B 0xa05f6904
149#define ASIC_ACK_C 0xa05f6908
151#define ASIC_IRQD_A 0xa05f6910
152#define ASIC_IRQD_B 0xa05f6914
153#define ASIC_IRQD_C 0xa05f6918
154#define ASIC_IRQB_A 0xa05f6920
155#define ASIC_IRQB_B 0xa05f6924
156#define ASIC_IRQB_C 0xa05f6928
157#define ASIC_IRQ9_A 0xa05f6930
158#define ASIC_IRQ9_B 0xa05f6934
159#define ASIC_IRQ9_C 0xa05f6938
174#define ASIC_IRQ_MAX 3
175#define ASIC_IRQ_DEFAULT ASIC_IRQ9
224 void (*ack_and_mask)(uint16_t),
225 void (*unmask)(uint16_t));
276void 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:189
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.