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
17
struct
ata_softc
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
28
struct
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
37
struct
atapi_dma
38
{
39
acDmaData
ad_dma;
40
acAtapiT
ad_atapi;
41
acInt32 ad_thid;
42
acInt32 ad_result;
43
acUint32 ad_state;
44
};
45
46
struct
atapi_sense
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
67
extern
int
ata_request(
struct
ac_ata_h
*atah,
int
(*wakeup)(
int
thid));
68
extern
int
ata_probe(acAtaReg atareg);
69
extern
int
acAtaModuleStart(
int
argc,
char
**argv);
70
extern
int
acAtaModuleStop();
71
extern
int
acAtaModuleRestart(
int
argc,
char
**argv);
72
extern
int
acAtaModuleStatus();
73
74
#endif
ac_ata_h
Definition
acata.h:24
ac_ata
Definition
acata.h:46
ac_atapi
Definition
acata.h:68
ac_dma
Definition
accore.h:62
ac_queue
Definition
accore.h:53
ac_timer
Definition
actimer.h:22
ata_dma
Definition
acata_internal.h:29
ata_softc
Definition
acata_internal.h:18
atapi_dma
Definition
acata_internal.h:38
atapi_sense
Definition
acata_internal.h:47
s_info
Definition
xprintf.c:78
iop
arcade
acata
src
acata_internal.h
Generated on Thu Nov 14 2024 05:25:25 for PS2SDK by
1.9.8