Migrate PO subsystem to C++
This commit is contained in:
17
xtoskrnl/includes/po.hh
Normal file
17
xtoskrnl/includes/po.hh
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/po.hh
|
||||
* DESCRIPTION: Power Management
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_PO_HH
|
||||
#define __XTOSKRNL_PO_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
#include <po/idle.hh>
|
||||
|
||||
|
||||
#endif /* __XTOSKRNL_PO_HH */
|
33
xtoskrnl/includes/po/idle.hh
Normal file
33
xtoskrnl/includes/po/idle.hh
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/po/idle.hh
|
||||
* DESCRIPTION: Processor idle functionality support
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_PO_IDLE_HH
|
||||
#define __XTOSKRNL_PO_IDLE_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Runtime Library */
|
||||
namespace PO
|
||||
{
|
||||
class Idle
|
||||
{
|
||||
public:
|
||||
STATIC XTAPI VOID InitializeProcessorIdleState(IN OUT PKPROCESSOR_CONTROL_BLOCK Prcb);
|
||||
|
||||
private:
|
||||
STATIC XTFASTCALL VOID Idle0Function(IN PPROCESSOR_POWER_STATE PowerState);
|
||||
STATIC XTAPI VOID PerfIdle(IN PPROCESSOR_POWER_STATE PowerState);
|
||||
STATIC XTAPI VOID PerfIdleDpc(IN PKDPC Dpc,
|
||||
IN PVOID DeferredContext,
|
||||
IN PVOID SystemArgument1,
|
||||
IN PVOID SystemArgument2);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_PO_IDLE_HH */
|
@@ -30,4 +30,5 @@ extern "C" {
|
||||
#include <ex.hh>
|
||||
#include <hl.hh>
|
||||
#include <ke.hh>
|
||||
#include <po.hh>
|
||||
#include <rtl.hh>
|
||||
|
Reference in New Issue
Block a user