PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
acata_internal.h
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#ifndef _ACATA_INTERNAL_H
12#define _ACATA_INTERNAL_H
13
14#include <acata.h>
15#include <irx_imports.h>
16
18{
19 acQueueHeadData requestq;
20 acUint32 active;
21 acInt32 thid;
22 struct ac_ata_h *atah;
23 acUint16 cprio;
24 acUint16 prio;
25 acTimerData timer;
26};
27
28struct ata_dma
29{
30 acDmaData ad_dma;
31 acAtaT ad_ata;
32 acInt32 ad_thid;
33 acInt32 ad_result;
34 acUint32 ad_state;
35};
36
38{
39 acDmaData ad_dma;
40 acAtapiT ad_atapi;
41 acInt32 ad_thid;
42 acInt32 ad_result;
43 acUint32 ad_state;
44};
45
47{
48 // cppcheck-suppress unusedStructMember
49 acUint8 s_valid;
50 // cppcheck-suppress unusedStructMember
51 acUint8 s_segnum;
52 acUint8 s_key;
53 // cppcheck-suppress unusedStructMember
54 acUint8 s_info[4];
55 // cppcheck-suppress unusedStructMember
56 acUint8 s_aslen;
57 // cppcheck-suppress unusedStructMember
58 acUint8 s_csi[4];
59 acUint8 s_asc;
60 acUint8 s_ascq;
61 // cppcheck-suppress unusedStructMember
62 acUint8 s_fruc;
63 // cppcheck-suppress unusedStructMember
64 acUint8 s_sks[3];
65};
66
67extern int ata_request(struct ac_ata_h *atah, int (*wakeup)(int thid));
68extern int ata_probe(acAtaReg atareg);
69extern int acAtaModuleStart(int argc, char **argv);
70extern int acAtaModuleStop();
71extern int acAtaModuleRestart(int argc, char **argv);
72extern int acAtaModuleStatus();
73
74#endif
Definition acata.h:46