OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [drivers/] [base/] [power/] [power.h] - Blame information for rev 62

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
/*
2
 * shutdown.c
3
 */
4
 
5
extern void device_shutdown(void);
6
 
7
 
8
#ifdef CONFIG_PM_SLEEP
9
 
10
/*
11
 * main.c
12
 */
13
 
14
extern struct list_head dpm_active;     /* The active device list */
15
 
16
static inline struct device *to_device(struct list_head *entry)
17
{
18
        return container_of(entry, struct device, power.entry);
19
}
20
 
21
extern void device_pm_add(struct device *);
22
extern void device_pm_remove(struct device *);
23
 
24
#else /* CONFIG_PM_SLEEP */
25
 
26
 
27
static inline void device_pm_add(struct device *dev)
28
{
29
}
30
 
31
static inline void device_pm_remove(struct device *dev)
32
{
33
}
34
 
35
#endif
36
 
37
#ifdef CONFIG_PM
38
 
39
/*
40
 * sysfs.c
41
 */
42
 
43
extern int dpm_sysfs_add(struct device *);
44
extern void dpm_sysfs_remove(struct device *);
45
 
46
#else /* CONFIG_PM */
47
 
48
static inline int dpm_sysfs_add(struct device *dev)
49
{
50
        return 0;
51
}
52
 
53
static inline void dpm_sysfs_remove(struct device *dev)
54
{
55
}
56
 
57
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.