Added stubs for missing partition functions
[reactos.git] / reactos / ntoskrnl / hal / x86 / parttab.c
1 /* $Id: parttab.c,v 1.4 2001/06/08 15:08:36 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 STDCALL
23 IoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
24 ULONG SectorSize,
25 BOOLEAN ReturnRecognizedPartitions,
26 PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
27 {
28 #ifdef __NTOSKRNL__
29 return HalDispatchTable.HalIoReadPartitionTable(DeviceObject,
30 SectorSize,
31 ReturnRecognizedPartitions,
32 PartitionBuffer);
33 #else
34 return HalDispatchTable->HalIoReadPartitionTable(DeviceObject,
35 SectorSize,
36 ReturnRecognizedPartitions,
37 PartitionBuffer);
38 #endif
39 }
40
41
42 NTSTATUS STDCALL
43 IoSetPartitionInformation(PDEVICE_OBJECT DeviceObject,
44 ULONG SectorSize,
45 ULONG PartitionNumber,
46 ULONG PartitionType)
47 {
48 #ifdef __NTOSKRNL__
49 return HalDispatchTable.HalIoSetPartitionInformation(DeviceObject,
50 SectorSize,
51 PartitionNumber,
52 PartitionType);
53 #else
54 return HalDispatchTable->HalIoSetPartitionInformation(DeviceObject,
55 SectorSize,
56 PartitionNumber,
57 PartitionType);
58 #endif
59 }
60
61
62 NTSTATUS STDCALL
63 IoWritePartitionTable(PDEVICE_OBJECT DeviceObject,
64 ULONG SectorSize,
65 ULONG SectorsPerTrack,
66 ULONG NumberOfHeads,
67 PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
68 {
69 #ifdef __NTOSKRNL__
70 return HalDispatchTable.HalIoWritePartitionTable(DeviceObject,
71 SectorSize,
72 SectorsPerTrack,
73 NumberOfHeads,
74 PartitionBuffer);
75 #else
76 return HalDispatchTable->HalIoWritePartitionTable(DeviceObject,
77 SectorSize,
78 SectorsPerTrack,
79 NumberOfHeads,
80 PartitionBuffer);
81 #endif
82 }
83
84 /* EOF */