tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / arch / m68k-amiga / hidd / gfx / startup.c
blob078195040cbdffe17078b6da364c79dbdf8b1340
1 /*
2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 0
8 #include <aros/debug.h>
9 #include <aros/symbolsets.h>
10 #include <graphics/driver.h>
11 #include <graphics/gfxbase.h>
12 #include <hidd/graphics.h>
13 #include <proto/exec.h>
14 #include <proto/graphics.h>
15 #include <proto/oop.h>
17 #include "amigavideogfx.h"
18 #include "amigavideobitmap.h"
19 #include "chipset.h"
21 #include LC_LIBDEFS_FILE
23 int Init_AmigaVideoClass(LIBBASETYPEPTR LIBBASE);
25 static int AmigaVideo_Init(LIBBASETYPEPTR LIBBASE)
27 ULONG err;
28 struct Library *GfxBase, *OOPBase;
31 D(bug("************************* AmigaVideo_Init ******************************\n"));
33 initcustom(&LIBBASE->csd);
34 GfxBase = LIBBASE->csd.cs_GfxBase;
36 OOPBase = OpenLibrary("oop.library", 0);
38 LIBBASE->csd.cs_basebm = OOP_FindClass(CLID_Hidd_BitMap);
40 Init_AmigaVideoClass(LIBBASE);
41 LIBBASE->library.lib_OpenCnt = 1;
43 err = AddDisplayDriver(LIBBASE->csd.amigagfxclass, NULL,
44 DDRV_KeepBootMode, TRUE,
45 DDRV_MonitorID , 0,
46 DDRV_IDMask , 0xF0000000,
47 TAG_DONE);
49 CloseLibrary(OOPBase);
51 D(bug("AMIGAGFXHIDD AddDisplayDriver() result: %u\n", err));
52 return err ? FALSE : TRUE;
55 ADD2INITLIB(AmigaVideo_Init, 0)