SSBM Decomp
Loading...
Searching...
No Matches
CARDUnlock.c File Reference
#include "CARDUnlock.h"
#include "CARDMount.h"
#include <__mem.h>
#include <rand.h>
#include <dolphin/card.h>
#include <dolphin/dsp/dsp.h>
#include <dolphin/os.h>
#include <dolphin/os/OSCache.h>
#include <dolphin/os/OSExi.h>
#include <dolphin/os/OSTime.h>

Data Structures

struct  DecodeParameters
 

Macros

#define SEC_AD1(x)   ((u8) (((x) >> 29) & 0x03))
 
#define SEC_AD2(x)   ((u8) (((x) >> 21) & 0xff))
 
#define SEC_AD3(x)   ((u8) (((x) >> 19) & 0x03))
 
#define SEC_BA(x)   ((u8) (((x) >> 12) & 0x7f))
 

Functions

static u8 CardData[] ATTRIBUTE_ALIGN (32)
 
u32 bitrev (u32 data)
 
s32 ReadArrayUnlock (s32 chan, u32 data, void *rbuf, s32 rlen, s32 mode)
 
s32 DummyLen (void)
 
u32 exnor_1st (u32 data, u32 rshift)
 
u32 exnor (u32 data, u32 lshift)
 
static void InitCallback (void *task)
 
static void DoneCallback (void *task)
 
u32 GetInitVal (void)
 
s32 __CARDUnlock (s32 chan, u8 flashID[12])
 

Macro Definition Documentation

◆ SEC_AD1

#define SEC_AD1 (   x)    ((u8) (((x) >> 29) & 0x03))

◆ SEC_AD2

#define SEC_AD2 (   x)    ((u8) (((x) >> 21) & 0xff))

◆ SEC_AD3

#define SEC_AD3 (   x)    ((u8) (((x) >> 19) & 0x03))

◆ SEC_BA

#define SEC_BA (   x)    ((u8) (((x) >> 12) & 0x7f))

Function Documentation

◆ ATTRIBUTE_ALIGN()

static u8 CardData[] ATTRIBUTE_ALIGN ( 32  )
static

◆ bitrev()

u32 bitrev ( u32  data)

◆ ReadArrayUnlock()

s32 ReadArrayUnlock ( s32  chan,
u32  data,
void *  rbuf,
s32  rlen,
s32  mode 
)

◆ DummyLen()

s32 DummyLen ( void  )

◆ exnor_1st()

u32 exnor_1st ( u32  data,
u32  rshift 
)
inline

◆ exnor()

u32 exnor ( u32  data,
u32  lshift 
)
inline

◆ InitCallback()

static void InitCallback ( void *  task)
static

◆ DoneCallback()

static void DoneCallback ( void *  task)
static

◆ GetInitVal()

u32 GetInitVal ( void  )
inline

◆ __CARDUnlock()

s32 __CARDUnlock ( s32  chan,
u8  flashID[12] 
)