summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2012-05-08 15:58:09 +0200
committerNils Wallménius <nils@rockbox.org>2012-05-08 22:46:12 +0200
commit2dda258f99cb5575724d26a32077dad92fb8e181 (patch)
treed688a64b8860d0c6ddc845140657feff4c1c995e /firmware/drivers/ata.c
parentb371b705c76eaa641325b517154a20c374ce41da (diff)
downloadrockbox-2dda258f99cb5575724d26a32077dad92fb8e181.tar.gz
rockbox-2dda258f99cb5575724d26a32077dad92fb8e181.zip
Remove STATICIRAM hack
It was only needed by the old arm toolchain that we no longer use or support. Change-Id: Id0e6c67477f8834a637079b03cde5fbf9da68b1c Reviewed-on: http://gerrit.rockbox.org/233 Reviewed-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index f567a4bb8a..8dfc8d965d 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -205,7 +205,7 @@ static int set_multiple_mode(int sectors);
static int set_features(void);
#ifndef ATA_TARGET_POLLING
-STATICIRAM ICODE_ATTR int wait_for_bsy(void)
+static ICODE_ATTR int wait_for_bsy(void)
{
long timeout = current_tick + HZ*30;
@@ -220,7 +220,7 @@ STATICIRAM ICODE_ATTR int wait_for_bsy(void)
return 0; /* timeout */
}
-STATICIRAM ICODE_ATTR int wait_for_rdy(void)
+static ICODE_ATTR int wait_for_rdy(void)
{
long timeout;
@@ -244,7 +244,7 @@ STATICIRAM ICODE_ATTR int wait_for_rdy(void)
#define wait_for_rdy ata_wait_for_rdy
#endif
-STATICIRAM ICODE_ATTR int wait_for_start_of_transfer(void)
+static ICODE_ATTR int wait_for_start_of_transfer(void)
{
if (!wait_for_bsy())
return 0;
@@ -252,7 +252,7 @@ STATICIRAM ICODE_ATTR int wait_for_start_of_transfer(void)
return (ATA_IN8(ATA_ALT_STATUS) & (STATUS_BSY|STATUS_DRQ)) == STATUS_DRQ;
}
-STATICIRAM ICODE_ATTR int wait_for_end_of_transfer(void)
+static ICODE_ATTR int wait_for_end_of_transfer(void)
{
if (!wait_for_bsy())
return 0;
@@ -275,7 +275,7 @@ static void ata_led(bool on)
#endif
#ifndef ATA_OPTIMIZED_READING
-STATICIRAM ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount)
+static ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount)
{
unsigned short tmp = 0;
@@ -307,7 +307,7 @@ STATICIRAM ICODE_ATTR void copy_read_sectors(unsigned char* buf, int wordcount)
#endif /* !ATA_OPTIMIZED_READING */
#ifndef ATA_OPTIMIZED_WRITING
-STATICIRAM ICODE_ATTR void copy_write_sectors(const unsigned char* buf,
+static ICODE_ATTR void copy_write_sectors(const unsigned char* buf,
int wordcount)
{
if ( (unsigned long)buf & 1)