aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-12-30 20:47:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-12-30 20:47:14 +0000
commit4e8790e943f9124fa5bfdce3f3d20b477b5a3216 (patch)
tree2e18981b24feef6425f28326218e699e93b7e1d7 /sys/dev/pci/pci_private.h
parentf26d7f8e958e57186c0b7382fcea9f22b9bd6932 (diff)
downloadsrc-4e8790e943f9124fa5bfdce3f3d20b477b5a3216.tar.gz
src-4e8790e943f9124fa5bfdce3f3d20b477b5a3216.zip
Teach the PCI bus driver to handle PCIR_BIOS BARs properly and remove special
handling for the PCIR_BIOS decoding enable bit from the cardbus driver. The PCIR_BIOS BAR does include type bits like other BARs. Instead, it is always a 32-bit non-prefetchable memory BAR where the low bit is used as a flag to enable decoding. Reviewed by: imp
Notes
Notes: svn path=/head/; revision=201279
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r--sys/dev/pci/pci_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index d75e4572f95c..1cb28e924937 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -84,6 +84,8 @@ struct resource *pci_alloc_resource(device_t dev, device_t child,
u_int flags);
int pci_activate_resource(device_t dev, device_t child, int type,
int rid, struct resource *r);
+int pci_deactivate_resource(device_t dev, device_t child, int type,
+ int rid, struct resource *r);
void pci_delete_resource(device_t dev, device_t child,
int type, int rid);
struct resource_list *pci_get_resource_list (device_t dev, device_t child);