21 extern int xatapi_2_terminate(
int with_quit);
22 extern int xatapi_4_sceAtaSoftReset(
void);
23 extern int xatapi_5_sceAtaExecCmd(
34 extern int xatapi_6_sceAtaWaitResult(
void);
35 extern int xatapi_7_sceCdAtapiExecCmd(s16 n,
void *buf,
int nsec,
int secsize,
void *pkt,
int pkt_len,
int proto);
36 extern int xatapi_8_sceCdAtapiWaitResult(
void);
37 extern void xatapi_9_sceCdSpdAtaDmaStart(
int dir);
38 extern void xatapi_10_sceCdSpdAtaDmaEnd(
void);
39 extern int xatapi_11_sceAtaGetError(
void);
40 extern int xatapi_12_get_ata_control(
void);
41 extern int xatapi_13_get_speed_reg(
int regaddr);
42 extern int xatapi_14_set_speed_reg(
int regaddr, u16 regval);
43 extern int xatapi_15_exec_f6_f9_scsi(
void);
45 #define xatapi_IMPORTS_start DECLARE_IMPORT_TABLE(xatapi, 1, 1)
46 #define xatapi_IMPORTS_end END_IMPORT_TABLE
48 #define I_xatapi_2_terminate DECLARE_IMPORT(2, xatapi_2_terminate)
49 #define I_xatapi_4_sceAtaSoftReset DECLARE_IMPORT(4, xatapi_4_sceAtaSoftReset)
50 #define I_xatapi_5_sceAtaExecCmd DECLARE_IMPORT(5, xatapi_5_sceAtaExecCmd)
51 #define I_xatapi_6_sceAtaWaitResult DECLARE_IMPORT(6, xatapi_6_sceAtaWaitResult)
52 #define I_xatapi_7_sceCdAtapiExecCmd DECLARE_IMPORT(7, xatapi_7_sceCdAtapiExecCmd)
53 #define I_xatapi_8_sceCdAtapiWaitResult DECLARE_IMPORT(8, xatapi_8_sceCdAtapiWaitResult)
54 #define I_xatapi_9_sceCdSpdAtaDmaStart DECLARE_IMPORT(9, xatapi_9_sceCdSpdAtaDmaStart)
55 #define I_xatapi_10_sceCdSpdAtaDmaEnd DECLARE_IMPORT(10, xatapi_10_sceCdSpdAtaDmaEnd)
56 #define I_xatapi_11_sceAtaGetError DECLARE_IMPORT(11, xatapi_11_sceAtaGetError)
57 #define I_xatapi_12_get_ata_control DECLARE_IMPORT(12, xatapi_12_get_ata_control)
58 #define I_xatapi_13_get_speed_reg DECLARE_IMPORT(13, xatapi_13_get_speed_reg)
59 #define I_xatapi_14_set_speed_reg DECLARE_IMPORT(14, xatapi_14_set_speed_reg)
60 #define I_xatapi_15_exec_f6_f9_scsi DECLARE_IMPORT(15, xatapi_15_exec_f6_f9_scsi)