L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
platform_control
Go to the documentation of this file.
1// vi:set ft=cpp: -*- Mode: C++ -*-
6/*
7 * (c) 2014 Steffen Liebergeld <steffen.liebergeld@kernkonzept.com>
8 * Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
9 * Alexander Warg <warg@os.inf.tu-dresden.de>
10 * economic rights: Technische Universität Dresden (Germany)
11 *
12 * License: see LICENSE.spdx (in this directory or the directories above)
13 */
14
15#pragma once
16
17#include <l4/sys/capability>
18#include <l4/sys/platform_control.h>
19#include <l4/sys/cxx/ipc_iface>
20
21namespace L4 {
22
37: public Kobject_t<Platform_control, Kobject, L4_PROTO_PLATFORM_CTL>
38{
39public:
55 l4_msgtag_t, system_suspend, (l4_umword_t extras));
56
63 l4_msgtag_t, system_shutdown, (l4_umword_t reboot));
64
75 l4_msgtag_t, cpu_allow_shutdown,
76 (l4_umword_t phys_id, l4_umword_t enable));
77
88 l4_msgtag_t, cpu_enable, (l4_umword_t phys_id));
89
100 l4_msgtag_t, cpu_disable, (l4_umword_t phys_id));
101
102 typedef L4::Typeid::Rpcs_sys<system_suspend_t, system_shutdown_t,
103 cpu_allow_shutdown_t, cpu_enable_t,
104 cpu_disable_t> Rpcs;
105};
106
107}
108
L4::Cap related definitions.
Helper class to create an L4Re interface class that is derived from a single base class.
Definition __typeinfo.h:750
L4 C++ interface for controlling platform-wide properties, see Platform Control C API for the C inter...
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
@ L4_PLATFORM_CTL_CPU_ENABLE_OP
enable an offline CPU
@ L4_PLATFORM_CTL_SYS_SHUTDOWN_OP
shutdown/reboot
@ L4_PLATFORM_CTL_CPU_ALLOW_SHUTDOWN_OP
allow CPU shutdown
@ L4_PLATFORM_CTL_SYS_SUSPEND_OP
Suspend.
@ L4_PLATFORM_CTL_CPU_DISABLE_OP
disable an online CPU
#define L4_EXPORT
Attribute to mark functions, variables, and data types as being exported from a library.
Definition compiler.h:210
Interface Definition Language.
#define L4_INLINE_RPC_OP(op, res, name, args, attr...)
Define an inline RPC call with specific opcode (type and callable).
Definition ipc_iface:491
L4 low-level kernel interface.
List of RPCs typically used for kernel interfaces.
Definition __typeinfo.h:465
Message tag data structure.
Definition types.h:153