Added m68k SetPatch (Loads 68040/68060 FPU support code and sets data cache/copyback...
[AROS.git] / rom / expansion / addconfigdev.c
blobcba3051cd6f5b394895469bd4efa5555f8d6c0d0
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Add a ConfigDev struct to the system.
6 Lang: english
7 */
8 #include "expansion_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <libraries/configvars.h>
15 #include <proto/expansion.h>
17 AROS_LH1(void, AddConfigDev,
19 /* SYNOPSIS */
20 AROS_LHA(struct ConfigDev *, configDev, A0),
22 /* LOCATION */
23 struct ExpansionBase *, ExpansionBase, 5, Expansion)
25 /* FUNCTION
26 This function will add a ConfigDev structure to the systems
27 list of Configuration Devices. This function is not normally
28 called by user code.
30 INPUTS
31 configDev - The Configuration Device to add to the system.
33 RESULT
34 The device will be added to the system.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 RemConfigDev()
45 INTERNALS
47 HISTORY
48 27-11-96 digulla automatically created from
49 expansion_lib.fd and clib/expansion_protos.h
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 if(configDev)
57 ObtainConfigBinding();
58 AddTail(&IntExpBase(ExpansionBase)->eb_BoardList, (struct Node *)configDev);
59 ReleaseConfigBinding();
62 AROS_LIBFUNC_EXIT
63 } /* AddConfigDev */