| 1 |
-- SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
with Interfaces.C; |
| 4 |
|
| 5 |
with HW; |
| 6 |
use HW; |
| 7 |
|
| 8 |
package GMA.GFX_Init |
| 9 |
is |
| 10 |
|
| 11 |
procedure gfxinit (lightup_ok : out Interfaces.C.int); |
| 12 |
pragma Export (C, gfxinit, "gma_gfxinit"); |
| 13 |
|
| 14 |
procedure gfxstop; |
| 15 |
pragma Export (C, gfxstop, "gma_gfxstop"); |
| 16 |
|
| 17 |
---------------------------------------------------------------------------- |
| 18 |
|
| 19 |
function C_Fb_Add_Framebuffer_Info_Simple |
| 20 |
(fb_addr: Interfaces.C.size_t; |
| 21 |
x_resolution : word32; |
| 22 |
y_resolution : word32; |
| 23 |
bytes_per_line : word32; |
| 24 |
bits_per_pixel : word8) |
| 25 |
return Interfaces.C.int; |
| 26 |
|
| 27 |
pragma import (C, C_Fb_Add_Framebuffer_Info_Simple, "fb_add_framebuffer_info_simple"); |
| 28 |
|
| 29 |
end GMA.GFX_Init; |