diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-06-03 21:01:17 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-06-04 01:03:51 +0000 |
commit | 00440f2137775c2c2003893f814d8de44d82e223 (patch) | |
tree | 4e1de22b1ca9e265e236d7e63855bb7220683d18 /firmware/drivers | |
parent | 14f7a958af8c343d96a500c713df34f76fcb9d80 (diff) | |
download | rockbox-00440f2137775c2c2003893f814d8de44d82e223.tar.gz rockbox-00440f2137775c2c2003893f814d8de44d82e223.zip |
ipod6g:: Get rid of magic command numbers in ata driver
Use CMD_* macros instead. Makes the code a bit easier to follow.
No functional change.
Change-Id: Ieb3d8f6fcca503421d3067aafbd0011a908368e0
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a02539c896..cc71ff7347 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -50,6 +50,9 @@ | |||
50 | #define CMD_WRITE_MULTIPLE 0xC5 | 50 | #define CMD_WRITE_MULTIPLE 0xC5 |
51 | #define CMD_WRITE_MULTIPLE_EXT 0x39 | 51 | #define CMD_WRITE_MULTIPLE_EXT 0x39 |
52 | #define CMD_SET_MULTIPLE_MODE 0xC6 | 52 | #define CMD_SET_MULTIPLE_MODE 0xC6 |
53 | #ifdef HAVE_ATA_SMART | ||
54 | #define CMD_SMART | ||
55 | #endif | ||
53 | #define CMD_STANDBY_IMMEDIATE 0xE0 | 56 | #define CMD_STANDBY_IMMEDIATE 0xE0 |
54 | #define CMD_STANDBY 0xE2 | 57 | #define CMD_STANDBY 0xE2 |
55 | #define CMD_IDENTIFY 0xEC | 58 | #define CMD_IDENTIFY 0xEC |