ReactOS 0.4.16-dev-336-gb667d82
|
#include "ntvdm.h"
#include <debug.h>
#include "emulator.h"
#include "disk.h"
#include "memory.h"
#include "utils.h"
Go to the source code of this file.
Classes | |
struct | _VHD_FOOTER |
struct | _DISK_GEO |
struct | _DISK_MOUNT_INFO |
Macros | |
#define | NDEBUG |
#define | VHD_TIMESTAMP_BASE 946684800 |
Typedefs | |
typedef struct _VHD_FOOTER | VHD_FOOTER |
typedef struct _VHD_FOOTER * | PVHD_FOOTER |
typedef struct _DISK_GEO | DISK_GEO |
typedef struct _DISK_GEO * | PDISK_GEO |
typedef BOOLEAN(* | MOUNT_DISK_HANDLER) (IN PDISK_IMAGE DiskImage, IN HANDLE hFile) |
typedef struct _DISK_MOUNT_INFO | DISK_MOUNT_INFO |
typedef struct _DISK_MOUNT_INFO * | PDISK_MOUNT_INFO |
Enumerations | |
enum | VHD_TYPE { VHD_FIXED = 2 , VHD_DYNAMIC = 3 , VHD_DIFFERENCING = 4 } |
Functions | |
C_ASSERT (sizeof(VHD_FOOTER)==0x200) | |
static BOOLEAN | MountFDI (IN PDISK_IMAGE DiskImage, IN HANDLE hFile) |
static BOOLEAN | MountHDD (IN PDISK_IMAGE DiskImage, IN HANDLE hFile) |
BOOLEAN | IsDiskPresent (IN PDISK_IMAGE DiskImage) |
BYTE | SeekDisk (IN PDISK_IMAGE DiskImage, IN WORD Cylinder, IN BYTE Head, IN BYTE Sector) |
BYTE | ReadDisk (IN PDISK_IMAGE DiskImage, IN WORD Cylinder, IN BYTE Head, IN BYTE Sector, IN BYTE NumSectors) |
BYTE | WriteDisk (IN PDISK_IMAGE DiskImage, IN WORD Cylinder, IN BYTE Head, IN BYTE Sector, IN BYTE NumSectors) |
PDISK_IMAGE | RetrieveDisk (IN DISK_TYPE DiskType, IN ULONG DiskNumber) |
BOOLEAN | MountDisk (IN DISK_TYPE DiskType, IN ULONG DiskNumber, IN PCWSTR FileName, IN BOOLEAN ReadOnly) |
BOOLEAN | UnmountDisk (IN DISK_TYPE DiskType, IN ULONG DiskNumber) |
BOOLEAN | DiskCtrlInitialize (VOID) |
VOID | DiskCtrlCleanup (VOID) |
Variables | |
static DISK_IMAGE | XDCFloppyDrive [4] |
static WORD | HackSectorSize = 512 |
static DISK_GEO | DiskGeometryList [] |
static DISK_IMAGE | XDCHardDrive [4] |
static DISK_MOUNT_INFO | DiskMountInfo [MAX_DISK_TYPE] |
typedef struct _DISK_MOUNT_INFO DISK_MOUNT_INFO |
typedef struct _DISK_MOUNT_INFO * PDISK_MOUNT_INFO |
typedef struct _VHD_FOOTER * PVHD_FOOTER |
typedef struct _VHD_FOOTER VHD_FOOTER |
Enumerator | |
---|---|
VHD_FIXED | |
VHD_DYNAMIC | |
VHD_DIFFERENCING |
C_ASSERT | ( | sizeof(VHD_FOOTER) | = =0x200 | ) |
Definition at line 624 of file disk.c.
Referenced by EmulatorCleanup().
Definition at line 619 of file disk.c.
Referenced by EmulatorInitialize().
BOOLEAN IsDiskPresent | ( | IN PDISK_IMAGE | DiskImage | ) |
Definition at line 321 of file disk.c.
Referenced by BiosDiskService(), DiskCtrlCleanup(), MountDisk(), and UnmountDisk().
BOOLEAN MountDisk | ( | IN DISK_TYPE | DiskType, |
IN ULONG | DiskNumber, | ||
IN PCWSTR | FileName, | ||
IN BOOLEAN | ReadOnly | ||
) |
Definition at line 500 of file disk.c.
Referenced by EmulatorInitialize(), and MountFloppy().
|
static |
Definition at line 190 of file disk.c.
|
static |
Definition at line 246 of file disk.c.
BYTE ReadDisk | ( | IN PDISK_IMAGE | DiskImage, |
IN WORD | Cylinder, | ||
IN BYTE | Head, | ||
IN BYTE | Sector, | ||
IN BYTE | NumSectors | ||
) |
Definition at line 359 of file disk.c.
Referenced by BiosDiskService().
PDISK_IMAGE RetrieveDisk | ( | IN DISK_TYPE | DiskType, |
IN ULONG | DiskNumber | ||
) |
Definition at line 485 of file disk.c.
Referenced by DiskBios32Initialize().
Definition at line 328 of file disk.c.
Referenced by BiosDiskService(), ReadDisk(), and WriteDisk().
Definition at line 589 of file disk.c.
Referenced by DiskCtrlCleanup(), EjectFloppy(), and MountDisk().
BYTE WriteDisk | ( | IN PDISK_IMAGE | DiskImage, |
IN WORD | Cylinder, | ||
IN BYTE | Head, | ||
IN BYTE | Sector, | ||
IN BYTE | NumSectors | ||
) |
Definition at line 413 of file disk.c.
Referenced by BiosDiskService().
|
static |
Definition at line 175 of file disk.c.
Referenced by MountFDI().
|
static |
Definition at line 478 of file disk.c.
Referenced by DiskCtrlCleanup(), MountDisk(), RetrieveDisk(), and UnmountDisk().
|
static |
Definition at line 174 of file disk.c.
Referenced by MountFDI().
|
static |
|
static |