libmetal  main
Loading...
Searching...
No Matches
sys.h File Reference

System primitives for libmetal. More...

#include <stdlib.h>
#include <metal/log.h>
#include <metal/list.h>
#include <metal/system/@PROJECT_SYSTEM@/sys.h>

Go to the source code of this file.

Data Structures

struct  metal_init_params
 Initialization configuration for libmetal. More...
struct  metal_common_state
 System independent runtime state for libmetal. More...

Macros

#define METAL_BAD_OFFSET   ((unsigned long)-1)
 Bad offset into shared memory or I/O region.
#define METAL_BAD_PHYS   ((metal_phys_addr_t)-1)
 Bad physical address value.
#define METAL_BAD_VA   ((void *)-1)
 Bad virtual address value.
#define METAL_BAD_IRQ   ((metal_irq_t)-1)
 Bad IRQ.
#define METAL_INIT_DEFAULTS

Typedefs

typedef unsigned long metal_phys_addr_t
 Physical address type.
typedef int metal_irq_t
 Interrupt request number.

Functions

int metal_init (const struct metal_init_params *params)
 Initialize libmetal.
void metal_finish (void)
 Shutdown libmetal.

Variables

struct metal_state _metal
 System specific runtime data.

Detailed Description

System primitives for libmetal.

Top level include internal to libmetal library code.