GPU driver for the ePIC graphics accelerator of the SF32LB57.
More...
GPU driver for the ePIC graphics accelerator of the SF32LB57.
Draws into PBL_GPU_FORMAT_RGB565 and PBL_GPU_FORMAT_RGB888 buffers, from every format, rotated and scaled within 512 pixels of the area drawn. The target is read back as a layer under the source, so a blit blends in place, and what it leaves out of the source is not touched. Its clock runs only while a job does. Short jobs are waited for in place, longer ones on the interrupt of the accelerator, which an instance connects itself, with priority CONFIG_GPU_SF32LB57_EPIC_IRQ_PRIO.
◆ pbl_gpu_sf32lb57_epic
| struct pbl_gpu_sf32lb57_epic |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
struct pbl_clk |
clk |
Clock. |
|
struct pbl_gpu |
gpu |
GPU. |
|
pbl_irq_t |
irq |
Interrupt. |
|
struct pbl_reset |
rst |
Reset. |
|
struct pbl_gpu_sf32lb57_epic_state * |
state |
Driver runtime state. |
◆ PBL_GPU_SF32LB57_EPIC_DEFINE
| #define PBL_GPU_SF32LB57_EPIC_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_irq, |
|
|
|
_clk, |
|
|
|
_rst |
|
) |
| |
Value:
static struct pbl_gpu_sf32lb57_epic_state sym##_epic_state = { \
}; \
sym, _name, &pbl_gpu_sf32lb57_epic_ops, nullptr, \
.state = &sym##_epic_state, \
.base = (_base), \
.irq = (_irq), \
.clk = _clk, \
.rst = _rst, \
}; \
&sym##_inst, 0)
SF32LB57 ePIC.
Definition sf32lb57_epic.h:35
void pbl_gpu_sf32lb57_epic_irq_handler(const struct pbl_gpu_sf32lb57_epic *epic)
Interrupt handler, to connect with PBL_IRQ_CONNECT().
A GPU.
Definition gpu.h:174
#define PBL_GPU_INIT(sym, _name, _ops, _deps,...)
Initializer for the struct pbl_gpu of GPU sym.
Definition gpu.h:206
#define PBL_GPU_STATE_DEFINE(sym)
Define the class state of GPU sym, for the PBL_*_DEFINE() macro of a driver.
Definition gpu.h:193
@ PBL_GPU_CAP_SCALE
Blits scale.
Definition gpu.h:70
@ PBL_GPU_CAP_ROTATE
Blits rotate by any angle.
Definition gpu.h:68
@ PBL_GPU_FORMAT_RGB565
16 bits per pixel: 5 of red, 6 of green and 5 of blue, from the most significant bit.
Definition gpu.h:48
@ PBL_GPU_FORMAT_A8
8 bits per pixel, alpha only: the color comes from the blit.
Definition gpu.h:54
@ PBL_GPU_FORMAT_ARGB8888
32 bits per pixel: 8 of alpha, red, green and blue, from the most significant bit.
Definition gpu.h:52
@ PBL_GPU_FORMAT_RGB888
24 bits per pixel: 8 of red, green and blue, from the most significant bit.
Definition gpu.h:50
#define PBL_SEM_INITIALIZER(init, lim)
Static initializer for a semaphore.
Definition sem.h:56
#define PBL_BIT(n)
Unsigned 32-bit value with a single bit set.
Definition bits.h:31
Define an SF32LB57 ePIC.
- Parameters
-
| sym | Symbol of the GPU. |
| _name | Name. |
| _base | Registers. |
| _irq | Interrupt. |
| _clk | Clock, from PBL_CLK(). |
| _rst | Reset, from PBL_RESET(). |
◆ pbl_gpu_sf32lb57_epic_irq_handler()