|
Revision 004082b85c0362ab7a47598b889c9d9c4ef570d8, 0.7 KB
(checked in by Shao Miller <shao.miller@…>, 3 years ago)
|
|
[memdisk] Add disk probing code to support a drive shifting limit
Our INT 13h hook will now only shift BIOS drive numbers up to a limit.
This limit is found by probing for a contiguous range of BIOS drives. Anything
above this range of contiguous drive numbers is not shifted, and will thus be
available to callers at the same drive number.
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | /* ----------------------------------------------------------------------- * |
|---|
| 2 | * |
|---|
| 3 | * Copyright 2009 Shao Miller - All Rights Reserved |
|---|
| 4 | * |
|---|
| 5 | * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | * it under the terms of the GNU General Public License as published by |
|---|
| 7 | * the Free Software Foundation, Inc., 53 Temple Place Ste 330, |
|---|
| 8 | * Boston MA 02111-1307, USA; either version 2 of the License, or |
|---|
| 9 | * (at your option) any later version; incorporated herein by reference. |
|---|
| 10 | * |
|---|
| 11 | * ----------------------------------------------------------------------- */ |
|---|
| 12 | |
|---|
| 13 | /* |
|---|
| 14 | * dskprobe.h |
|---|
| 15 | * |
|---|
| 16 | * Routines for probing BIOS disk drives |
|---|
| 17 | */ |
|---|
| 18 | |
|---|
| 19 | #include <stdint.h> |
|---|
| 20 | |
|---|
| 21 | extern uint8_t probe_drive_range(uint8_t); |
|---|