VSF Documented
bus.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_DEVICE_BUS_H__
2#define __VSF_LINUX_DEVICE_BUS_H__
3
4#include <linux/types.h>
5#include <linux/kobject.h>
6#include <linux/pm.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12struct device;
13struct device_driver;
14
15struct bus_type {
16 const char *name;
17 const char *dev_name;
19
20 int (*match)(struct device *dev, struct device_driver *drv);
21 int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
22 int (*probe)(struct device *dev);
23 int (*remove)(struct device *dev);
24 int (*shutdown)(struct device *dev);
25
26 int (*suspend)(struct device *dev, pm_message_t state);
27 int (*resume)(struct device *dev);
28
29 const struct dev_pm_ops *pm;
30};
31
32extern int bus_register(struct bus_type *bus);
33extern void bus_unregister(struct bus_type *bus);
34extern int bus_rescan_devices(struct bus_type *bus);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif
int bus_register(struct bus_type *bus)
Definition vsf_linux_core.c:602
void bus_unregister(struct bus_type *bus)
Definition vsf_linux_core.c:607
int bus_rescan_devices(struct bus_type *bus)
Definition vsf_linux_core.c:611
Definition bus.h:15
int(* suspend)(struct device *dev, pm_message_t state)
Definition bus.h:26
const char * name
Definition bus.h:16
int(* resume)(struct device *dev)
Definition bus.h:27
const struct dev_pm_ops * pm
Definition bus.h:29
int(* shutdown)(struct device *dev)
Definition bus.h:24
int(* match)(struct device *dev, struct device_driver *drv)
Definition bus.h:20
int(* remove)(struct device *dev)
Definition bus.h:23
int(* probe)(struct device *dev)
Definition bus.h:22
struct device * dev_root
Definition bus.h:18
int(* uevent)(struct device *dev, struct kobj_uevent_env *env)
Definition bus.h:21
const char * dev_name
Definition bus.h:17
Definition pm.h:10
Definition driver.h:28
Definition device.h:33
Definition kobject.h:27
Definition pm.h:18
uint8_t state
Definition vsf_msg_tree.h:247