The Pedigree Project 0.1
Classes | Macros | Functions
msdos.h File Reference
#include "pedigree/kernel/processor/types.h"
+ Include dependency graph for msdos.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __attribute__
 

Macros

#define MSDOS_IDENT_1   0x55
 
#define MSDOS_IDENT_2   0xAA
 
#define MSDOS_PARTTAB_START   0x1BE
 
#define MSDOS_PARTTAB_NUM   0x4
 
#define MSDOS_EXT_PARTTAB_NUM   0x2
 

Functions

bool msdosProbeDisk (Disk *pDisk)
 
bool msdosReadTable (MsdosPartitionInfo *pPartitions, Disk *pDisk)
 

Detailed Description

Declares functions for probing Disk devices for MS-DOS partition tables.

Definition in file msdos.h.

Macro Definition Documentation

◆ MSDOS_EXT_PARTTAB_NUM

#define MSDOS_EXT_PARTTAB_NUM   0x2

Definition at line 38 of file msdos.h.

◆ MSDOS_IDENT_1

#define MSDOS_IDENT_1   0x55

Definition at line 31 of file msdos.h.

◆ MSDOS_IDENT_2

#define MSDOS_IDENT_2   0xAA

Definition at line 32 of file msdos.h.

◆ MSDOS_PARTTAB_NUM

#define MSDOS_PARTTAB_NUM   0x4

Definition at line 37 of file msdos.h.

◆ MSDOS_PARTTAB_START

#define MSDOS_PARTTAB_START   0x1BE

Definition at line 35 of file msdos.h.

Function Documentation

◆ msdosProbeDisk()

bool msdosProbeDisk ( Disk *  pDisk)

Attempts to find a MS-DOS partition table on pDisk. If found, new Partition objects are created and added as children of pDisk.

Returns
true if a ms-dos partition table was found.

Definition at line 390 of file msdos.cc.

References Disk::getNativeBlockSize().

◆ msdosReadTable()

bool msdosReadTable ( MsdosPartitionInfo *  pPartitions,
Disk *  pDisk 
)

Given a partition table, read and parse the contents.

Definition at line 372 of file msdos.cc.