Jump to content

BIOSPARAMETERBLOCK: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
== BIOSPARAMETERBLOCK ==
BIOS Parameter Block
BIOS Parameter Block


=== Type ===
=== Type ===
  [[OS2 API:DataType:USHORT|USHORT]]  usBytesPerSector;
  [[USHORT]]  usBytesPerSector;
  [[OS2 API:DataType:BYTE|BYTE]]    bSectorsPerCluster;
  [[BYTE]]    bSectorsPerCluster;
  [[OS2 API:DataType:USHORT|USHORT]]   usReservedSectors;
  USHORT  usReservedSectors;
  [[OS2 API:DataType:BYTE|BYTE]]     cFATs;
  BYTE    cFATs;
  [[OS2 API:DataType:USHORT|USHORT]]   cRootEntries;
  USHORT  cRootEntries;
  [[OS2 API:DataType:USHORT|USHORT]]   cSectors;
  USHORT  cSectors;
  [[OS2 API:DataType:BYTE|BYTE]]     bMedia;
  BYTE    bMedia;
  [[OS2 API:DataType:USHORT|USHORT]]   usSectorsPerFAT;
  USHORT  usSectorsPerFAT;
  [[OS2 API:DataType:USHORT|USHORT]]   usSectorsPerTrack;
  USHORT  usSectorsPerTrack;
  [[OS2 API:DataType:USHORT|USHORT]]   cHeads;
  USHORT  cHeads;
  [[OS2 API:DataType:ULONG|ULONG]]    cHiddenSectors;
  [[ULONG]]    cHiddenSectors;
  [[OS2 API:DataType:ULONG|ULONG]]   cLargeSectors;
  ULONG    cLargeSectors;
  [[OS2 API:DataType:BYTE|BYTE]]     abReserved[6];
  BYTE    abReserved[6];
  [[OS2 API:DataType:USHORT|USHORT]]   cCylinders;
  USHORT  cCylinders;
  [[OS2 API:DataType:BYTE|BYTE]]     bDeviceType;
  BYTE    bDeviceType;
  [[OS2 API:DataType:USHORT|USHORT]]   fsDeviceAttr;
  USHORT  fsDeviceAttr;


==== C Declaration Method ====
==== C Declaration Method ====
Line 24: Line 23:
   
   
=== Fields ===
=== Fields ===
{|class="wikitable"
;usBytesPerSector:Number of bytes per sector
|usBytesPerSector||Number of bytes per sector
;bSectorsPerCluster:Number of sectors per cluster
|-
;usReservedSectors:Number of reserved sectors
|bSectorsPerCluster||Number of sectors per cluster
;cFATs:Number of FATs
|-
;cRootEntries:Number of root directory entries
|usReservedSectors||Number of reserved sectors
;cSectors:Number of sectors
|-
;bMedia:Media descriptor
|cFATs||Number of FATs
;usSectorsPerFAT:Number of secctors per FAT
|-
;usSectorsPerTrack:Number of sectors per track
|cRootEntries||Number of root directory entries
;cHeads:Number of heads
|-
;cHiddenSectors:Number of hidden sectors
|cSectors||Number of sectors
;cLargeSectors:Number of large sectors
|-
;abReserved[6]:Reserved
|bMedia||Media descriptor
;cCylinders:Number of cylinders defined for the physical device
|-
;bDeviceType:Physical layout of the specified device
|usSectorsPerFAT||Number of secctors per FAT
::0 48 TPI low-density diskette drive
|-
::1 96 TPI high-density diskette drive
|usSectorsPerTrack||Number of sectors per track
::2 Small (3.5-inch) 720KB drive
|-
::3 8-inch single-density diskette drive
|cHeads||Number of heads
::4 8-inch double-density diskette drive
|-
::5 Fixed disk
|cHiddenSectors||Number of hidden sectors
::6 Tape drive
|-
::7 Other (includes 1.44MB 3.5-inch diskette drive)
|cLargeSectors||Number of large sectors
::8 R/W optical disk
|-
::9 3.5-inch 4.0MB diskette drive (2.88MB formatted)
|abReserved[6]||Reserved
;fsDeviceAttr:A bit field that returns flag information about the specified drive
|-
|cCylinders||Number of cylinders defined for the physical device
|-
|bDeviceType||Physical layout of the specified device
:0   48 TPI low-density diskette drive
:1   96 TPI high-density diskette drive
:2   Small (3.5-inch) 720KB drive
:3   8-inch single-density diskette drive
:4   8-inch double-density diskette drive
:5   Fixed disk
:6   Tape drive
:7   Other (includes 1.44MB 3.5-inch diskette drive)
:8   R/W optical disk
:9   3.5-inch 4.0MB diskette drive (2.88MB formatted)
|-
|fsDeviceAttr||A bit field that returns flag information about the specified drive
:Bit 0  Removable Media flag
:Bit 0  Removable Media flag
:0   Media is removable
::0 Media is removable
:1   Media cannot be removed
::1 Media cannot be removed
:Bit 1  Changeline flag
:Bit 1  Changeline flag
:0   The physical device driver returns the value 0, Unsure if media has changed, from the Media Check function
::0 The physical device driver returns the value 0, Unsure if media has changed, from the Media Check function
:1   Device support determines that the media was removed since the last I/O operation.
::1 Device support determines that the media was removed since the last I/O operation.
|}


[[Category:Data type]]
[[Category:Data type]]

Latest revision as of 13:51, 24 May 2017

BIOS Parameter Block

Type

USHORT   usBytesPerSector;
BYTE     bSectorsPerCluster;
USHORT   usReservedSectors;
BYTE     cFATs;
USHORT   cRootEntries;
USHORT   cSectors;
BYTE     bMedia;
USHORT   usSectorsPerFAT;
USHORT   usSectorsPerTrack;
USHORT   cHeads;
ULONG    cHiddenSectors;
ULONG    cLargeSectors;
BYTE     abReserved[6];
USHORT   cCylinders;
BYTE     bDeviceType;
USHORT   fsDeviceAttr;

C Declaration Method

typedef struct

Fields

usBytesPerSector
Number of bytes per sector
bSectorsPerCluster
Number of sectors per cluster
usReservedSectors
Number of reserved sectors
cFATs
Number of FATs
cRootEntries
Number of root directory entries
cSectors
Number of sectors
bMedia
Media descriptor
usSectorsPerFAT
Number of secctors per FAT
usSectorsPerTrack
Number of sectors per track
cHeads
Number of heads
cHiddenSectors
Number of hidden sectors
cLargeSectors
Number of large sectors
abReserved[6]
Reserved
cCylinders
Number of cylinders defined for the physical device
bDeviceType
Physical layout of the specified device
0 48 TPI low-density diskette drive
1 96 TPI high-density diskette drive
2 Small (3.5-inch) 720KB drive
3 8-inch single-density diskette drive
4 8-inch double-density diskette drive
5 Fixed disk
6 Tape drive
7 Other (includes 1.44MB 3.5-inch diskette drive)
8 R/W optical disk
9 3.5-inch 4.0MB diskette drive (2.88MB formatted)
fsDeviceAttr
A bit field that returns flag information about the specified drive
Bit 0 Removable Media flag
0 Media is removable
1 Media cannot be removed
Bit 1 Changeline flag
0 The physical device driver returns the value 0, Unsure if media has changed, from the Media Check function
1 Device support determines that the media was removed since the last I/O operation.