SSBM Decomp
Loading...
Searching...
No Matches
CARDUnlock.c File Reference
#include <dolphin.h>
#include <stdlib.h>
#include "__card.h"
#include <dolphin/card.h>

Macros

#define SEC_AD1(x)
#define SEC_AD2(x)
#define SEC_AD3(x)
#define SEC_BA(x)

Functions

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

Macro Definition Documentation

◆ SEC_AD1

#define SEC_AD1 ( x)
Value:
((u8) (((x) >> 29) & 0x03))
unsigned char u8
Definition types.h:5

◆ SEC_AD2

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

◆ SEC_AD3

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

◆ SEC_BA

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

Function Documentation

◆ ATTRIBUTE_ALIGN()

u8 CardData[352] ATTRIBUTE_ALIGN ( 32 )
static

◆ exnor_1st()

u32 exnor_1st ( u32 data,
u32 rshift )
static

◆ exnor()

u32 exnor ( u32 data,
u32 lshift )
static

◆ bitrev()

u32 bitrev ( u32 data)
static

◆ ReadArrayUnlock()

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

◆ GetInitVal()

u32 GetInitVal ( void )
static

◆ DummyLen()

s32 DummyLen ( void )
static

◆ InitCallback()

void InitCallback ( void * _task)
static

◆ DoneCallback()

void DoneCallback ( void * _task)
static

◆ __CARDUnlock()

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