aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback/conf_space_quirks.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-07-19 19:40:51 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-07-19 20:58:35 -0400
commita92336a1176b2119eaa990a1e8bf3109665fdbc6 (patch)
treeaf8ac49b47136acddb5320b9a62be2361bfaf99c /drivers/xen/xen-pciback/conf_space_quirks.h
parentc288b67b9b4d65790e1a1a1fd982330730b68f46 (diff)
xen/pciback: Drop two backends, squash and cleanup some code.
- Remove the slot and controller controller backend as they are not used. - Document the find pciback_[read|write]_config_[byte|word|dword] to make it easier to find. - Collapse the code from conf_space_capability_msi into pciback_ops.c - Collapse conf_space_capability_[pm|vpd].c in conf_space_capability.c [and remove the conf_space_capability.h file] - Rename all visible functions from pciback to xen_pcibk. - Rename all the printk/pr_info, etc that use the "pciback" to say "xen-pciback". - Convert functions that are not referenced outside the code to be static to save on name space. - Do the same thing for structures that are internal to the driver. - Run checkpatch.pl after the renames and fixup its warnings and fix any compile errors caused by the variable rename - Cleanup any structs that checkpath.pl commented about or just look odd. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xen-pciback/conf_space_quirks.h')
-rw-r--r--drivers/xen/xen-pciback/conf_space_quirks.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/xen/xen-pciback/conf_space_quirks.h b/drivers/xen/xen-pciback/conf_space_quirks.h
index acd0e1ae8fc5..cfcc517e4570 100644
--- a/drivers/xen/xen-pciback/conf_space_quirks.h
+++ b/drivers/xen/xen-pciback/conf_space_quirks.h
@@ -11,25 +11,23 @@
11#include <linux/pci.h> 11#include <linux/pci.h>
12#include <linux/list.h> 12#include <linux/list.h>
13 13
14struct pciback_config_quirk { 14struct xen_pcibk_config_quirk {
15 struct list_head quirks_list; 15 struct list_head quirks_list;
16 struct pci_device_id devid; 16 struct pci_device_id devid;
17 struct pci_dev *pdev; 17 struct pci_dev *pdev;
18}; 18};
19 19
20struct pciback_config_quirk *pciback_find_quirk(struct pci_dev *dev); 20int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field
21
22int pciback_config_quirks_add_field(struct pci_dev *dev, struct config_field
23 *field); 21 *field);
24 22
25int pciback_config_quirks_remove_field(struct pci_dev *dev, int reg); 23int xen_pcibk_config_quirks_remove_field(struct pci_dev *dev, int reg);
26 24
27int pciback_config_quirks_init(struct pci_dev *dev); 25int xen_pcibk_config_quirks_init(struct pci_dev *dev);
28 26
29void pciback_config_field_free(struct config_field *field); 27void xen_pcibk_config_field_free(struct config_field *field);
30 28
31int pciback_config_quirk_release(struct pci_dev *dev); 29int xen_pcibk_config_quirk_release(struct pci_dev *dev);
32 30
33int pciback_field_is_dup(struct pci_dev *dev, unsigned int reg); 31int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);
34 32
35#endif 33#endif