ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-ia64 / sn / cdl.h
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 1992-1997,2000-2003 Silicon Graphics, Inc. All rights reserved.
7  */
8 #ifndef _ASM_IA64_SN_CDL_H
9 #define _ASM_IA64_SN_CDL_H
10
11 #ifdef __KERNEL__
12 #include <asm/sn/sgi.h>
13 #endif
14
15 struct cdl {
16         int part_num;                   /* Part part number */
17         int mfg_num;                    /* Part MFG number */
18         int (*attach)(vertex_hdl_t);    /* Attach routine */
19 };
20
21
22 /*
23  *      cdl: connection/driver list
24  *
25  *      support code for bus infrastructure for busses
26  *      that have self-identifying devices; initially
27  *      constructed for xtalk, pciio and gioio modules.
28  */
29 typedef struct cdl     *cdl_p;
30
31 /*
32  *      cdl_add_connpt: add a connection point
33  *
34  *      Calls the attach routines of all the drivers on
35  *      the list that match this connection point, in
36  *      the order that they were added to the list.
37  */
38 extern int              cdl_add_connpt(int key1,
39                                        int key2,
40                                        vertex_hdl_t conn,
41                                        int drv_flags);
42 #endif /* _ASM_IA64_SN_CDL_H */