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:
Boris Gjenero 2011-12-08 21:23:53 +00:00
parent d09818d745
commit e4dbcc414b
25 changed files with 98 additions and 82 deletions

View file

@ -30,7 +30,7 @@
#include <stdbool.h>
#include "system.h"
#include "ata-target.h"
#include "ata-driver.h"
void ata_reset()
{

View file

@ -19,6 +19,9 @@
*
****************************************************************************/
#ifndef ATA_TARGET_H
#define ATA_TARGET_H
/* Plain C read & write loops */
#define ATA_IOBASE 0x02400000
@ -33,7 +36,4 @@
#define ATA_CONTROL (*((volatile unsigned char*)(ATA_IOBASE + 0x340)))
#define ATA_COMMAND (*((volatile unsigned char*)(ATA_IOBASE + 0x380)))
void ata_reset(void);
void ata_enable(bool on);
bool ata_is_coldstart(void);
void ata_device_init(void);
#endif /* ATA_TARGET_H */