summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index a92b7f700f..204edb524a 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -38,7 +38,7 @@
38 38
39#define ATA_IOBASE 0x20000000 39#define ATA_IOBASE 0x20000000
40#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20))) 40#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20)))
41#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0xe))) 41#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0x1c)))
42 42
43#define ATA_ERROR (*((volatile unsigned short*)(ATA_IOBASE + 0x22))) 43#define ATA_ERROR (*((volatile unsigned short*)(ATA_IOBASE + 0x22)))
44#define ATA_NSECTOR (*((volatile unsigned short*)(ATA_IOBASE + 0x24))) 44#define ATA_NSECTOR (*((volatile unsigned short*)(ATA_IOBASE + 0x24)))
@@ -247,7 +247,7 @@ static bool poweroff = false;
247#ifdef HAVE_ATA_POWER_OFF 247#ifdef HAVE_ATA_POWER_OFF
248static int poweroff_timeout = 2*HZ; 248static int poweroff_timeout = 2*HZ;
249#endif 249#endif
250static char ata_stack[DEFAULT_STACK_SIZE]; 250static long ata_stack[DEFAULT_STACK_SIZE/sizeof(long)];
251static const char ata_thread_name[] = "ata"; 251static const char ata_thread_name[] = "ata";
252static struct event_queue ata_queue; 252static struct event_queue ata_queue;
253static bool initialized = false; 253static bool initialized = false;