We are still looking for competent contributors (JPN and 480p results especially)

for our compatibility list ( http://crediar.no-ip.com/gc )

Please come to #DM on efnet if you want to help!

updated DM to version 2.2

*Added code to prevent drives going into sleep mode


git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@19 be6c1b03-d731-4111-a574-e37d80d43941
This commit is contained in:
crediar@rypp.net 2012-07-18 14:57:28 +00:00
parent 07f92c2489
commit 772f3001ac
3 changed files with 15 additions and 3 deletions

13
dip.c
View File

@ -44,6 +44,8 @@ void DIInit( void )
write32( DI_SCONFIG, 0xFF );
write32( DI_SCOVER, 0 );
write32( HW_TIMER, 0 );
}
u32 DIUpdateRegisters( void )
{
@ -307,7 +309,9 @@ u32 DIUpdateRegisters( void )
write32( HW_ARMIRQFLAG, read32(HW_ARMIRQFLAG) );
set32( 0x0d80000C, (1<<2) );
}
write32( HW_TIMER, 0 );
} break;
default:
{
@ -326,5 +330,12 @@ u32 DIUpdateRegisters( void )
}
}
if( (u64)read32(HW_TIMER) >= 2 * 60 * 243000000LL / 128 )
{
USBStorage_Read_Sectors( 23, 1, (void*)0x1000 );
write32( HW_TIMER, 0 );
}
return 0;
}

1
dip.h
View File

@ -13,6 +13,7 @@
#include "Config.h"
#include "DVD.h"
#include "elf.h"
#include "usbstorage.h"
enum opcodes
{

View File

@ -14,8 +14,8 @@
#define REALNAND 1
#define PADHOOK 1
#define CONFIG_VERSION 0x00000001
#define DM_VERSION 0x00020001
#define CONFIG_VERSION 0x00000002
#define DM_VERSION 0x00020002
#define DI_SUCCESS 1
#define DI_ERROR 2