summaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma/gma-gfx_init.ads
blob: ec1e0ce0ceea9953968a90a7dff1f934e5e42d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- SPDX-License-Identifier: GPL-2.0-only

with Interfaces.C;

with HW;
use HW;

package GMA.GFX_Init
is

   procedure gfxinit (lightup_ok : out Interfaces.C.int);
   pragma Export (C, gfxinit, "gma_gfxinit");

   procedure gfxstop;
   pragma Export (C, gfxstop, "gma_gfxstop");

   ----------------------------------------------------------------------------

   function C_Fb_Add_Framebuffer_Info_Simple
     (fb_addr: Interfaces.C.size_t;
      x_resolution : word32;
      y_resolution : word32;
      bytes_per_line : word32;
      bits_per_pixel : word8)
      return Interfaces.C.int;

   pragma import (C, C_Fb_Add_Framebuffer_Info_Simple, "fb_add_framebuffer_info_simple");

end GMA.GFX_Init;