forked from len0rd/rockbox
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
|
@ -32,7 +32,7 @@
|
|||
#include "power.h"
|
||||
#include "string.h"
|
||||
#include "ata_idle_notify.h"
|
||||
#include "ata-target.h"
|
||||
#include "ata-driver.h"
|
||||
#include "ata-defines.h"
|
||||
#include "storage.h"
|
||||
|
||||
|
@ -240,8 +240,6 @@ STATICIRAM ICODE_ATTR int wait_for_rdy(void)
|
|||
return 0; /* timeout */
|
||||
}
|
||||
#else
|
||||
extern int ata_wait_for_bsy(void);
|
||||
extern int ata_wait_for_rdy(void);
|
||||
#define wait_for_bsy ata_wait_for_bsy
|
||||
#define wait_for_rdy ata_wait_for_rdy
|
||||
#endif
|
||||
|
@ -1265,7 +1263,7 @@ static int set_features(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef ATA_SET_DEVICE_FEATURES
|
||||
#ifdef ATA_SET_PIO_TIMING
|
||||
ata_set_pio_timings(pio_mode);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue