PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
bd_defrag.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 __BDM_DEFRAG_H__
16#define __BDM_DEFRAG_H__
17
18
19#include <tamtypes.h>
20#include <bdm.h>
21#include <usbhdfsd-common.h>
22
23
24int bd_defrag_read(struct block_device* bd, u32 fragcount, struct bd_fragment* fraglist, u64 sector, void* buffer, u16 count);
25int bd_defrag_write(struct block_device* bd, u32 fragcount, struct bd_fragment* fraglist, u64 sector, const void* buffer, u16 count);
26
27// For backwards compatibility:
28#define bd_defrag bd_defrag_read
29
30#endif
u32 count
start sector of fragmented bd/file