Subversion Repositories Kolibri OS

Rev

Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 6936
Line 1... Line 1...
1
#ifndef COMPONENT_H
1
#ifndef COMPONENT_H
2
#define COMPONENT_H
2
#define COMPONENT_H
Line -... Line 3...
-
 
3
 
-
 
4
#include 
3
 
5
 
Line 4... Line 6...
4
struct device;
6
struct device;
5
 
7
 
-
 
8
struct component_ops {
6
struct component_ops {
9
	int (*bind)(struct device *comp, struct device *master,
-
 
10
		    void *master_data);
7
	int (*bind)(struct device *, struct device *, void *);
11
	void (*unbind)(struct device *comp, struct device *master,
Line 8... Line 12...
8
	void (*unbind)(struct device *, struct device *, void *);
12
		       void *master_data);
9
};
13
};
Line 10... Line 14...
10
 
14
 
11
int component_add(struct device *, const struct component_ops *);
15
int component_add(struct device *, const struct component_ops *);
Line 12... Line 16...
12
void component_del(struct device *, const struct component_ops *);
16
void component_del(struct device *, const struct component_ops *);
Line 13... Line 17...
13
 
17
 
14
int component_bind_all(struct device *, void *);
-
 
15
void component_unbind_all(struct device *, void *);
18
int component_bind_all(struct device *master, void *master_data);
16
 
19
void component_unbind_all(struct device *master, void *master_data);
17
struct master;
20
 
Line 18... Line -...
18
 
-
 
19
struct component_master_ops {
21
struct master;
20
	int (*add_components)(struct device *, struct master *);
22
 
Line 21... Line -...
21
	int (*bind)(struct device *);
-
 
22
	void (*unbind)(struct device *);
-
 
23
};
-
 
24
 
23
struct component_master_ops {
Line 25... Line 24...
25
int component_master_add(struct device *, const struct component_master_ops *);
24
	int (*bind)(struct device *master);
26
void component_master_del(struct device *,
25
	void (*unbind)(struct device *master);
27
	const struct component_master_ops *);
26
};
-
 
27
 
-
 
28
void component_master_del(struct device *,
28
 
29
	const struct component_master_ops *);
Line -... Line 30...
-
 
30
 
-
 
31
struct component_match;
-
 
32
 
-
 
33
int component_master_add_with_match(struct device *,
-
 
34
	const struct component_master_ops *, struct component_match *);
-
 
35
void component_match_add_release(struct device *master,
-
 
36
	struct component_match **matchptr,
-
 
37
	void (*release)(struct device *, void *),
29
int component_master_add_child(struct master *master,
38
	int (*compare)(struct device *, void *), void *compare_data);