FreeNOS
SystemInfo.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __KERNEL_API_SYSTEMINFO_H
19#define __KERNEL_API_SYSTEMINFO_H
20
21#include <Types.h>
22
24
44
49#ifdef __KERNEL__
50
64
69#endif /* __KERNEL__ */
70
120
126#endif /* __KERNEL_API_SYSTEMINFO_H */
Result
Enumeration of generic kernel API result codes.
Definition API.h:69
@ SystemInfoNumber
Definition API.h:53
API::Result SystemInfoHandler(SystemInformation *info)
Kernel prototype.
API::Result SystemInfo(SystemInformation *info)
Prototype for user applications.
Definition SystemInfo.h:40
ulong trapKernel1(ulong api, ulong arg1)
Perform a kernel trap with 1 argument.
Definition ARMTraps.h:59
unsigned long Address
A memory address.
Definition Types.h:131
unsigned long ulong
Unsigned long number.
Definition Types.h:47
unsigned int uint
Unsigned integer number.
Definition Types.h:44
unsigned int Size
Any sane size indicator cannot go negative.
Definition Types.h:128
System information structure.
Definition SystemInfo.h:80
Size memorySize
Total and available memory in bytes.
Definition SystemInfo.h:102
SystemInformation()
Constructor function.
Definition SystemInfo.h:84
Address bootImageAddress
BootImage physical address.
Definition SystemInfo.h:108
char cmdline[64]
Boot commandline.
Definition SystemInfo.h:93
Address kernelAddress
Physical start address of the kernel program.
Definition SystemInfo.h:96
Size bootImageSize
BootImage size.
Definition SystemInfo.h:111
Size kernelSize
Size of the kernel program in bytes.
Definition SystemInfo.h:99
uint coreId
Core Identifier.
Definition SystemInfo.h:105
Address coreChannelAddress
Definition SystemInfo.h:113
uint timerCounter
Timer counter.
Definition SystemInfo.h:117
ulong version
System version.
Definition SystemInfo.h:90