Nut/OS  4.10.3
API Reference
dospart.h File Reference

DOS partition table definitions. More...

#include <sys/types.h>
#include <stdint.h>
Include dependency graph for dospart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _DOSPART
 Partition table entry. More...

Defines

#define DOSPART_TYPEPOS   54
 Position of the type specifier in the partition boot record.
#define DOSPART_SECTORPOS   446
 Position of the partition table in the master boot record.
#define DOSPART_MAGICPOS   510
 Position of the cookie in the boot sector.

Typedefs

typedef struct _DOSPART DOSPART
 Partition table entry.

Known partition types.

#define PTYPE_EMPTY   0x00
#define PTYPE_FAT12   0x01
#define PTYPE_FAT16   0x04
#define PTYPE_DOS_EXT   0x05
#define PTYPE_FAT16_BIG   0x06
#define PTYPE_IFS   0x07
#define PTYPE_OS2V1   0x08
#define PTYPE_AIXDATA   0x09
#define PTYPE_OS2BM   0x0A
#define PTYPE_FAT32   0x0B
#define PTYPE_FAT32_LBA   0x0C
#define PTYPE_FAT16_LBA   0x0E
#define PTYPE_EXT_LBA   0x0F
#define PTYPE_OPUS   0x10
#define PTYPE_FAT12_HIDDEN   0x11
#define PTYPE_OEM   0x12
#define PTYPE_FAT16_HIDDEN   0x14
#define PTYPE_FAT16_BIGH   0x16
#define PTYPE_IFS_HIDDEN   0x17
#define PTYPE_AST_SLEEP   0x18
#define PTYPE_FAT32_HIDDEN   0x1B
#define PTYPE_FAT32_LBAH   0x1C
#define PTYPE_FAT16_LBAH   0x1E
#define PTYPE_DOS33_NEC   0x24
#define PTYPE_JFS   0x35
#define PTYPE_MINIX   0x41
#define PTYPE_DYN   0x42
#define PTYPE_UNIX_SYSV   0x63
#define PTYPE_LINUX_SWAP   0x82
#define PTYPE_LINUX   0x83
#define PTYPE_PM_HIBERNATE   0x84
#define PTYPE_LINUX_EXT   0x85
#define PTYPE_FAT16_MULTI   0x86
#define PTYPE_NTFS_MULTI   0x87
#define PTYPE_LT_HIBERNATE   0xA0
#define PTYPE_BSD   0xA5
#define PTYPE_OPENBSD   0xA6
#define PTYPE_MACOSX   0xA8
#define PTYPE_NETBSD   0xA9
#define PTYPE_MACOSX_BOOT   0xAB
#define PTYPE_BSD_SWAP   0xB8
#define PTYPE_CPM86   0xD8
#define PTYPE_DATA   0xDA
#define PTYPE_DRCPM   0xDB
#define PTYPE_OEM_DELL   0xDE
#define PTYPE_GPT   0xEE
#define PTYPE_EFI   0xEF
#define PTYPE_OEM_IBM   0xFE

Detailed Description

DOS partition table definitions.

 *
 * $Log$
 * Revision 1.3  2008/08/11 07:00:19  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 *
 * Revision 1.2  2008/07/14 13:09:30  haraldkipp
 * Allow small MultiMedia Cards without partition table.
 *
 * Revision 1.1  2006/01/05 16:32:26  haraldkipp
 * First check-in.
 *
 *
 * 

Definition in file dospart.h.