1 #ifndef MODINITTOOLS_DEPMOD_H
2 #define MODINITTOOLS_DEPMOD_H
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
);
13 #define streq(a,b) (strcmp((a),(b)) == 0)
17 /* Next module in list of all modules */
21 struct module_ops
*ops
;
26 /* Dependencies: filled in by ops->calculate_deps() */
27 unsigned int num_deps
;
30 /* Set while we are traversing dependencies */
31 struct list_head dep_list
;
33 /* Line number in modules.order (or INDEX_PRIORITY_MIN) */
36 /* Tables extracted from module by ops->fetch_tables(). */
37 unsigned int pci_size
;
39 unsigned int usb_size
;
41 unsigned int ieee1394_size
;
43 unsigned int ccw_size
;
45 unsigned int pnp_size
;
47 unsigned int pnp_card_size
;
48 unsigned int pnp_card_offset
;
50 unsigned int input_size
;
52 unsigned int input_table_size
;
53 unsigned int serio_size
;
58 /* File contents and length. */
62 char *basename
; /* points into pathname */
66 #define END(x, conv) \
69 if (conv) __convert_endian(&(x), &(__x), sizeof(__x)); \
74 static inline void __convert_endian(const void *src
, void *dest
,
78 for (i
= 0; i
< size
; i
++)
79 ((unsigned char*)dest
)[i
] = ((unsigned char*)src
)[size
- i
-1];
81 #endif /* MODINITTOOLS_DEPMOD_H */