update for HEAD-2003091401
[reactos.git] / ntoskrnl / io / parttab.c
1 /* $Id$
2  *
3  * COPYRIGHT:       See COPYING in the top level directory
4  * PROJECT:         ReactOS kernel
5  * FILE:            ntoskrnl/io/parttab.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 STDCALL
23 IoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
24                      ULONG SectorSize,
25                      BOOLEAN ReturnRecognizedPartitions,
26                      PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
27 {
28   return(HalIoReadPartitionTable(DeviceObject,
29                                  SectorSize,
30                                  ReturnRecognizedPartitions,
31                                  PartitionBuffer));
32 }
33
34
35 NTSTATUS STDCALL
36 IoSetPartitionInformation(PDEVICE_OBJECT DeviceObject,
37                           ULONG SectorSize,
38                           ULONG PartitionNumber,
39                           ULONG PartitionType)
40 {
41   return(HalIoSetPartitionInformation(DeviceObject,
42                                       SectorSize,
43                                       PartitionNumber,
44                                       PartitionType));
45 }
46
47
48 NTSTATUS STDCALL
49 IoWritePartitionTable(PDEVICE_OBJECT DeviceObject,
50                       ULONG SectorSize,
51                       ULONG SectorsPerTrack,
52                       ULONG NumberOfHeads,
53                       PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
54 {
55   return(HalIoWritePartitionTable(DeviceObject,
56                                   SectorSize,
57                                   SectorsPerTrack,
58                                   NumberOfHeads,
59                                   PartitionBuffer));
60 }
61
62 /* EOF */