Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. flo_data.h
  5. Abstract:
  6. This file includes data and hardware declarations for the BIOS
  7. disk and floppy.
  8. Author:
  9. Shie-Lin Tzong (shielint) Dec-26-1991.
  10. Environment:
  11. x86 real mode.
  12. Notes:
  13. --*/
  14. //
  15. // CMOS related definitions and macros
  16. //
  17. #define CMOS_CONTROL_PORT 0x70 // cmos command port
  18. #define CMOS_DATA_PORT 0x71 // cmos data port
  19. #define CMOS_FLOPPY_CONFIG_BYTE 0x10
  20. //
  21. // The length of CBIOS floppy parameter table
  22. //
  23. #define FLOPPY_PARAMETER_TABLE_LENGTH 28
  24. //
  25. // The CM_FLOPPY_DEVICE_DATA we use here is the newly updated one.
  26. // To distinguish this, we set the version number in the CM_FLOPPY_DEVICE_DATA
  27. // to 2. (Otherwise, it should be < 2)
  28. //
  29. #define CURRENT_FLOPPY_DATA_VERSION 2
  30. extern USHORT NumberBiosDisks;
  31. //
  32. // External References
  33. //
  34. extern
  35. BOOLEAN
  36. IsExtendedInt13Available (
  37. IN USHORT DriveNumber
  38. );
  39. extern
  40. USHORT
  41. GetExtendedDriveParameters (
  42. IN USHORT DriveNumber,
  43. IN CM_DISK_GEOMETRY_DEVICE_DATA far *DeviceData
  44. );
  45. //
  46. // Partition table record and boot signature offsets in 16-bit words.
  47. //
  48. #define PARTITION_TABLE_OFFSET (0x1be / 2)
  49. #define BOOT_SIGNATURE_OFFSET ((0x200 / 2) - 1)
  50. //
  51. // Boot record signature value.
  52. //
  53. #define BOOT_RECORD_SIGNATURE (0xaa55)
  54. VOID
  55. GetDiskId(
  56. USHORT Drive,
  57. PUCHAR Identifier
  58. );
  59.