Add elf_core.c into the EXTRA_SOURCES for the static library
[mit.git] / depmod.h
blob32cab3daf8dbe97b15a318d2b47191ef66464c27
1 #ifndef MODINITTOOLS_DEPMOD_H
2 #define MODINITTOOLS_DEPMOD_H
3 #include "list.h"
5 struct module;
7 /* Functions provided by depmod.c */
8 void add_symbol(const char *name, struct module *owner);
9 struct module *find_symbol(const char *name, const char *modname, int weak);
10 void add_dep(struct module *mod, struct module *depends_on);
12 struct module
14 /* Next module in list of all modules */
15 struct module *next;
17 /* 64 or 32 bit? */
18 struct module_ops *ops;
20 /* Convert endian? */
21 int conv;
23 /* Dependencies: filled in by ops->calculate_deps() */
24 unsigned int num_deps;
25 struct module **deps;
27 /* Set while we are traversing dependencies */
28 struct list_head dep_list;
30 /* Line number in modules.order (or INDEX_PRIORITY_MIN) */
31 unsigned int order;
33 /* Tables extracted from module by ops->fetch_tables(). */
34 unsigned int pci_size;
35 void *pci_table;
36 unsigned int usb_size;
37 void *usb_table;
38 unsigned int ieee1394_size;
39 void *ieee1394_table;
40 unsigned int ccw_size;
41 void *ccw_table;
42 unsigned int pnp_size;
43 void *pnp_table;
44 unsigned int pnp_card_size;
45 unsigned int pnp_card_offset;
46 void *pnp_card_table;
47 unsigned int input_size;
48 void *input_table;
49 unsigned int input_table_size;
50 unsigned int serio_size;
51 void *serio_table;
52 unsigned int of_size;
53 void *of_table;
55 /* File contents and length. */
56 void *data;
57 unsigned long len;
59 char *basename; /* points into pathname */
60 char pathname[0];
63 #endif /* MODINITTOOLS_DEPMOD_H */