2 Copyright © 2019, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
8 #include <proto/exec.h>
10 /* We want all other bases obtained from our base */
13 #include <hidd/storage.h>
17 #include <devices/ata.h>
21 /* perform the S.M.A.R.T operation specified in io_Reserved1 */
22 void ata_SMARTCmd(struct IOStdReq
*io
)
25 ata_CommandBlock acb
=
28 IOStdReq(io
)->io_Reserved1
,
40 D(bug("[ATA%02ld] %s()\n", ((struct ata_Unit
*)io
->io_Unit
)->au_UnitNum
, __func__
));
42 if (IOStdReq(io
)->io_Reserved1
== SMARTC_READ_VALUES
|| IOStdReq(io
)->io_Reserved1
== SMARTC_READ_THRESHOLDS
) {
43 acb
.buffer
= IOStdReq(io
)->io_Data
;
44 acb
.length
= IOStdReq(io
)->io_Length
;