grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / graphics / graphics_init.c
blobd805b258da7d2f753d4d7949d7027c321ed62e8c
1 /*
2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics hidd initialization code.
6 Lang: English.
7 */
8 #include <stddef.h>
9 #include <exec/types.h>
11 #include <proto/exec.h>
13 #include <aros/symbolsets.h>
15 #include "graphics_intern.h"
17 #include LC_LIBDEFS_FILE
19 #undef SDEBUG
20 #undef DEBUG
21 #define DEBUG 0
22 #include <aros/debug.h>
24 #undef csd
26 static int GFX_Init(LIBBASETYPEPTR LIBBASE)
28 struct class_static_data *csd = &LIBBASE->hdg_csd;
30 EnterFunc(bug("GfxHIDD_Init()\n"));
32 D(bug("[HiddGfx] GC class @ 0x%p\n", csd->gcclass));
33 D(bug("[HiddGfx] BitMap class @ 0x%p\n", csd->bitmapclass));
35 csd->cs_GfxBase = NULL;
36 NEWLIST(&csd->pflist);
37 InitSemaphore(&csd->sema);
38 InitSemaphore(&csd->pfsema);
39 InitSemaphore(&csd->rgbconvertfuncs_sem);
41 ReturnInt("GfxHIDD_Init", ULONG, TRUE);
44 ADD2INITLIB(GFX_Init, -2)