PS2SDK
PS2 Homebrew Libraries
bd_cache.h
1
#ifndef __BDM_CACHE_H__
2
#define __BDM_CACHE_H__
3
4
#include <stdint.h>
5
6
typedef
uint64_t u64;
7
typedef
uint16_t u16;
8
typedef
uint8_t u8;
9
10
struct
block_device
11
{
12
void
*priv;
13
char
*name;
14
char
*path;
15
unsigned
int
devNr;
16
unsigned
int
parNr;
17
unsigned
int
parId;
18
unsigned
int
sectorSize;
19
u64 sectorOffset;
20
u64 sectorCount;
21
int (*read)(
struct
block_device
*, u64,
void
*, u16);
22
int (*write)(
struct
block_device
*, u64,
const
void
*, u16);
23
void (*flush)(
struct
block_device
*);
24
int (*stop)(
struct
block_device
*);
25
};
26
27
struct
block_device
*bd_cache_create(
struct
block_device
*bd);
28
void
bd_cache_destroy(
struct
block_device
*cbd);
29
30
#endif
block_device
Definition:
bdm.h:21
iop
fs
libbdm
tests
include
bd_cache.h
Generated on Thu Nov 26 2026 18:49:44 for PS2SDK by
1.8.17