Displaying 2 results from an estimated 2 matches for "acpi_pci_root".
2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
....c
--- a/drivers/acpi/pci_root.c Thu Dec 18 11:51:36 2008 +0000
+++ b/drivers/acpi/pci_root.c Thu Dec 25 10:37:52 2008 +0900
@@ -151,6 +151,36 @@
return AE_OK;
}
+ssize_t
+acpi_device_seg_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, "%04x\n", root->id.segment);
+ }
+ return 0;
+}
+ACPI_DEVICE_ATTR(seg, 0444, acpi_device_seg_show, NULL);
+
+ssize_t
+acpi_device_bbn_...
2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...ind PCI-PCI bridge are
+ reserved.
pcmv= [HW,PCMCIA] BadgePAD 4
diff -r 4769a6db78f5 -r fcefb8852878 drivers/acpi/pci_root.c
--- a/drivers/acpi/pci_root.c Thu Dec 25 10:37:52 2008 +0900
+++ b/drivers/acpi/pci_root.c Thu Dec 25 10:43:34 2008 +0900
@@ -392,3 +392,32 @@
}
subsys_initcall(acpi_pci_root_init);
+
+int acpi_pci_get_root_seg_bbn(char *hid, char *uid, int *seg, int *bbn)
+{
+ 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->flags.hardware_id)
+...