forked from len0rd/rockbox
gigabeat related changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8885 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f2fe4e0c4c
commit
8d0a32eb4b
8 changed files with 503 additions and 4 deletions
|
|
@ -252,7 +252,7 @@ int ide_read_register(int reg) {
|
|||
#define PREFER_C_READING
|
||||
#define PREFER_C_WRITING
|
||||
|
||||
#define ATA_IOBASE 0x20000000
|
||||
#define ATA_IOBASE 0x18000000
|
||||
#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE)))
|
||||
#define ATA_ERROR (*((volatile unsigned char*)(ATA_IOBASE + 0x02)))
|
||||
#define ATA_NSECTOR (*((volatile unsigned char*)(ATA_IOBASE + 0x04)))
|
||||
|
|
@ -261,7 +261,7 @@ int ide_read_register(int reg) {
|
|||
#define ATA_HCYL (*((volatile unsigned char*)(ATA_IOBASE + 0x10)))
|
||||
#define ATA_SELECT (*((volatile unsigned char*)(ATA_IOBASE + 0x12)))
|
||||
#define ATA_COMMAND (*((volatile unsigned char*)(ATA_IOBASE + 0x14)))
|
||||
#define ATA_CONTROL (*((volatile unsigned char*)(0x21000000 + 0x1c)))
|
||||
#define ATA_CONTROL (*((volatile unsigned char*)(0x20000000 + 0x1c)))
|
||||
|
||||
#define STATUS_BSY 0x80
|
||||
#define STATUS_RDY 0x40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue