libmetal
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 <errno.h>
20
#include <fcntl.h>
21
#include <libgen.h>
22
#include <limits.h>
23
#include <stdio.h>
24
#include <stdlib.h>
25
#include <stdarg.h>
26
#include <string.h>
27
28
#include "./@PROJECT_MACHINE@/sys.h"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
#ifndef METAL_MAX_DEVICE_REGIONS
35
#define METAL_MAX_DEVICE_REGIONS 1
36
#endif
37
39
struct
metal_state
{
40
42
struct
metal_common_state
common
;
43
};
44
45
#ifdef METAL_INTERNAL
46
50
void
sys_irq_restore_enable
(
unsigned
int
flags);
51
55
unsigned
int
sys_irq_save_disable
(
void
);
56
57
#endif
/* METAL_INTERNAL */
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* __METAL_GENERIC_SYS__H__ */
metal_state::common
struct metal_common_state common
Definition:
sys.h:33
metal_common_state
Definition:
sys.h:63
sys_irq_restore_enable
void sys_irq_restore_enable(unsigned int flags)
Definition:
sys.c:17
sys_irq_save_disable
unsigned int sys_irq_save_disable(void)
Definition:
sys.c:23
metal_state
Definition:
sys.h:30
Generated on Sun May 10 2020 00:00:00 for libmetal by
1.8.17