[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] Cleanup function name relating resource reassignment.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1231152876 0 # Node ID cfb171ddbb333df9671a1da62e40122a56213ab4 # Parent 78d81e85e8cd8a0a26bc9b760c67d435341f43f8 Cleanup function name relating resource reassignment. Existing functions don't have "pci_" prefix. But they are part of PCI driver. So the patch adds "pci_" prefix to them. Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx> --- Documentation/kernel-parameters.txt | 5 +++++ drivers/pci/pci.h | 4 ++-- drivers/pci/quirks.c | 2 +- drivers/pci/reassigndev.c | 6 +++--- drivers/pci/setup-bus.c | 2 +- drivers/pci/setup-res.c | 6 +++--- 6 files changed, 15 insertions(+), 10 deletions(-) diff -r 78d81e85e8cd -r cfb171ddbb33 Documentation/kernel-parameters.txt --- a/Documentation/kernel-parameters.txt Mon Jan 05 10:54:08 2009 +0000 +++ b/Documentation/kernel-parameters.txt Mon Jan 05 10:54:36 2009 +0000 @@ -1240,6 +1240,11 @@ running once the system is up. bootloader. This is currently used on IXP2000 systems where the bus has to be configured a certain way for adjunct CPUs. + reassigndev= + Format: [<segment>:]<bus>:<dev>.<func>[,[<segment>:]<bus>:<dev>.<func>[,...]] + Specifies device to reassign page-aligned memory + resources. PCI-PCI bridge can be specified, if + resource windows need to be expanded. reassign_resources Use guestdev parameter to reassign device's resources. diff -r 78d81e85e8cd -r cfb171ddbb33 drivers/pci/pci.h --- a/drivers/pci/pci.h Mon Jan 05 10:54:08 2009 +0000 +++ b/drivers/pci/pci.h Mon Jan 05 10:54:36 2009 +0000 @@ -100,10 +100,10 @@ pci_match_one_device(const struct pci_de } #ifdef CONFIG_PCI_REASSIGN -extern int is_reassigndev(struct pci_dev *dev); +extern int pci_is_reassigndev(struct pci_dev *dev); extern void pci_disable_bridge_window(struct pci_dev *dev); #else -#define is_reassigndev(dev) 0 +#define pci_is_reassigndev(dev) 0 #endif #ifdef CONFIG_PCI_GUESTDEV diff -r 78d81e85e8cd -r cfb171ddbb33 drivers/pci/quirks.c --- a/drivers/pci/quirks.c Mon Jan 05 10:54:08 2009 +0000 +++ b/drivers/pci/quirks.c Mon Jan 05 10:54:36 2009 +0000 @@ -36,7 +36,7 @@ static void __devinit quirk_release_reso int i; struct resource *r; - if (is_reassigndev(dev)) { + if (pci_is_reassigndev(dev)) { if (dev->hdr_type == PCI_HEADER_TYPE_NORMAL && (dev->class >> 8) == PCI_CLASS_BRIDGE_HOST) { /* PCI Host Bridge isn't a target device */ diff -r 78d81e85e8cd -r cfb171ddbb33 drivers/pci/reassigndev.c --- a/drivers/pci/reassigndev.c Mon Jan 05 10:54:08 2009 +0000 +++ b/drivers/pci/reassigndev.c Mon Jan 05 10:54:36 2009 +0000 @@ -26,15 +26,15 @@ static char param_reassigndev[REASSIGNDEV_PARAM_MAX] = {0}; -static int __init reassigndev_setup(char *str) +static int __init pci_reassigndev_setup(char *str) { strncpy(param_reassigndev, str, REASSIGNDEV_PARAM_MAX); param_reassigndev[REASSIGNDEV_PARAM_MAX - 1] = '\0'; return 1; } -__setup("reassigndev=", reassigndev_setup); +__setup("reassigndev=", pci_reassigndev_setup); -int is_reassigndev(struct pci_dev *dev) +int pci_is_reassigndev(struct pci_dev *dev) { char dev_str[TOKEN_MAX+1]; int seg, bus, slot, func; diff -r 78d81e85e8cd -r cfb171ddbb33 drivers/pci/setup-bus.c --- a/drivers/pci/setup-bus.c Mon Jan 05 10:54:08 2009 +0000 +++ b/drivers/pci/setup-bus.c Mon Jan 05 10:54:36 2009 +0000 @@ -345,7 +345,7 @@ pbus_size_mem(struct pci_bus *bus, unsig list_for_each_entry(dev, &bus->devices, bus_list) { int i; - int reassign = is_reassigndev(dev); + int reassign = pci_is_reassigndev(dev); for (i = 0; i < PCI_NUM_RESOURCES; i++) { struct resource *r = &dev->resource[i]; diff -r 78d81e85e8cd -r cfb171ddbb33 drivers/pci/setup-res.c --- a/drivers/pci/setup-res.c Mon Jan 05 10:54:08 2009 +0000 +++ b/drivers/pci/setup-res.c Mon Jan 05 10:54:36 2009 +0000 @@ -138,7 +138,7 @@ int pci_assign_resource(struct pci_dev * struct resource *res = dev->resource + resno; resource_size_t size, min, align; int ret; - int reassigndev = is_reassigndev(dev); + int reassigndev = pci_is_reassigndev(dev); size = res->end - res->start + 1; min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM; @@ -234,7 +234,7 @@ pdev_sort_resources(struct pci_dev *dev, pdev_sort_resources(struct pci_dev *dev, struct resource_list *head) { int i; - int reassigndev = is_reassigndev(dev); + int reassigndev = pci_is_reassigndev(dev); for (i = 0; i < PCI_NUM_RESOURCES; i++) { struct resource *r; @@ -271,7 +271,7 @@ pdev_sort_resources(struct pci_dev *dev, ln->res->start; if ((idx < PCI_BRIDGE_RESOURCES) && (ln->res->flags & IORESOURCE_MEM) && - is_reassigndev(ln->dev)) + pci_is_reassigndev(ln->dev)) align = ALIGN(align, PAGE_SIZE); } if (r_align > align) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |