ReactOS 0.4.15-dev-7918-g2a2556c
cmosbus.c File Reference
#include <hal.h>
Include dependency graph for cmosbus.c:

Go to the source code of this file.

Functions

ULONG NTAPI HalpcGetCmosData (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ ULONG SlotNumber, _Out_writes_bytes_(Length) PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length)
 
ULONG NTAPI HalpcSetCmosData (_In_ PBUS_HANDLER BusHandler, _In_ PBUS_HANDLER RootHandler, _In_ ULONG SlotNumber, _In_reads_bytes_(Length) PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length)
 

Function Documentation

◆ HalpcGetCmosData()

ULONG NTAPI HalpcGetCmosData ( _In_ PBUS_HANDLER  BusHandler,
_In_ PBUS_HANDLER  RootHandler,
_In_ ULONG  SlotNumber,
_Out_writes_bytes_(Length) PVOID  Buffer,
_In_ ULONG  Offset,
_In_ ULONG  Length 
)

Definition at line 16 of file cmosbus.c.

23{
24 UNREFERENCED_PARAMETER(RootHandler);
25
26 /* CMOS reads do not support offsets */
27 if (Offset != 0)
28 return 0;
29
30 return HalpGetCmosData(BusHandler->BusNumber,
32 Buffer,
33 Length);
34}
Definition: bufpool.h:45
ULONG NTAPI HalpGetCmosData(_In_ ULONG BusNumber, _In_ ULONG SlotNumber, _Out_writes_bytes_(Length) PVOID Buffer, _In_ ULONG Length)
Definition: cmos.c:49
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
_In_ WDFIORESREQLIST _In_ ULONG SlotNumber
Definition: wdfresource.h:68

Referenced by HalpRegisterInternalBusHandlers().

◆ HalpcSetCmosData()

ULONG NTAPI HalpcSetCmosData ( _In_ PBUS_HANDLER  BusHandler,
_In_ PBUS_HANDLER  RootHandler,
_In_ ULONG  SlotNumber,
_In_reads_bytes_(Length) PVOID  Buffer,
_In_ ULONG  Offset,
_In_ ULONG  Length 
)

Definition at line 38 of file cmosbus.c.

45{
46 UNREFERENCED_PARAMETER(RootHandler);
47
48 /* CMOS writes do not support offsets */
49 if (Offset != 0)
50 return 0;
51
52 return HalpSetCmosData(BusHandler->BusNumber,
54 Buffer,
55 Length);
56}
ULONG NTAPI HalpSetCmosData(_In_ ULONG BusNumber, _In_ ULONG SlotNumber, _In_reads_bytes_(Length) PVOID Buffer, _In_ ULONG Length)
Definition: cmos.c:104

Referenced by HalpRegisterInternalBusHandlers().