search for: acpi_device_hid_show

Displaying 1 result from an estimated 1 matches for "acpi_device_hid_show".

2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...ssize_t(*show) (struct acpi_device *, char *); - ssize_t(*store) (struct acpi_device *, const char *, size_t); -}; typedef void acpi_device_sysfs_files(struct kobject *, const struct attribute *); @@ -111,6 +105,42 @@ .uevent_ops = &namespace_uevent_ops, }; +static ssize_t +acpi_device_hid_show(struct acpi_device *acpi_dev, char *buf) +{ + return sprintf(buf, "%s\n", acpi_dev->pnp.hardware_id); +} +ACPI_DEVICE_ATTR(hid, 0444, acpi_device_hid_show, NULL); + +static ssize_t +acpi_device_uid_show(struct acpi_device *acpi_dev, char *buf) +{ + return sprintf(buf, "%s\n&quot...