OpenAMP Library  353
rsc_table_parser.c File Reference
#include <metal/io.h>
#include <metal/utilities.h>
#include "rsc_table_parser.h"

Macros

#define RSC_TAB_SUPPORTED_VERSION   1
 

Typedefs

typedef int(* rsc_handler) (struct remoteproc *rproc, void *rsc)
 

Functions

static int handle_carve_out_rsc (struct remoteproc *rproc, void *rsc)
 
static int handle_trace_rsc (struct remoteproc *rproc, void *rsc)
 
static int handle_vdev_rsc (struct remoteproc *rproc, void *rsc)
 
static int handle_vendor_rsc (struct remoteproc *rproc, void *rsc)
 
static int handle_dummy_rsc (struct remoteproc *rproc, void *rsc)
 
int handle_rsc_table (struct remoteproc *rproc, struct resource_table *rsc_table, size_t size, struct metal_io_region *io)
 
size_t find_rsc (void *rsc_table, unsigned int rsc_type, unsigned int index)
 

Variables

static const rsc_handler rsc_handler_table []
 

Macro Definition Documentation

◆ RSC_TAB_SUPPORTED_VERSION

#define RSC_TAB_SUPPORTED_VERSION   1

Typedef Documentation

◆ rsc_handler

typedef int(* rsc_handler) (struct remoteproc *rproc, void *rsc)

Function Documentation

◆ find_rsc()

size_t find_rsc ( void *  rsc_table,
unsigned int  rsc_type,
unsigned int  index 
)

◆ handle_carve_out_rsc()

static int handle_carve_out_rsc ( struct remoteproc rproc,
void *  rsc 
)
static

◆ handle_dummy_rsc()

static int handle_dummy_rsc ( struct remoteproc rproc,
void *  rsc 
)
static

◆ handle_rsc_table()

int handle_rsc_table ( struct remoteproc rproc,
struct resource_table rsc_table,
size_t  size,
struct metal_io_region *  io 
)

◆ handle_trace_rsc()

static int handle_trace_rsc ( struct remoteproc rproc,
void *  rsc 
)
static

◆ handle_vdev_rsc()

static int handle_vdev_rsc ( struct remoteproc rproc,
void *  rsc 
)
static

◆ handle_vendor_rsc()

static int handle_vendor_rsc ( struct remoteproc rproc,
void *  rsc 
)
static

Variable Documentation

◆ rsc_handler_table

const rsc_handler rsc_handler_table[]
static
Initial value:
= {
}
static int handle_trace_rsc(struct remoteproc *rproc, void *rsc)
Definition: rsc_table_parser.c:62
static int handle_carve_out_rsc(struct remoteproc *rproc, void *rsc)
Definition: rsc_table_parser.c:26
static int handle_vdev_rsc(struct remoteproc *rproc, void *rsc)
Definition: rsc_table_parser.c:74
static int handle_dummy_rsc(struct remoteproc *rproc, void *rsc)
Definition: rsc_table_parser.c:139