diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-04-16 03:15:08 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-04-16 03:15:08 +0000 |
commit | ac7452631f13ef6bbb59e825e8e3ebb14d8e9a46 (patch) | |
tree | cf23c71c7e34af0cfac5b28b2ffe945c0e186ffe /sys/dev/pci/pcivar.h | |
parent | 02bfb74887fb02ecc4b5eab12bac663cb1136040 (diff) | |
download | FreeBSD-src-ac7452631f13ef6bbb59e825e8e3ebb14d8e9a46.zip FreeBSD-src-ac7452631f13ef6bbb59e825e8e3ebb14d8e9a46.tar.gz |
Return status for PCI methods '{enable,disable}_{io,busmaster}'.
Reviewed by: imp
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r-- | sys/dev/pci/pcivar.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index 45df9e4..53ad3a0 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -249,28 +249,28 @@ PCIB_ACCESSOR(bus, BUS, u_int32_t) * These should be used in preference to manually manipulating * configuration space. */ -static __inline void +static __inline int pci_enable_busmaster(device_t dev) { - PCI_ENABLE_BUSMASTER(device_get_parent(dev), dev); + return(PCI_ENABLE_BUSMASTER(device_get_parent(dev), dev)); } -static __inline void +static __inline int pci_disable_busmaster(device_t dev) { - PCI_DISABLE_BUSMASTER(device_get_parent(dev), dev); + return(PCI_DISABLE_BUSMASTER(device_get_parent(dev), dev)); } -static __inline void +static __inline int pci_enable_io(device_t dev, int space) { - PCI_ENABLE_IO(device_get_parent(dev), dev, space); + return(PCI_ENABLE_IO(device_get_parent(dev), dev, space)); } -static __inline void +static __inline int pci_disable_io(device_t dev, int space) { - PCI_DISABLE_IO(device_get_parent(dev), dev, space); + return(PCI_DISABLE_IO(device_get_parent(dev), dev, space)); } /* |