PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
s_q.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include "libspu2_internal.h"
12
13void SpuQuit(void)
14{
15 if ( _spu_isCalled == 1 )
16 {
17#ifndef LIB_1300
18 // Added in OSDSND 110U
19 int v0[2];
20#endif
21
22 _spu_isCalled = 0;
24 _spu_transferCallback = 0;
25 _spu_IRQCallback = 0;
26 _SpuDataCallback(0);
27 _SpuAutoDMACallback(0);
28#ifndef LIB_1300
29 // Added in OSDSND 110U
30 ReleaseIntrHandler(IOP_IRQ_DMA_SPU2);
31 ReleaseIntrHandler(IOP_IRQ_DMA_SPU);
32 ReleaseIntrHandler(IOP_IRQ_SPU);
33 DisableIntr(IOP_IRQ_DMA_SPU2, v0);
34 DisableIntr(IOP_IRQ_DMA_SPU, v0);
35 DisableIntr(IOP_IRQ_SPU, v0);
36#endif
38 }
39}
int CpuEnableIntr()
Definition intrman.c:250
int ReleaseIntrHandler(int irq)
Definition intrman.c:167
int CpuDisableIntr()
Definition intrman.c:238
int DisableIntr(int irq, int *res)
Definition intrman.c:395