forked from dorimanx/exfat-nofuse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rxrz
committed
Jun 25, 2013
1 parent
20217c0
commit 424825f
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/************************************************************************/ | ||
/* */ | ||
/* PROJECT : exFAT & FAT12/16/32 File System */ | ||
/* FILE : exfat_part.h */ | ||
/* PURPOSE : Header File for exFAT Partition Manager */ | ||
/* */ | ||
/*----------------------------------------------------------------------*/ | ||
/* NOTES */ | ||
/* */ | ||
/*----------------------------------------------------------------------*/ | ||
/* REVISION HISTORY (Ver 0.9) */ | ||
/* */ | ||
/* - 2010.11.15 [Joosun Hahn] : first writing */ | ||
/* */ | ||
/************************************************************************/ | ||
|
||
#ifndef _EXFAT_PART_H | ||
#define _EXFAT_PART_H | ||
|
||
#include "exfat_config.h" | ||
#include "exfat_global.h" | ||
#include "exfat_api.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif /* __cplusplus */ | ||
/*----------------------------------------------------------------------*/ | ||
/* Constant & Macro Definitions */ | ||
/*----------------------------------------------------------------------*/ | ||
|
||
#define MBR_SIGNATURE 0xAA55 | ||
|
||
/*----------------------------------------------------------------------*/ | ||
/* Type Definitions */ | ||
/*----------------------------------------------------------------------*/ | ||
|
||
/* MS-DOS FAT master boot record (512 bytes) */ | ||
typedef struct { | ||
UINT8 boot_code[446]; | ||
UINT8 partition[64]; | ||
UINT8 signature[2]; | ||
} MBR_SECTOR_T; | ||
|
||
/* MS-DOS FAT partition table (64 bytes) */ | ||
typedef struct { | ||
UINT8 def_boot; | ||
UINT8 bgn_chs[3]; | ||
UINT8 sys_type; | ||
UINT8 end_chs[3]; | ||
UINT8 start_sector[4]; | ||
UINT8 num_sectors[4]; | ||
} PART_ENTRY_T; | ||
|
||
/*----------------------------------------------------------------------*/ | ||
/* External Function Declarations */ | ||
/*----------------------------------------------------------------------*/ | ||
|
||
/* volume management functions */ | ||
INT32 ffsSetPartition(INT32 dev, INT32 num_vol, PART_INFO_T *vol_spec); | ||
INT32 ffsGetPartition(INT32 dev, INT32 *num_vol, PART_INFO_T *vol_spec); | ||
INT32 ffsGetDevInfo(INT32 dev, DEV_INFO_T *info); | ||
|
||
/*----------------------------------------------------------------------*/ | ||
/* External Function Declarations (NOT TO UPPER LAYER) */ | ||
/*----------------------------------------------------------------------*/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif /* __cplusplus */ | ||
|
||
#endif /* _EXFAT_PART_H */ | ||
|
||
/* end of exfat_part.h */ |