PS2SDK
PS2 Homebrew Libraries
hdd.h
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 #
10 # HDD.IRX APA Header file
11 */
12 
13 #ifndef _HDD_H
14 #define _HDD_H
15 
16 typedef struct
17 {
18  iomanX_iop_file_t *f; // used to see if open...
19  u32 post; // offset/post....
20  u16 nsub;
21  u16 type;
22  char id[APA_IDMAX];
23  apa_sub_t parts[APA_MAXSUB+1]; // Partition data (0 = main partition, 1+ = sub-partition)
25 
27 // Function declarations
28 extern int hddCheckPartitionMax(s32 device, u32 size);
29 extern apa_cache_t *hddAddPartitionHere(s32 device, const apa_params_t *params, u32 *EmptyBlocks, u32 sector, int *err);
30 
31 #endif
apa_sub_t
Definition: libapa.h:56
_iomanX_iop_file
Definition: iomanX.h:70
sapa_cache
Definition: libapa.h:120
hdd_file_slot_t
Definition: hdd.h:16
APA_MAXSUB
#define APA_MAXSUB
Definition: hdd-ioctl.h:48
apa_params_t
Definition: libapa.h:135