35 #define SIF_DMA_FROM_IOP 0x0
36 #define SIF_DMA_TO_IOP 0x1
37 #define SIF_DMA_FROM_EE 0x0
38 #define SIF_DMA_TO_EE 0x1
40 #define SIF_DMA_INT_I 0x2
41 #define SIF_DMA_INT_O 0x4
42 #define SIF_DMA_SPR 0x8
43 #define SIF_DMA_BSN 0x10
44 #define SIF_DMA_TAG 0x20
46 #define SIF_REG_ID_SYSTEM 0x80000000
61 #define SIF_STAT_SIFINIT 0x10000
63 #define SIF_STAT_CMDINIT 0x20000
65 #define SIF_STAT_BOOTEND 0x40000
77 extern void sceSifDma2Init();
78 extern void sceSifInit();
80 extern void sceSifSetDChain(
void);
83 extern int sceSifDmaStat(
int trid);
86 #define SifSetDChain sceSifSetDChain
87 #define SifSetDma sceSifSetDma
88 #define SifDmaStat sceSifDmaStat
96 extern void sceSifSendSync();
97 extern int sceSifIsSending();
99 extern void sceSifDma0Transfer(
void *addr,
int size,
int mode);
100 extern void sceSifDma0Sync();
101 extern int sceSifDma0Sending();
103 extern void sceSifDma1Transfer(
void *addr,
int size,
int mode);
104 extern void sceSifDma1Sync();
105 extern int sceSifDma1Sending();
107 extern void sceSifDma2Transfer(
void *addr,
int size,
int mode);
108 extern void sceSifDma2Sync();
109 extern int sceSifDma2Sending();
114 extern u32 sceSifGetMSFlag();
115 extern u32 sceSifSetMSFlag(u32 val);
120 extern u32 sceSifGetSMFlag();
121 extern u32 sceSifSetSMFlag(u32 val);
126 extern u32 sceSifGetMainAddr();
131 extern u32 sceSifGetSubAddr();
132 extern u32 sceSifSetSubAddr(u32 addr);
137 extern void sceSifIntrMain();
139 extern int sceSifCheckInit();
141 extern void sceSifSetDmaIntrHandler(
void (*handler)(
void *userdata),
void *arg);
142 extern void sceSifResetDmaIntrHandler();
145 extern unsigned int sceSifSetDmaIntr(
SifDmaTransfer_t *dmat,
int count,
void (*completioncb)(
void *userdata),
void *userdata);
147 #define sifman_IMPORTS_start DECLARE_IMPORT_TABLE(sifman, 1, 1)
148 #define sifman_IMPORTS_end END_IMPORT_TABLE
150 #define I_sceSifDma2Init DECLARE_IMPORT(4, sceSifDma2Init)
151 #define I_sceSifInit DECLARE_IMPORT(5, sceSifInit)
152 #define I_sceSifSetDChain DECLARE_IMPORT(6, sceSifSetDChain)
153 #define I_sceSifSetDma DECLARE_IMPORT(7, sceSifSetDma)
154 #define I_sceSifDmaStat DECLARE_IMPORT(8, sceSifDmaStat)
155 #define I_sceSifSetOneDma DECLARE_IMPORT(9, sceSifSetOneDma);
156 #define I_sceSifSendSync DECLARE_IMPORT(10, sceSifSendSync);
157 #define I_sceSifIsSending DECLARE_IMPORT(11, sceSifIsSending);
158 #define I_sceSifDma0Transfer DECLARE_IMPORT(12, sceSifDma0Transfer)
159 #define I_sceSifDma0Sync DECLARE_IMPORT(13, sceSifDma0Sync)
160 #define I_sceSifDma0Sending DECLARE_IMPORT(14, sceSifDma0Sending)
161 #define I_sceSifDma1Transfer DECLARE_IMPORT(15, sceSifDma1Transfer)
162 #define I_sceSifDma1Sync DECLARE_IMPORT(16, sceSifDma1Sync)
163 #define I_sceSifDma1Sending DECLARE_IMPORT(17, sceSifDma1Sending)
164 #define I_sceSifDma2Transfer DECLARE_IMPORT(18, sceSifDma2Transfer)
165 #define I_sceSifDma2Sync DECLARE_IMPORT(19, sceSifDma2Sync)
166 #define I_sceSifDma2Sending DECLARE_IMPORT(20, sceSifDma2Sending)
167 #define I_sceSifGetMSFlag DECLARE_IMPORT(21, sceSifGetMSFlag)
168 #define I_sceSifSetMSFlag DECLARE_IMPORT(22, sceSifSetMSFlag)
169 #define I_sceSifGetSMFlag DECLARE_IMPORT(23, sceSifGetSMFlag)
170 #define I_sceSifSetSMFlag DECLARE_IMPORT(24, sceSifSetSMFlag)
171 #define I_sceSifGetMainAddr DECLARE_IMPORT(25, sceSifGetMainAddr)
172 #define I_sceSifGetSubAddr DECLARE_IMPORT(26, sceSifGetSubAddr)
173 #define I_sceSifSetSubAddr DECLARE_IMPORT(27, sceSifSetSubAddr)
174 #define I_sceSifIntrMain DECLARE_IMPORT(28, sceSifIntrMain)
175 #define I_sceSifCheckInit DECLARE_IMPORT(29, sceSifCheckInit)
176 #define I_sceSifSetDmaIntrHandler DECLARE_IMPORT(30, sceSifSetDmaIntrHandler)
177 #define I_sceSifResetDmaIntrHandler DECLARE_IMPORT(31, sceSifResetDmaIntrHandler)
178 #define I_sceSifSetDmaIntr DECLARE_IMPORT(32, sceSifSetDmaIntr)