#ifndef SPIDS_H #define SPIDS_H #ifdef __cplusplus extern "C" { #endif void ReadKey(u16 key, void *buffer); /* args: key - IdStorage Key * buffer - Buffer[512] to read into */ void WriteKey(u16 key, void *buffer); /* args: key - IdStorage Key * buffer - Buffer[512] to write into */ int CheckDummy(int key); /* args: key - IdStorage Key * returns 0 if key is dummied (00) */ int CheckHW(void); /* returns 0 for TA081/TA079 * returns -1 for TA082 * returns -2 for unknown hw */ int dmpKey(u16 key, char filepath[50]); /* args: key - IdStorage Key * filepath - filepath to dump key into (maximum 50 characters) */ int BrickPSP(void); /* Bricks PSP * Warning this bricks through UP chip * Returns -1 if IdStorage Read Only * Returns 0 for success */ int chkDowngrade(void); /* Checks if run TA082 downgrade */ int chkByte(u16 key, u32 offset, char val); /* args: key - IdStorage Key * offset - Byte # to read * val - value that offset should be * returns 0 is byte is correct * returns -1 if byte is incorrect */ #ifdef __cplusplus } #endif #endif