PebbleOS v4.44.0-199-g465b7d28c
Loading...
Searching...
No Matches
remoteproc.h File Reference
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/kernel/mutex.h>

Data Structures

struct  pbl_rproc_ops
 Remote processor operations, implemented by the providers, called with the lock held. More...
 
struct  pbl_rproc_state
 Remote processor state, kept by the class. More...
 
struct  pbl_rproc
 Remote processor. More...
 

Macros

#define PBL_RPROC_STATE_DEFINE(sym)
 Define the state of a remote processor, for providers.
 
#define PBL_RPROC_INIT(sym, _name, _init, _deps, _ops)
 Initializer of a struct pbl_rproc, for providers.
 

Functions

int pbl_rproc_boot (const struct pbl_rproc *rproc)
 Boot a remote processor, or count one more user if it runs.
 
void pbl_rproc_shutdown (const struct pbl_rproc *rproc)
 Release a boot, stopping the remote processor if it was the last one.
 
bool pbl_rproc_is_running (const struct pbl_rproc *rproc)
 Whether a remote processor runs.
 

Variables

const struct pbl_device_class pbl_rproc_class
 Class of the remote processors.