3f53f2a6d47431b695f789948c91aa51d6987c33
[reactos.git] / reactos / ntoskrnl / hal / x86 / parttab.c
1 /* $Id: parttab.c,v 1.3 2000/08/21 00:12:20 ekohl Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/x86/parttab.c (was ntoskrnl/io/fdisk.c)
6 * PURPOSE: Handling fixed disks (partition table functions)
7 * PROGRAMMER: David Welch (welch@mcmail.com)
8 * UPDATE HISTORY:
9 * Created 22/05/98
10 * 2000-03-25 (ea)
11 * Moved here from ntoskrnl/io/fdisk.c
12 */
13
14 /* INCLUDES *****************************************************************/
15
16 #include <ddk/ntddk.h>
17
18 #include <internal/debug.h>
19
20 /* FUNCTIONS *****************************************************************/
21
22 NTSTATUS
23 STDCALL
24 IoReadPartitionTable (
25 PDEVICE_OBJECT DeviceObject,
26 ULONG SectorSize,
27 BOOLEAN ReturnRecognizedPartitions,
28 PDRIVE_LAYOUT_INFORMATION * PartitionBuffer
29 )
30 {
31 #ifdef __NTOSKRNL__
32 return HalDispatchTable.HalIoReadPartitionTable(DeviceObject,
33 SectorSize,
34 ReturnRecognizedPartitions,
35 PartitionBuffer);
36 #else
37 return HalDispatchTable->HalIoReadPartitionTable(DeviceObject,
38 SectorSize,
39 ReturnRecognizedPartitions,
40 PartitionBuffer);
41 #endif
42 }
43
44 NTSTATUS
45 STDCALL
46 IoSetPartitionInformation (
47 PDEVICE_OBJECT DeviceObject,
48 ULONG SectorSize,
49 ULONG PartitionNumber,
50 ULONG PartitionType)
51 {
52 UNIMPLEMENTED;
53 }
54
55 NTSTATUS
56 STDCALL
57 IoWritePartitionTable (
58 PDEVICE_OBJECT DeviceObject,
59 ULONG SectorSize,
60 ULONG SectorsPerTrack,
61 ULONG NumberOfHeads,
62 PDRIVE_LAYOUT_INFORMATION * PBuffer
63 )
64 {
65 UNIMPLEMENTED;
66 }
67
68
69 /* EOF */