PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
bdm.h File Reference
#include <irx.h>
#include <types.h>
+ Include dependency graph for bdm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  block_device
 
struct  file_system
 

Macros

#define bdm_IMPORTS_start   DECLARE_IMPORT_TABLE(bdm, 1, 1)
 
#define bdm_IMPORTS_end   END_IMPORT_TABLE
 
#define I_bdm_connect_bd   DECLARE_IMPORT(4, bdm_connect_bd)
 
#define I_bdm_disconnect_bd   DECLARE_IMPORT(5, bdm_disconnect_bd)
 
#define I_bdm_connect_fs   DECLARE_IMPORT(6, bdm_connect_fs)
 
#define I_bdm_disconnect_fs   DECLARE_IMPORT(7, bdm_disconnect_fs)
 
#define I_bdm_get_bd   DECLARE_IMPORT(8, bdm_get_bd)
 
#define I_bdm_RegisterCallback   DECLARE_IMPORT(9, bdm_RegisterCallback)
 

Typedefs

typedef void(* bdm_cb) (int event)
 

Functions

void bdm_connect_bd (struct block_device *bd)
 
void bdm_disconnect_bd (struct block_device *bd)
 
void bdm_connect_fs (struct file_system *fs)
 
void bdm_disconnect_fs (struct file_system *fs)
 
void bdm_get_bd (struct block_device **pbd, unsigned int count)
 
void bdm_RegisterCallback (bdm_cb cb)
 

Detailed Description

IOP BDM (Block Device Manager) definitions.

Definition in file bdm.h.

Macro Definition Documentation

◆ bdm_IMPORTS_start

#define bdm_IMPORTS_start   DECLARE_IMPORT_TABLE(bdm, 1, 1)

Definition at line 67 of file bdm.h.

◆ bdm_IMPORTS_end

#define bdm_IMPORTS_end   END_IMPORT_TABLE

Definition at line 68 of file bdm.h.

◆ I_bdm_connect_bd

#define I_bdm_connect_bd   DECLARE_IMPORT(4, bdm_connect_bd)

Definition at line 70 of file bdm.h.

◆ I_bdm_disconnect_bd

#define I_bdm_disconnect_bd   DECLARE_IMPORT(5, bdm_disconnect_bd)

Definition at line 71 of file bdm.h.

◆ I_bdm_connect_fs

#define I_bdm_connect_fs   DECLARE_IMPORT(6, bdm_connect_fs)

Definition at line 72 of file bdm.h.

◆ I_bdm_disconnect_fs

#define I_bdm_disconnect_fs   DECLARE_IMPORT(7, bdm_disconnect_fs)

Definition at line 73 of file bdm.h.

◆ I_bdm_get_bd

#define I_bdm_get_bd   DECLARE_IMPORT(8, bdm_get_bd)

Definition at line 74 of file bdm.h.

◆ I_bdm_RegisterCallback

#define I_bdm_RegisterCallback   DECLARE_IMPORT(9, bdm_RegisterCallback)

Definition at line 75 of file bdm.h.

Typedef Documentation

◆ bdm_cb

typedef void(* bdm_cb) (int event)

Definition at line 57 of file bdm.h.

Function Documentation

◆ bdm_connect_bd()

void bdm_connect_bd ( struct block_device bd)

Definition at line 50 of file bdm.c.

◆ bdm_disconnect_bd()

void bdm_disconnect_bd ( struct block_device bd)

Definition at line 68 of file bdm.c.

◆ bdm_connect_fs()

void bdm_connect_fs ( struct file_system fs)

Definition at line 96 of file bdm.c.

◆ bdm_disconnect_fs()

void bdm_disconnect_fs ( struct file_system fs)

Definition at line 113 of file bdm.c.

◆ bdm_get_bd()

void bdm_get_bd ( struct block_device **  pbd,
unsigned int  count 
)

Definition at line 137 of file bdm.c.

◆ bdm_RegisterCallback()

void bdm_RegisterCallback ( bdm_cb  cb)

Definition at line 30 of file bdm.c.