blob: 28223fe9decc7bff2978697e77f38e99cd2766ad [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _PLATFORM_DEVICE_H_
20#define _PLATFORM_DEVICE_H_
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/device.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022struct platform_device {
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024 const char * name;
25 u32 id;
26 struct device dev;
27 u32 num_resources;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 struct resource * resource;
30};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define to_platform_device(x) container_of((x), struct platform_device, dev)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032struct platform_driver {
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 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);
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 int (*resume)(struct platform_device *);
40 struct device_driver driver;
41};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#define platform_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define platform_set_drvdata(_dev,data) dev_set_drvdata(&(_dev)->dev, (data))
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045#endif