Subversion Repositories Kolibri OS

Rev

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

Rev 1408 Rev 3262
Line 33... Line 33...
33
 
33
 
34
#include 
34
#include 
Line 35... Line 35...
35
struct kobject;
35
struct kobject;
36
 
-
 
37
#define TTM_PFX "[TTM] "
-
 
38
 
-
 
39
enum ttm_global_types {
-
 
40
	TTM_GLOBAL_TTM_MEM = 0,
-
 
41
	TTM_GLOBAL_TTM_BO,
-
 
42
	TTM_GLOBAL_TTM_OBJECT,
-
 
43
	TTM_GLOBAL_NUM
-
 
44
};
-
 
45
 
-
 
46
struct ttm_global_reference {
-
 
47
	enum ttm_global_types global_type;
-
 
48
	size_t size;
-
 
49
	void *object;
-
 
50
	int (*init) (struct ttm_global_reference *);
-
 
51
	void (*release) (struct ttm_global_reference *);
-
 
52
};
-
 
53
 
-
 
54
extern void ttm_global_init(void);
-
 
55
extern void ttm_global_release(void);
-
 
56
extern int ttm_global_item_ref(struct ttm_global_reference *ref);
36
 
Line 57... Line 37...
57
extern void ttm_global_item_unref(struct ttm_global_reference *ref);
37
#define TTM_PFX "[TTM] "