Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kobject.h>
#include <linux/dmi.h>
#include <linux/capability.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/io.h>
Go to the source code of this file.
Data Structures | |
struct | dmi_sysfs_entry |
struct | dmi_sysfs_attribute |
struct | dmi_sysfs_mapped_attribute |
struct | find_dmi_data |
struct | dmi_read_state |
struct | dmi_entry_attr_show_data |
struct | dmi_system_event_log |
Macros | |
#define | MAX_ENTRY_TYPE |
#define | DMI_SYSFS_ATTR(_entry, _name) |
#define | DMI_SYSFS_MAPPED_ATTR(_entry, _name) |
#define | DMI_SEL_ACCESS_METHOD_IO8 0x00 |
#define | DMI_SEL_ACCESS_METHOD_IO2x8 0x01 |
#define | DMI_SEL_ACCESS_METHOD_IO16 0x02 |
#define | DMI_SEL_ACCESS_METHOD_PHYS32 0x03 |
#define | DMI_SEL_ACCESS_METHOD_GPNV 0x04 |
#define | DMI_SYSFS_SEL_FIELD(_field) |
Typedefs | |
typedef ssize_t(* | dmi_callback )(struct dmi_sysfs_entry *, const struct dmi_header *dh, void *) |
typedef u8(* | sel_io_reader )(const struct dmi_system_event_log *sel, loff_t offset) |
Functions | |
DMI_SYSFS_SEL_FIELD (area_length) | |
DMI_SYSFS_SEL_FIELD (header_start_offset) | |
DMI_SYSFS_SEL_FIELD (data_start_offset) | |
DMI_SYSFS_SEL_FIELD (access_method) | |
DMI_SYSFS_SEL_FIELD (status) | |
DMI_SYSFS_SEL_FIELD (change_token) | |
DMI_SYSFS_SEL_FIELD (access_method_address) | |
DMI_SYSFS_SEL_FIELD (header_format) | |
DMI_SYSFS_SEL_FIELD (type_descriptors_supported_count) | |
DMI_SYSFS_SEL_FIELD (per_log_type_descriptor_length) | |
module_init (dmi_sysfs_init) | |
module_exit (dmi_sysfs_exit) | |
MODULE_AUTHOR ("Mike Waychison <[email protected]>") | |
MODULE_DESCRIPTION ("DMI sysfs support") | |
MODULE_LICENSE ("GPL") | |
Variables | |
struct dmi_system_event_log | __packed |
#define DMI_SEL_ACCESS_METHOD_GPNV 0x04 |
Definition at line 240 of file dmi-sysfs.c.
#define DMI_SEL_ACCESS_METHOD_IO16 0x02 |
Definition at line 238 of file dmi-sysfs.c.
#define DMI_SEL_ACCESS_METHOD_IO2x8 0x01 |
Definition at line 237 of file dmi-sysfs.c.
#define DMI_SEL_ACCESS_METHOD_IO8 0x00 |
Definition at line 236 of file dmi-sysfs.c.
#define DMI_SEL_ACCESS_METHOD_PHYS32 0x03 |
Definition at line 239 of file dmi-sysfs.c.
#define DMI_SYSFS_ATTR | ( | _entry, | |
_name | |||
) |
Definition at line 54 of file dmi-sysfs.c.
#define DMI_SYSFS_MAPPED_ATTR | ( | _entry, | |
_name | |||
) |
Definition at line 71 of file dmi-sysfs.c.
#define DMI_SYSFS_SEL_FIELD | ( | _field | ) |
Definition at line 265 of file dmi-sysfs.c.
#define MAX_ENTRY_TYPE |
Definition at line 29 of file dmi-sysfs.c.
typedef ssize_t(* dmi_callback)(struct dmi_sysfs_entry *, const struct dmi_header *dh, void *) |
Definition at line 112 of file dmi-sysfs.c.
Definition at line 310 of file dmi-sysfs.c.
DMI_SYSFS_SEL_FIELD | ( | area_length | ) |
DMI_SYSFS_SEL_FIELD | ( | header_start_offset | ) |
DMI_SYSFS_SEL_FIELD | ( | data_start_offset | ) |
DMI_SYSFS_SEL_FIELD | ( | access_method | ) |
DMI_SYSFS_SEL_FIELD | ( | status | ) |
DMI_SYSFS_SEL_FIELD | ( | change_token | ) |
DMI_SYSFS_SEL_FIELD | ( | access_method_address | ) |
DMI_SYSFS_SEL_FIELD | ( | header_format | ) |
DMI_SYSFS_SEL_FIELD | ( | type_descriptors_supported_count | ) |
DMI_SYSFS_SEL_FIELD | ( | per_log_type_descriptor_length | ) |
MODULE_AUTHOR | ( | "Mike Waychison <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "DMI sysfs support" | ) |
module_exit | ( | dmi_sysfs_exit | ) |
module_init | ( | dmi_sysfs_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |