Skip to content

Commit aca9ca2

Browse files
committed
[ACCDVD] use ATA command macros
1 parent b68d105 commit aca9ca2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • iop/arcade/accdvd/src

iop/arcade/accdvd/src/acd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Review ps2sdk README & LICENSE files for further details.
99
*/
1010

11+
#include <atahw.h>
1112
#include "accdvd_internal.h"
1213

1314
static struct acd_softc Acdc;
@@ -739,7 +740,7 @@ int acd_getstatus()
739740
{
740741
acAtaCommandData v1[4];
741742

742-
v1[1] = 2021;
743+
v1[1] = ATA_C_CHECK_POWER_MODE | 0x700;
743744
v1[0] = (Acdc.drive & 0xFF) | 0x2600;
744745
return acd_ata_request(Acdc.drive | 2, v1, 2, acd_getstatus_done, "getstatus");
745746
}
@@ -833,7 +834,7 @@ static int acd_identify(int drive)
833834

834835
flag = 16 * (drive != 0);
835836
cmd[0] = flag | 0x600;
836-
cmd[1] = 1953;
837+
cmd[1] = ATA_C_IDENTIFY_PACKET_DEVICE | 0x700;
837838
acAtaSetup(&acdata.a_ata, acd_ata_done, 0, 0x4C4B40u);
838839
// cppcheck-suppress unreadVariable
839840
acdata.a_thid = GetThreadId();

0 commit comments

Comments
 (0)