direct-io.hg

view linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_quirks.h @ 14330:a6316fc7a87f

pci back: Various fixes.

- remove superfluous call to pciback_field_is_dup()
- fix a variable type mismatch in pciback_field_is_dup()
- make readability improvements by using the OFFSET macro
- revises quirk data output via the sysfs quirks node so that
- displayed offset information includes base_offset.

Thanks to Jambunathan K. for giving such specific bug diagnosis.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
author kfraser@localhost.localdomain
date Sat Mar 10 17:01:21 2007 +0000 (2007-03-10)
parents 4c97599398fe
children
line source
1 /*
2 * PCI Backend - Data structures for special overlays for broken devices.
3 *
4 * Ryan Wilson <hap9@epoch.ncsc.mil>
5 * Chris Bookholt <hap10@epoch.ncsc.mil>
6 */
8 #ifndef __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
9 #define __XEN_PCIBACK_CONF_SPACE_QUIRKS_H__
11 #include <linux/pci.h>
12 #include <linux/list.h>
14 struct pciback_config_quirk {
15 struct list_head quirks_list;
16 struct pci_device_id devid;
17 struct pci_dev *pdev;
18 };
20 struct pciback_config_quirk *pciback_find_quirk(struct pci_dev *dev);
22 int pciback_config_quirks_add_field(struct pci_dev *dev, struct config_field
23 *field);
25 int pciback_config_quirks_remove_field(struct pci_dev *dev, int reg);
27 int pciback_config_quirks_init(struct pci_dev *dev);
29 void pciback_config_field_free(struct config_field *field);
31 int pciback_config_quirk_release(struct pci_dev *dev);
33 int pciback_field_is_dup(struct pci_dev *dev, unsigned int reg);
35 #endif