- Include aros/config.h at almost all places where AROS_FLAVOUR is used.
[AROS.git] / rom / expansion / expansion_init.c
bloba04f19405eff6e52c6435a9e999ca8860b5bfb2e
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Expansion Resident and initialization.
6 Lang: english
7 */
9 #include <aros/config.h>
10 #include <aros/symbolsets.h>
11 #include <exec/types.h>
12 #include <exec/lists.h>
13 #include <exec/alerts.h>
14 #include <exec/libraries.h>
15 #include <exec/resident.h>
16 #include <exec/execbase.h>
17 #include <proto/exec.h>
18 #include <proto/expansion.h>
20 #include "expansion_intern.h"
21 #include LC_LIBDEFS_FILE
24 static int ExpansionInit(LIBBASETYPEPTR LIBBASE)
26 D(bug("expansion init\n"));
28 NEWLIST(&LIBBASE->eb_MountList);
29 NEWLIST(&LIBBASE->eb_BoardList);
31 memset(&LIBBASE->eb_BindSemaphore, 0, sizeof(LIBBASE->eb_BindSemaphore));
32 InitSemaphore(&LIBBASE->eb_BindSemaphore);
34 /* See what expansion hardware we can detect. */
35 #if (AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT)
36 ConfigChain((APTR)E_EXPANSIONBASE);
37 #endif
39 return TRUE;
42 ADD2INITLIB(ExpansionInit, 0);