Displaying 3 results from an estimated 3 matches for "rom_attr".
Did you mean:
iov_attr
2008 Sep 27
1
[PATCH 2/6 v3] PCI: add new general functions
...a ROM, try to expose it in sysfs. */
if (pci_resource_len(pdev, PCI_ROM_RESOURCE) ||
(pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW)) {
attr = kzalloc(sizeof(*attr), GFP_ATOMIC);
- if (attr) {
- pdev->rom_attr = attr;
- attr->size = pci_resource_len(pdev, PCI_ROM_RESOURCE);
- attr->attr.name = "rom";
- attr->attr.mode = S_IRUSR;
- attr->read = pci_read_rom;
- attr->write...
2008 Sep 27
1
[PATCH 2/6 v3] PCI: add new general functions
...a ROM, try to expose it in sysfs. */
if (pci_resource_len(pdev, PCI_ROM_RESOURCE) ||
(pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW)) {
attr = kzalloc(sizeof(*attr), GFP_ATOMIC);
- if (attr) {
- pdev->rom_attr = attr;
- attr->size = pci_resource_len(pdev, PCI_ROM_RESOURCE);
- attr->attr.name = "rom";
- attr->attr.mode = S_IRUSR;
- attr->read = pci_read_rom;
- attr->write...
2008 Sep 27
0
[PATCH 4/9] dom0 PCI: support SR-IOV capability
...:01 2008 -0400
@@ -559,6 +559,9 @@
}
/* add platform-specific attributes */
pcibios_add_platform_entries(pdev);
+
+ /* Single Root I/O Virtualization */
+ pci_iov_create_sysfs(pdev);
return 0;
}
@@ -587,6 +590,8 @@
kfree(pdev->rom_attr);
}
}
+
+ pci_iov_remove_sysfs(pdev);
}
static int __init pci_sysfs_init(void)
diff -r 040046b91eb7 -r 75504b97c0ab drivers/pci/pci.c
--- a/drivers/pci/pci.c Sat Sep 27 01:25:31 2008 -0400
+++ b/drivers/pci/pci.c Sat Sep 27 01:27:01 2008 -0400
@@ -921,11 +921,17 @@...