| Line 1... |
Line 1... |
| 1 |
//
|
1 |
//
|
| 2 |
//
|
2 |
//
|
| 3 |
// Copyright 2010 TheSeven
|
3 |
// Copyright 2010 TheSeven
|
| 4 |
//
|
4 |
//
|
| 5 |
//
|
5 |
//
|
| 6 |
// This file is part of emBIOS.
|
6 |
// This file is part of emCORE.
|
| 7 |
//
|
7 |
//
|
| 8 |
// emBIOS is free software: you can redistribute it and/or
|
8 |
// emCORE is free software: you can redistribute it and/or
|
| 9 |
// modify it under the terms of the GNU General Public License as
|
9 |
// modify it under the terms of the GNU General Public License as
|
| 10 |
// published by the Free Software Foundation, either version 2 of the
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
| 11 |
// License, or (at your option) any later version.
|
11 |
// License, or (at your option) any later version.
|
| 12 |
//
|
12 |
//
|
| 13 |
// emBIOS is distributed in the hope that it will be useful,
|
13 |
// emCORE is distributed in the hope that it will be useful,
|
| 14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
| 16 |
// See the GNU General Public License for more details.
|
16 |
// See the GNU General Public License for more details.
|
| 17 |
//
|
17 |
//
|
| 18 |
// You should have received a copy of the GNU General Public License along
|
18 |
// You should have received a copy of the GNU General Public License along
|
| 19 |
// with emBIOS. If not, see <http://www.gnu.org/licenses/>.
|
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
| 20 |
//
|
20 |
//
|
| 21 |
//
|
21 |
//
|
| 22 |
|
22 |
|
| 23 |
|
23 |
|
| 24 |
#ifndef __SYSCALLAPI_H__
|
24 |
#ifndef __SYSCALLAPI_H__
|
| Line 61... |
Line 61... |
| 61 |
#include "../libc/include/stdlib.h"
|
61 |
#include "../libc/include/stdlib.h"
|
| 62 |
#include "../libc/include/stdio.h"
|
62 |
#include "../libc/include/stdio.h"
|
| 63 |
#include "../libc/tlsf/tlsf.h"
|
63 |
#include "../libc/tlsf/tlsf.h"
|
| 64 |
|
64 |
|
| 65 |
/* increase this every time the api struct changes */
|
65 |
/* increase this every time the api struct changes */
|
| 66 |
#define EMBIOS_API_VERSION 1
|
66 |
#define EMCORE_API_VERSION 1
|
| 67 |
|
67 |
|
| 68 |
/* update this to latest version if a change to the api struct breaks
|
68 |
/* update this to latest version if a change to the api struct breaks
|
| 69 |
backwards compatibility (and please take the opportunity to sort in any
|
69 |
backwards compatibility (and please take the opportunity to sort in any
|
| 70 |
new function which are "waiting" at the end of the function table) */
|
70 |
new function which are "waiting" at the end of the function table) */
|
| 71 |
#define EMBIOS_MIN_API_VERSION 0
|
71 |
#define EMCORE_MIN_API_VERSION 0
|
| 72 |
|
72 |
|
| 73 |
/* NOTE: To support backwards compatibility, only add new functions at
|
73 |
/* NOTE: To support backwards compatibility, only add new functions at
|
| 74 |
the end of the structure. Every time you add a new function,
|
74 |
the end of the structure. Every time you add a new function,
|
| 75 |
remember to increase EMBIOS_API_VERSION. If you make changes to the
|
75 |
remember to increase EMCORE_API_VERSION. If you make changes to the
|
| 76 |
existing APIs, also update EMBIOS_MIN_API_VERSION to current version */
|
76 |
existing APIs, also update EMCORE_MIN_API_VERSION to current version */
|
| 77 |
|
77 |
|
| 78 |
struct embios_syscall_table
|
78 |
struct emcore_syscall_table
|
| 79 |
{
|
79 |
{
|
| 80 |
uint32_t table_version;
|
80 |
uint32_t table_version;
|
| 81 |
uint32_t table_minversion;
|
81 |
uint32_t table_minversion;
|
| 82 |
typeof(panic) *panic;
|
82 |
typeof(panic) *panic;
|
| 83 |
typeof(panicf) *panicf;
|
83 |
typeof(panicf) *panicf;
|