libmetal
Toggle main menu visibility
Loading...
Searching...
No Matches
lib
system
generic
sys.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
/*
8
* @file generic/sys.h
9
* @brief Generic system primitives for libmetal.
10
*/
11
12
#ifndef __METAL_SYS__H__
13
#error "Include metal/sys.h instead of metal/generic/sys.h"
14
#endif
15
16
#ifndef __METAL_GENERIC_SYS__H__
17
#define __METAL_GENERIC_SYS__H__
18
19
#include <limits.h>
20
#include <metal/errno.h>
21
#include <stdio.h>
22
#include <stdlib.h>
23
#include <stdarg.h>
24
#include <string.h>
25
26
#include "./@PROJECT_MACHINE@/sys.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
#ifndef METAL_MAX_DEVICE_REGIONS
33
#define METAL_MAX_DEVICE_REGIONS 1
34
#endif
35
37
struct
metal_state
{
38
40
struct
metal_common_state
common
;
41
};
42
43
#ifdef METAL_INTERNAL
44
48
void
sys_irq_restore_enable
(
unsigned
int
flags);
49
53
unsigned
int
sys_irq_save_disable
(
void
);
54
55
#endif
/* METAL_INTERNAL */
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* __METAL_GENERIC_SYS__H__ */
sys_irq_save_disable
unsigned int sys_irq_save_disable(void)
Definition
sys.c:23
sys_irq_restore_enable
void sys_irq_restore_enable(unsigned int flags)
Definition
sys.c:17
metal_common_state
Definition
sys.h:63
metal_state
Definition
sys.h:30
metal_state::common
struct metal_common_state common
Definition
sys.h:33
Generated on
for libmetal by
1.18.0