revert between 56095 -> 55830 in arch
[AROS.git] / rom / expansion / addconfigdev.c
blob3ae6ad8d6e265d63785cea451a6336e73074c15c
1 /*
2 Copyright © 1995-2014, 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)->BoardList,
59 (struct Node *)configDev);
60 ReleaseConfigBinding();
63 AROS_LIBFUNC_EXIT
64 } /* AddConfigDev */