sync with trunk r46493
[reactos.git] / drivers / bus / acpi / compbatt / compbatt.c
1 /*
2 * PROJECT: ReactOS Composite Battery Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/drivers/bus/acpi/compbatt/compbatt.c
5 * PURPOSE: Main Initialization Code and IRP Handling
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include "compbatt.h"
12
13 /* GLOBALS ********************************************************************/
14
15 ULONG CompBattDebug;
16
17 /* FUNCTIONS ******************************************************************/
18
19 NTSTATUS
20 NTAPI
21 CompBattOpenClose(IN PDEVICE_OBJECT DeviceObject,
22 IN PIRP Irp)
23 {
24 UNIMPLEMENTED;
25 return STATUS_NOT_IMPLEMENTED;
26 }
27
28 NTSTATUS
29 NTAPI
30 CompBattSystemControl(IN PDEVICE_OBJECT DeviceObject,
31 IN PIRP Irp)
32 {
33 UNIMPLEMENTED;
34 return STATUS_NOT_IMPLEMENTED;
35 }
36
37 NTSTATUS
38 NTAPI
39 CompBattMonitorIrpComplete(IN PDEVICE_OBJECT DeviceObject,
40 IN PIRP Irp,
41 IN PKEVENT Event)
42 {
43 UNIMPLEMENTED;
44 return STATUS_NOT_IMPLEMENTED;
45 }
46
47 NTSTATUS
48 NTAPI
49 CompBattMonitorIrpCompleteWorker(IN PCOMPBATT_BATTERY_ENTRY BatteryData)
50 {
51 UNIMPLEMENTED;
52 return STATUS_NOT_IMPLEMENTED;
53 }
54
55 NTSTATUS
56 NTAPI
57 CompBattRecalculateTag(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension)
58 {
59 UNIMPLEMENTED;
60 return STATUS_NOT_IMPLEMENTED;
61 }
62
63 NTSTATUS
64 NTAPI
65 CompBattIoctl(IN PDEVICE_OBJECT DeviceObject,
66 IN PIRP Irp)
67 {
68 UNIMPLEMENTED;
69 return STATUS_NOT_IMPLEMENTED;
70 }
71
72 NTSTATUS
73 NTAPI
74 CompBattQueryTag(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension,
75 OUT PULONG Tag)
76 {
77 UNIMPLEMENTED;
78 return STATUS_NOT_IMPLEMENTED;
79 }
80
81 NTSTATUS
82 NTAPI
83 CompBattDisableStatusNotify(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension)
84 {
85 UNIMPLEMENTED;
86 return STATUS_NOT_IMPLEMENTED;
87 }
88
89 NTSTATUS
90 NTAPI
91 CompBattSetStatusNotify(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension,
92 IN ULONG BatteryTag,
93 IN PBATTERY_NOTIFY BatteryNotify)
94 {
95 UNIMPLEMENTED;
96 return STATUS_NOT_IMPLEMENTED;
97 }
98
99 NTSTATUS
100 NTAPI
101 CompBattGetBatteryStatus(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension,
102 IN ULONG Tag)
103 {
104 UNIMPLEMENTED;
105 return STATUS_NOT_IMPLEMENTED;
106 }
107
108 NTSTATUS
109 NTAPI
110 CompBattQueryStatus(IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension,
111 IN ULONG Tag,
112 IN PBATTERY_STATUS BatteryStatus)
113 {
114 UNIMPLEMENTED;
115 return STATUS_NOT_IMPLEMENTED;
116 }
117
118 NTSTATUS
119 NTAPI
120 CompBattGetBatteryInformation(OUT PBATTERY_INFORMATION BatteryInformation,
121 IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension)
122 {
123 UNIMPLEMENTED;
124 return STATUS_NOT_IMPLEMENTED;
125 }
126
127 NTSTATUS
128 NTAPI
129 CompBattGetBatteryGranularity(OUT PBATTERY_REPORTING_SCALE ReportingScale,
130 IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension)
131 {
132 UNIMPLEMENTED;
133 return STATUS_NOT_IMPLEMENTED;
134 }
135
136 NTSTATUS
137 NTAPI
138 CompBattGetEstimatedTime(OUT PULONG Time,
139 IN PCOMPBATT_DEVICE_EXTENSION DeviceExtension)
140 {
141 UNIMPLEMENTED;
142 return STATUS_NOT_IMPLEMENTED;
143 }
144
145 NTSTATUS
146 NTAPI
147 CompBattQueryInformation(IN PCOMPBATT_DEVICE_EXTENSION FdoExtension,
148 IN ULONG Tag,
149 IN BATTERY_QUERY_INFORMATION_LEVEL InfoLevel,
150 IN OPTIONAL LONG AtRate,
151 IN PVOID Buffer,
152 IN ULONG BufferLength,
153 OUT PULONG ReturnedLength)
154 {
155 UNIMPLEMENTED;
156 return STATUS_NOT_IMPLEMENTED;
157 }
158
159 NTSTATUS
160 NTAPI
161 DriverEntry(IN PDRIVER_OBJECT DriverObject,
162 IN PUNICODE_STRING RegistryPath)
163 {
164 UNIMPLEMENTED;
165 return STATUS_NOT_IMPLEMENTED;
166 }
167
168 /* EOF */