mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 22:52:28 -05:00
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
This commit is contained in:
parent
d09818d745
commit
e4dbcc414b
25 changed files with 98 additions and 82 deletions
|
|
@ -19,6 +19,11 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef ATA_TARGET_H
|
||||
#define ATA_TARGET_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef CPU_PP
|
||||
|
||||
#ifdef HAVE_BOOTLOADER_USB_MODE
|
||||
|
|
@ -49,17 +54,11 @@
|
|||
/* asm optimized reading and writing */
|
||||
#define ATA_OPTIMIZED_READING
|
||||
#define ATA_OPTIMIZED_WRITING
|
||||
void copy_read_sectors(unsigned char* buf, int wordcount);
|
||||
void copy_write_sectors(const unsigned char* buf, int wordcount);
|
||||
|
||||
#endif /* CONFIG_CPU */
|
||||
|
||||
#endif
|
||||
|
||||
void ata_reset(void);
|
||||
bool ata_is_coldstart(void);
|
||||
void ata_device_init(void);
|
||||
|
||||
#ifdef HAVE_ATA_DMA
|
||||
|
||||
/* IDE DMA controller registers */
|
||||
|
|
@ -88,8 +87,6 @@ void ata_device_init(void);
|
|||
#define ATA_MAX_UDMA 1
|
||||
#endif
|
||||
|
||||
void ata_dma_set_mode(unsigned char mode);
|
||||
bool ata_dma_setup(void *addr, unsigned long bytes, bool write);
|
||||
bool ata_dma_finish(void);
|
||||
|
||||
#endif /* HAVE_ATA_DMA */
|
||||
|
||||
#endif /* ATA_TARGET_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue