search for: acpi_device_bbn_show

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

2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...mp;acpi_pci_roots) { + struct acpi_pci_root *root; + root = list_entry(entry, struct acpi_pci_root, node); + if (root->device == acpi_dev) + return sprintf(buf, "%04x\n", root->id.segment); + } + return 0; +} +ACPI_DEVICE_ATTR(seg, 0444, acpi_device_seg_show, NULL); + +ssize_t +acpi_device_bbn_show(struct acpi_device *acpi_dev, char *buf) +{ + struct list_head *entry; + + list_for_each(entry, &acpi_pci_roots) { + struct acpi_pci_root *root; + root = list_entry(entry, struct acpi_pci_root, node); + if (root->device == acpi_dev) + return sprintf(buf, "%02x\n", root->id...