FDOSTUI
FreeDOS Text User Interface
Functions | Variables
hw.h File Reference

Hardware routines. More...

Go to the source code of this file.

Functions

void hw_detect_drives ()
 

Variables

unsigned char _hw_drives [HW_DRIVE_MAX]
 list of available hard drives More...
 

Detailed Description

Hardware routines.

Function Documentation

◆ hw_detect_drives()

void hw_detect_drives ( )

Initializes the _hw_drives array

Variable Documentation

◆ _hw_drives

_hw_drives

list of available hard drives

There are 26 possible hard drives. _hw_drives contains an array of drive availability. A value of 1 indicates the drive is available. Otherwise, a 0 indicates it is absent.

Drive letters are number alphabetically 'A' through 'Z.' Index 0 represents drive 'A,' index 1 represents drive 'B,' and so on.

In the future, the value may indicate a bit mask of the type of drive, such as removable.