ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
libsecr-common.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright (c) 2009 jimmikaelkael
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __LIBSECR_COMMON_H__
17 #define __LIBSECR_COMMON_H__
18 
19 #include <tamtypes.h>
20 
22 typedef struct SecrBitBlockData{
29 
30 typedef struct SecrBitTableHeader{
39 
41 typedef struct SecrBitTable {
44  SecrBitBlockData_t blocks[63];
46 
48 typedef struct KELF_Header{
49  u8 UserHeader[16];
61 
62 int SecrCardBootHeader(int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize);
63 int SecrCardBootBlock(void *src, void *dst, unsigned int size);
64 void *SecrCardBootFile(int port, int slot, void *buffer);
65 int SecrDiskBootHeader(void *buffer, SecrBitTable_t *BitTable, s32 *pSize);
66 int SecrDiskBootBlock(void *src, void *dst, unsigned int size);
67 void *SecrDiskBootFile(void *buffer);
68 
69 /* FOLLOWING EXPORTS ARE ONLY AVAILABLE IN SPECIAL SECRMAN OR FREESECR */
70 int SecrDownloadHeader(int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize);
71 int SecrDownloadBlock(void *src, unsigned int size);
72 void *SecrDownloadFile(int port, int slot, void *buffer);
73 int SecrDownloadGetKbit(int port, int slot, void *kbit);
74 int SecrDownloadGetKc(int port, int slot, void *kbit);
75 int SecrDownloadGetICVPS2(void *icvps2);
76 
77 #endif /* __LIBSECR_COMMON_H__ */
s32 slot
Definition: libpad.c:176
s32 port
Definition: libpad.c:176
int SecrCardBootBlock(void *src, void *dst, unsigned int size)
int SecrDiskBootHeader(void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
int SecrDownloadHeader(int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
void * SecrDiskBootFile(void *buffer)
int SecrDiskBootBlock(void *src, void *dst, unsigned int size)
int SecrCardBootHeader(int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
void * SecrCardBootFile(int port, int slot, void *buffer)
int SecrDownloadGetKbit(int port, int slot, void *kbit)
int SecrDownloadGetICVPS2(void *icvps2)
int SecrDownloadBlock(void *src, unsigned int size)
int SecrDownloadGetKc(int port, int slot, void *kbit)
void * SecrDownloadFile(int port, int slot, void *buffer)
void checksum()
u8 buffer[128]
Definition: rpc_client.c:19
SecrBitTableHeader_t header
signed int s32
Definition: tamtypes.h:58
unsigned int u32
Definition: tamtypes.h:30
unsigned short u16
Definition: tamtypes.h:24
unsigned char u8
Definition: tamtypes.h:23