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 
23 struct SystemInformation;
24 
41 {
43 }
44 
49 #ifdef __KERNEL__
50 
64 
69 #endif /* __KERNEL__ */
70 
79 typedef struct SystemInformation
80 {
85  {
86  SystemInfo(this);
87  }
88 
91 
93  char cmdline[64];
94 
97 
100 
103 
106 
109 
112 
115 
118 }
120 
126 #endif /* __KERNEL_API_SYSTEMINFO_H */
API::Result
Result
Enumeration of generic kernel API result codes.
Definition: API.h:68
ulong
unsigned long ulong
Unsigned long number.
Definition: Types.h:47
Types.h
trapKernel1
ulong trapKernel1(ulong api, ulong arg1)
Perform a kernel trap with 1 argument.
Definition: ARMTraps.h:59
SystemInformation::coreChannelAddress
Address coreChannelAddress
Definition: SystemInfo.h:113
SystemInformation::kernelSize
Size kernelSize
Size of the kernel program in bytes.
Definition: SystemInfo.h:99
Address
unsigned long Address
A memory address.
Definition: Types.h:131
SystemInformation::coreChannelSize
Size coreChannelSize
Definition: SystemInfo.h:114
SystemInformation::coreId
uint coreId
Core Identifier.
Definition: SystemInfo.h:105
uint
unsigned int uint
Unsigned integer number.
Definition: Types.h:44
SystemInfo
API::Result SystemInfo(SystemInformation *info)
Prototype for user applications.
Definition: SystemInfo.h:40
Size
unsigned int Size
Any sane size indicator cannot go negative.
Definition: Types.h:128
SystemInformation::bootImageSize
Size bootImageSize
BootImage size.
Definition: SystemInfo.h:111
SystemInformation::cmdline
char cmdline[64]
Boot commandline.
Definition: SystemInfo.h:93
SystemInformation::SystemInformation
SystemInformation()
Constructor function.
Definition: SystemInfo.h:84
SystemInformation
System information structure.
Definition: SystemInfo.h:79
SystemInformation::timerCounter
uint timerCounter
Timer counter.
Definition: SystemInfo.h:117
SystemInformation::memorySize
Size memorySize
Total and available memory in bytes.
Definition: SystemInfo.h:102
SystemInformation
struct SystemInformation SystemInformation
System information structure.
API::SystemInfoNumber
@ SystemInfoNumber
Definition: API.h:53
SystemInformation::version
ulong version
System version.
Definition: SystemInfo.h:90
SystemInformation::kernelAddress
Address kernelAddress
Physical start address of the kernel program.
Definition: SystemInfo.h:96
SystemInfoHandler
API::Result SystemInfoHandler(SystemInformation *info)
Kernel prototype.
Definition: SystemInfo.cpp:24
SystemInformation::memoryAvail
Size memoryAvail
Definition: SystemInfo.h:102
SystemInformation::bootImageAddress
Address bootImageAddress
BootImage physical address.
Definition: SystemInfo.h:108