Imported Upstream version 2.0.16
[platform/upstream/acpid.git] / acpi_genetlink.h
1 #ifndef __ACPI_GENETLINK_H__
2 #define __ACPI_GENETLINK_H__ 1
3
4 #include <linux/types.h>
5
6 struct acpi_genl_event {
7         char device_class[20];
8         char bus_id[15];
9         __u32 type;
10         __u32 data;
11 };
12
13 /* attributes of acpi_genl_family */
14 enum {
15         ACPI_GENL_ATTR_UNSPEC,
16         ACPI_GENL_ATTR_EVENT,   /* ACPI event info needed by user space */
17         __ACPI_GENL_ATTR_MAX,
18 };
19 #define ACPI_GENL_ATTR_MAX (__ACPI_GENL_ATTR_MAX - 1)
20
21 /* commands supported by the acpi_genl_family */
22 enum {
23         ACPI_GENL_CMD_UNSPEC,
24         ACPI_GENL_CMD_EVENT,    /* kernel->user notifications for ACPI events */        __ACPI_GENL_CMD_MAX,
25 };
26 #define ACPI_GENL_CMD_MAX (__ACPI_GENL_CMD_MAX - 1)
27 #define GENL_MAX_FAM_OPS        256
28 #define GENL_MAX_FAM_GRPS       256
29
30 #define ACPI_EVENT_FAMILY_NAME          "acpi_event"
31 #define ACPI_EVENT_MCAST_GROUP_NAME     "acpi_mc_group"
32
33 #endif