PS2SDK
PS2 Homebrew Libraries
part_driver.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Licenced under Academic Free License version 2.0
7 # Review ps2sdk README & LICENSE files for further details.
8 */
9 
15 #ifndef _PART_DRIVER_H
16 #define _PART_DRIVER_H
17 
18 #include <bdm.h>
19 
20 struct partition
21 {
22  struct block_device *bd;
23 };
24 
25 #define MAX_PARTITIONS 10
26 extern struct partition g_part[MAX_PARTITIONS];
27 extern struct block_device g_part_bd[MAX_PARTITIONS];
28 
29 extern int GetNextFreePartitionIndex();
30 
31 extern int part_connect_mbr(struct block_device *bd);
32 extern int part_connect_gpt(struct block_device *bd);
33 
34 #endif
bdm.h
partition
Definition: part_driver.h:20
block_device
Definition: bdm.h:21