-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1711 from ghaerr/2880
[kernel] Fix to allow booting 2.88M floppy on dosbox
- Loading branch information
Showing
4 changed files
with
71 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _BIOSHD_H | ||
#define _BIOSHD_H | ||
|
||
/* the following must match with /dev minor numbering scheme*/ | ||
#define NUM_MINOR 8 /* max minor devices per drive*/ | ||
#define MINOR_SHIFT 3 /* =log2(NUM_MINOR) shift to get drive num*/ | ||
#define MAX_DRIVES 8 /* <=256/NUM_MINOR*/ | ||
#define DRIVE_HD0 0 | ||
#define DRIVE_FD0 4 /* =MAX_DRIVES/2 first floppy drive*/ | ||
|
||
#define HD_DRIVES 4 /* max hard drives */ | ||
#ifdef CONFIG_ARCH_PC98 | ||
#define FD_DRIVES 4 | ||
#else | ||
#define FD_DRIVES 2 /* max floppy drives */ | ||
#endif | ||
#define NUM_DRIVES (HD_DRIVES+FD_DRIVES) /* max number of drives (<=256/NUM_MINOR) */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters