24 #include <sys/cdefs.h>
43 #define ASIC_EVT_PVR_RENDERDONE 0x0002
44 #define ASIC_EVT_PVR_SCANINT1 0x0003
45 #define ASIC_EVT_PVR_SCANINT2 0x0004
46 #define ASIC_EVT_PVR_VBLINT 0x0005
47 #define ASIC_EVT_PVR_OPAQUEDONE 0x0007
48 #define ASIC_EVT_PVR_OPAQUEMODDONE 0x0008
49 #define ASIC_EVT_PVR_TRANSDONE 0x0009
50 #define ASIC_EVT_PVR_TRANSMODDONE 0x000a
51 #define ASIC_EVT_PVR_DMA 0x0013
52 #define ASIC_EVT_PVR_PTDONE 0x0015
53 #define ASIC_EVT_PVR_PRIMOUTOFMEM 0x0202
54 #define ASIC_EVT_PVR_MATOUTOFMEM 0x0203
62 #define ASIC_EVT_GD_COMMAND 0x0100
63 #define ASIC_EVT_GD_DMA 0x000e
64 #define ASIC_EVT_GD_DMA_OVERRUN 0x020d
65 #define ASIC_EVT_GD_DMA_ILLADDR 0x020c
73 #define ASIC_EVT_MAPLE_DMA 0x000c
74 #define ASIC_EVT_MAPLE_ERROR 0x000d
82 #define ASIC_EVT_SPU_DMA 0x000f
83 #define ASIC_EVT_SPU_IRQ 0x0101
91 #define ASIC_EVT_G2_DMA0 0x000f
92 #define ASIC_EVT_G2_DMA1 0x0010
93 #define ASIC_EVT_G2_DMA2 0x0011
94 #define ASIC_EVT_G2_DMA3 0x0012
102 #define ASIC_EVT_EXP_8BIT 0x0102
103 #define ASIC_EVT_EXP_PCI 0x0103
112 #define ASIC_IRQD_A (*(vuint32*)0xa05f6910)
113 #define ASIC_IRQD_B (*(vuint32*)0xa05f6914)
114 #define ASIC_IRQD_C (*(vuint32*)0xa05f6918)
115 #define ASIC_IRQB_A (*(vuint32*)0xa05f6920)
116 #define ASIC_IRQB_B (*(vuint32*)0xa05f6924)
117 #define ASIC_IRQB_C (*(vuint32*)0xa05f6928)
118 #define ASIC_IRQ9_A (*(vuint32*)0xa05f6930)
119 #define ASIC_IRQ9_B (*(vuint32*)0xa05f6934)
120 #define ASIC_IRQ9_C (*(vuint32*)0xa05f6938)
122 #define ASIC_ACK_A (*(vuint32*)0xa05f6900)
123 #define ASIC_ACK_B (*(vuint32*)0xa05f6904)
124 #define ASIC_ACK_C (*(vuint32*)0xa05f6908)
136 #define ASIC_IRQ_DEFAULT 0
void asic_evt_disable_all()
Disable all ASIC events.
int asic_evt_set_handler(uint32 code, asic_evt_handler handler)
Set or remove an ASIC handler.
void asic_shutdown()
Shutdown ASIC events, disabling all hooks.
void asic_evt_enable(uint32 code, int irqlevel)
Enable an ASIC event.
void asic_evt_disable(uint32 code, int irqlevel)
Disable one ASIC event.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
void asic_init()
Init ASIC events.
void(* asic_evt_handler)(uint32 code)
ASIC event handler type.
Definition: asic.h:146