PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <pbl/device.h>
#include <pbl/drivers/gpu.h>
#include <pbl/kernel/sem.h>

Data Structures

struct  pbl_gpu_ops
 GPU driver operations. More...
 
struct  pbl_gpu
 A GPU. More...
 

Macros

#define PBL_GPU_STATE_DEFINE(sym)
 Define the class state of GPU sym, for the PBL_*_DEFINE() macro of a driver.
 
#define PBL_GPU_INIT(sym, _name, _parent, _ops, ...)
 Initializer for the struct pbl_gpu of GPU sym.
 

Functions

int pbl_gpu_dev_init (const struct pbl_device *dev)
 Device init of every GPU: calls the driver's init.
 
void pbl_gpu_complete (const struct pbl_gpu *gpu, int status)
 End the job running, for drivers.