diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-08 21:23:53 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-08 21:23:53 +0000 |
commit | e4dbcc414b4b91ceb6b5e80a4ad49e4270fee096 (patch) | |
tree | 3165e08718b10840ac466821664852be8ba6d784 /firmware/target/arm/imx31 | |
parent | d09818d745835653c2f7ff24547101c0833800d4 (diff) | |
download | rockbox-e4dbcc414b4b91ceb6b5e80a4ad49e4270fee096.tar.gz rockbox-e4dbcc414b4b91ceb6b5e80a4ad49e4270fee096.zip |
FS#12418 - Merge prototypes from ata-target.h files into new file ata-driver.h. After this change:
- ata.h is for users of ata.c
- ata-driver.h is for functions implemented by target-specific code and used by ata.c
- ata-target.h is for target-specific defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31182 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31')
-rw-r--r-- | firmware/target/arm/imx31/ata-imx31.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/imx31/ata-target.h | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/firmware/target/arm/imx31/ata-imx31.c b/firmware/target/arm/imx31/ata-imx31.c index 8a40c924ff..80539b9c9d 100644 --- a/firmware/target/arm/imx31/ata-imx31.c +++ b/firmware/target/arm/imx31/ata-imx31.c | |||
@@ -25,9 +25,8 @@ | |||
25 | #include "system.h" | 25 | #include "system.h" |
26 | #include "power.h" | 26 | #include "power.h" |
27 | #include "panic.h" | 27 | #include "panic.h" |
28 | #include "ata.h" | 28 | #include "ata-driver.h" |
29 | #include "ata-defines.h" | 29 | #include "ata-defines.h" |
30 | #include "ata-target.h" | ||
31 | #include "ccm-imx31.h" | 30 | #include "ccm-imx31.h" |
32 | #ifdef HAVE_ATA_DMA | 31 | #ifdef HAVE_ATA_DMA |
33 | #include "sdma-imx31.h" | 32 | #include "sdma-imx31.h" |
diff --git a/firmware/target/arm/imx31/ata-target.h b/firmware/target/arm/imx31/ata-target.h index 24141c6aa7..6893e83198 100644 --- a/firmware/target/arm/imx31/ata-target.h +++ b/firmware/target/arm/imx31/ata-target.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef ATA_TARGET_H | 21 | #ifndef ATA_TARGET_H |
22 | #define ATA_TARGET_H | 22 | #define ATA_TARGET_H |
23 | 23 | ||
24 | #include "config.h" | ||
25 | |||
24 | #ifdef BOOTLOADER | 26 | #ifdef BOOTLOADER |
25 | #define ATA_DRIVER_CLOSE | 27 | #define ATA_DRIVER_CLOSE |
26 | #endif | 28 | #endif |
@@ -46,12 +48,8 @@ | |||
46 | #define ATA_COMMAND ATA_DRIVE_COMMAND | 48 | #define ATA_COMMAND ATA_DRIVE_COMMAND |
47 | #define ATA_CONTROL ATA_DRIVE_CONTROL | 49 | #define ATA_CONTROL ATA_DRIVE_CONTROL |
48 | 50 | ||
49 | void ata_reset(void); | ||
50 | void ata_device_init(void); | ||
51 | bool ata_is_coldstart(void); | ||
52 | 51 | ||
53 | #define ATA_SET_DEVICE_FEATURES | 52 | #define ATA_SET_PIO_TIMING |
54 | void ata_set_pio_timings(int mode); | ||
55 | 53 | ||
56 | #define ATA_TARGET_POLLING | 54 | #define ATA_TARGET_POLLING |
57 | 55 | ||