blob: 3d89c36191913e11e498ccaba8238608cb5ecc8b [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 _TRANSPORT_CLASS_H_
20#define _TRANSPORT_CLASS_H_
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/device.h>
22#include <linux/attribute_container.h>
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 -080024struct transport_container;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025struct transport_class {
26 struct class class;
27 int (*setup)(struct transport_container *, struct device *,
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 class_device *);
30 int (*configure)(struct transport_container *, struct device *,
31 struct class_device *);
32 int (*remove)(struct transport_container *, struct device *,
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 struct class_device *);
35};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036#define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) struct transport_class cls = { .class = { .name = nm, }, .setup = su, .remove = rm, .configure = cfg, }
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037struct anon_transport_class {
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 struct transport_class tclass;
40 struct attribute_container container;
41};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#define DECLARE_ANON_TRANSPORT_CLASS(cls, mtch, cfg) struct anon_transport_class cls = { .tclass = { .configure = cfg, }, . container = { .match = mtch, }, }
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 class_to_transport_class(x) container_of(x, struct transport_class, class)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045struct transport_container {
46 struct attribute_container ac;
47 struct attribute_group *statistics;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080050#define attribute_container_to_transport_container(x) container_of(x, struct transport_container, ac)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080051#endif