ia64/linux-2.6.18-xen.hg

diff include/acpi/acpi_bus.h @ 768:fad85221407b

Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 05 10:53:06 2009 +0000 (2009-01-05)
parents 831230e53067
children
line diff
     1.1 --- a/include/acpi/acpi_bus.h	Thu Dec 18 11:51:36 2008 +0000
     1.2 +++ b/include/acpi/acpi_bus.h	Mon Jan 05 10:53:06 2009 +0000
     1.3 @@ -359,6 +359,16 @@ acpi_handle acpi_get_child(acpi_handle, 
     1.4  acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int);
     1.5  #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->firmware_data))
     1.6  
     1.7 +#define ACPI_DEVICE_ATTR(_name,_mode,_show,_store) \
     1.8 +static struct acpi_device_attribute acpi_device_attr_##_name = \
     1.9 +		__ATTR(_name, _mode, _show, _store)
    1.10 +
    1.11 +struct acpi_device_attribute {
    1.12 +	struct attribute attr;
    1.13 +	ssize_t(*show) (struct acpi_device *, char *);
    1.14 +	ssize_t(*store) (struct acpi_device *, const char *, size_t);
    1.15 +};
    1.16 +
    1.17  #endif /* CONFIG_ACPI */
    1.18  
    1.19  #endif /*__ACPI_BUS_H__*/