19typedef void (*acAtaDone)(
acAtaT ata,
void *arg,
int ret);
37 int (*ao_command)(
struct ac_ata_h *atah,
int cmdpri,
int pri);
38 void (*ao_done)(
struct ac_ata_h *atah,
int result);
39 int (*ao_error)(
struct ac_ata_h *atah,
int ret);
42typedef acUint16 acAtaCommandData;
43typedef acAtaCommandData *acAtaCommandT;
49 acAtaCommandData ac_command[6];
55typedef void (*acAtapiDone)(
acAtapiT atapi,
void *arg,
int ret);
74typedef volatile acUint16 *acAtaReg;
76extern int acAtaModuleRestart(
int argc,
char **argv);
77extern int acAtaModuleStart(
int argc,
char **argv);
78extern int acAtaModuleStatus();
79extern int acAtaModuleStop();
80extern acAtaT acAtaSetup(
acAtaData *ata, acAtaDone done,
void *arg,
unsigned int tmout);
81extern int acAtaRequest(
acAtaT ata,
int flag, acAtaCommandData *cmd,
int item,
void *buf,
int size);
82extern int acAtaRequestI(
acAtaT ata,
int flag, acAtaCommandData *cmd,
int item,
void *buf,
int size);
83extern acAtaCommandData *acAtaReply(
acAtaT ata);
84extern int acAtaStatus(
acAtaT ata);
85extern acAtapiT acAtapiSetup(
acAtapiData *atapi, acAtapiDone done,
void *arg,
unsigned int tmout);
88extern int acAtapiStatus(
acAtapiT atapi);
89extern int ata_probe(acAtaReg atareg);
91#define acata_IMPORTS_start DECLARE_IMPORT_TABLE(acata, 1, 1)
92#define acata_IMPORTS_end END_IMPORT_TABLE
94#define I_acAtaModuleRestart DECLARE_IMPORT(4, acAtaModuleRestart)
95#define I_acAtaModuleStart DECLARE_IMPORT(5, acAtaModuleStart)
96#define I_acAtaModuleStatus DECLARE_IMPORT(6, acAtaModuleStatus)
97#define I_acAtaModuleStop DECLARE_IMPORT(7, acAtaModuleStop)
98#define I_acAtaSetup DECLARE_IMPORT(8, acAtaSetup)
99#define I_acAtaRequest DECLARE_IMPORT(9, acAtaRequest)
100#define I_acAtaRequestI DECLARE_IMPORT(10, acAtaRequestI)
101#define I_acAtaReply DECLARE_IMPORT(11, acAtaReply)
102#define I_acAtaStatus DECLARE_IMPORT(12, acAtaStatus)
103#define I_acAtapiSetup DECLARE_IMPORT(13, acAtapiSetup)
104#define I_acAtapiRequest DECLARE_IMPORT(14, acAtapiRequest)
105#define I_acAtapiRequestI DECLARE_IMPORT(15, acAtapiRequestI)
106#define I_acAtapiStatus DECLARE_IMPORT(16, acAtapiStatus)
107#define I_ata_probe DECLARE_IMPORT(17, ata_probe)