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/ata-target.h | |
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/ata-target.h')
-rw-r--r-- | firmware/target/arm/ata-target.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/firmware/target/arm/ata-target.h b/firmware/target/arm/ata-target.h index 779ebed070..616c451579 100644 --- a/firmware/target/arm/ata-target.h +++ b/firmware/target/arm/ata-target.h | |||
@@ -19,6 +19,11 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #ifndef ATA_TARGET_H | ||
23 | #define ATA_TARGET_H | ||
24 | |||
25 | #include "config.h" | ||
26 | |||
22 | #ifdef CPU_PP | 27 | #ifdef CPU_PP |
23 | 28 | ||
24 | #ifdef HAVE_BOOTLOADER_USB_MODE | 29 | #ifdef HAVE_BOOTLOADER_USB_MODE |
@@ -49,17 +54,11 @@ | |||
49 | /* asm optimized reading and writing */ | 54 | /* asm optimized reading and writing */ |
50 | #define ATA_OPTIMIZED_READING | 55 | #define ATA_OPTIMIZED_READING |
51 | #define ATA_OPTIMIZED_WRITING | 56 | #define ATA_OPTIMIZED_WRITING |
52 | void copy_read_sectors(unsigned char* buf, int wordcount); | ||
53 | void copy_write_sectors(const unsigned char* buf, int wordcount); | ||
54 | 57 | ||
55 | #endif /* CONFIG_CPU */ | 58 | #endif /* CONFIG_CPU */ |
56 | 59 | ||
57 | #endif | 60 | #endif |
58 | 61 | ||
59 | void ata_reset(void); | ||
60 | bool ata_is_coldstart(void); | ||
61 | void ata_device_init(void); | ||
62 | |||
63 | #ifdef HAVE_ATA_DMA | 62 | #ifdef HAVE_ATA_DMA |
64 | 63 | ||
65 | /* IDE DMA controller registers */ | 64 | /* IDE DMA controller registers */ |
@@ -88,8 +87,6 @@ void ata_device_init(void); | |||
88 | #define ATA_MAX_UDMA 1 | 87 | #define ATA_MAX_UDMA 1 |
89 | #endif | 88 | #endif |
90 | 89 | ||
91 | void ata_dma_set_mode(unsigned char mode); | ||
92 | bool ata_dma_setup(void *addr, unsigned long bytes, bool write); | ||
93 | bool ata_dma_finish(void); | ||
94 | |||
95 | #endif /* HAVE_ATA_DMA */ | 90 | #endif /* HAVE_ATA_DMA */ |
91 | |||
92 | #endif /* ATA_TARGET_H */ | ||