projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c87deff
)
PCI: define inline for test of channel error state
author
Linas Vepstas
<
[email protected]
>
Tue, 12 Dec 2006 22:55:59 +0000
(16:55 -0600)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 7 Feb 2007 23:50:03 +0000
(15:50 -0800)
Add very simple routine to indicate the pci channel error state.
Signed-off-by: Linas Vepstas <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
include/linux/pci.h
patch
|
blob
|
history
diff --git
a/include/linux/pci.h
b/include/linux/pci.h
index df875626b71a57520752ada49058e54d95727aa3..79856b3c714ae0bb55fd4a87e785a910502cccaf 100644
(file)
--- a/
include/linux/pci.h
+++ b/
include/linux/pci.h
@@
-181,6
+181,11
@@
struct pci_dev {
#define to_pci_dev(n) container_of(n, struct pci_dev, dev)
#define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL)
+static inline int pci_channel_offline(struct pci_dev *pdev)
+{
+ return (pdev->error_state != pci_channel_io_normal);
+}
+
static inline struct pci_cap_saved_state *pci_find_saved_cap(
struct pci_dev *pci_dev,char cap)
{