|
|
|
|
|
|
|
||
|
||
|
|
||
May 1999 |
Revision 1.00 |
|
Persistor Instruments Inc. |
© 1998 All rights reserved. |
|
![]()
#define MBR_MAX_PARTS 4 // max partitions on a storage device
enum
{
mbrErrorStart = MBR_ERRORS
, mbrInvalidPartitionIndex // invalid partition index (>= MBR_MAX_PARTS)
, mbrInvalidDOSPrtnSector // MBR is not valid DOS partition sector
, mbrNotDOSPartitionType // partition is not valid DOS type
};
Description
|
Prototype: |
short MBRReadPartitionSector(ushort ssdid, ulong sector, uchar *psectbuf); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
short MBRWritePartitionSector(ushort ssdid, ulong sector, uchar *psectbuf); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
short MBRReadPartitionTable(ushort ssdid, ulong sector, void *ptab); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
short MBRWritePartitionTable(ushort ssdid, ulong sector, void *ptab); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
long MBRGetUsableSectors(ushort ssdid); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
short MBRGetPartitionSectors(ushort ssdid, ulong sector, ushort prtn, bool onlyDOS, ulong *firstSect, ulong *lastSect); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void MBRCalcHSC(ulong sector, ushort spt, ushort heads, uchar *head, ushort *sectcyl); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
sector XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
short MBRMakePartitions(ushort ssdid, ulong sector, void *ptab); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void MBRDisplayBootRecord(ushort ssdid); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
ssdid XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
|
|
|
|
|
|
Tel: 508-759-6434 |
|
Fax: 508-759-6436 |
|
|
||