@@ -25,20 +25,6 @@ Module Name:
2525
2626//------------------------------------------------------------------ Definitions
2727
28- //
29- // Battery bus driver interface
30- //
31-
32- // {780AC894-01FF-4b5e-B4C8-9C00709200EB}
33- DEFINE_GUID (BATTBUS_DEVINTERFACE_GUID ,
34- 0x780ac894 , 0x1ff , 0x4b5e , 0xb4 , 0xc8 , 0x9c , 0x0 , 0x70 , 0x92 , 0x0 , 0xeb );
35-
36- #define BATTBUS_IOCTL (_index_ ) \
37- CTL_CODE(FILE_DEVICE_BUS_EXTENDER, _index_, METHOD_BUFFERED, FILE_READ_DATA)
38-
39- #define IOCTL_BATTBUS_PLUGIN_HARDWARE BATTBUS_IOCTL(0x0)
40- #define IOCTL_BATTBUS_UNPLUG_HARDWARE BATTBUS_IOCTL(0x1)
41-
4228//
4329// Simulated battery ioctl interface
4430//
@@ -62,67 +48,3 @@ DEFINE_GUID(SIMBATT_DEVINTERFACE_GUID,
6248#define IOCTL_SIMBATT_SET_UNIQUE_ID SIMBATT_IOCTL(0x809)
6349#define IOCTL_SIMBATT_GET_MAXCHARGINGCURRENT SIMBATT_IOCTL(0x810)
6450#define SIMBATT_RATE_CALCULATE 0x7fffffff
65- #define MAX_SUPPORTED_SIMBATT_CHILDREN 20
66-
67- //------------------------------------------------------------------- Data Types
68-
69- //
70- // Data structure used in PlugIn and UnPlug ioctls
71- //
72-
73- #define BATTBUS_TYPE_SIMBATT 0;
74-
75- typedef struct _BATTBUS_PLUGIN_HARDWARE
76- {
77- //
78- // Size of this type.
79- //
80-
81- ULONG Size ;
82-
83- //
84- // Unique serial number of the device to be enumerated.
85- // Enumeration will be failed if another device on the
86- // bus has the same serial number.
87- //
88-
89- ULONG SerialNo ;
90-
91- //
92- // UI number.
93- //
94-
95- ULONG UINumber ;
96-
97- //
98- // Type of device being enumerated
99- //
100- // Reserved value, set to 0.
101- //
102-
103- ULONG Type ;
104-
105- } BATTBUS_PLUGIN_HARDWARE , * PBATTBUS_PLUGIN_HARDWARE ;
106-
107- typedef struct _BATTBUS_UNPLUG_HARDWARE
108- {
109- //
110- // size of this type
111- //
112-
113- ULONG Size ;
114-
115- //
116- // Serial number of the device to be unplugged.
117- //
118-
119- ULONG SerialNo ;
120-
121- //
122- // Must not be referenced used.
123- //
124-
125- ULONG Reserved [2 ];
126-
127- } BATTBUS_UNPLUG_HARDWARE , * PBATTBUS_UNPLUG_HARDWARE ;
128-
0 commit comments