1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _PLATFORM_DEVICE_H_
20#define _PLATFORM_DEVICE_H_
21#include <linux/device.h>
22struct platform_device {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 const char * name;
25 u32 id;
26 struct device dev;
27 u32 num_resources;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 struct resource * resource;
30};
31#define to_platform_device(x) container_of((x), struct platform_device, dev)
32struct platform_driver {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 int (*probe)(struct platform_device *);
35 int (*remove)(struct platform_device *);
36 void (*shutdown)(struct platform_device *);
37 int (*suspend)(struct platform_device *, pm_message_t state);
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 int (*resume)(struct platform_device *);
40 struct device_driver driver;
41};
42#define platform_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define platform_set_drvdata(_dev,data) dev_set_drvdata(&(_dev)->dev, (data))
45#endif
46