From: Michael Ellerman Date: Wed, 22 Nov 2006 07:26:18 +0000 (+1100) Subject: PCI: Add pci_find_ht_capability() for finding Hypertransport capabilities X-Git-Tag: v2.6.20-rc2~82^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=687d5fe3dc33794efb500f42164a0588e2647914;p=pandora-kernel.git PCI: Add pci_find_ht_capability() for finding Hypertransport capabilities There are already several places in the kernel that want to search a PCI device for a given Hypertransport capability. Although this is possible using pci_find_capability() etc., it makes sense to encapsulate that logic in a helper - pci_find_ht_capability(). To cater for searching exhaustively for a capability, we also provide pci_find_next_ht_capability(). We also need to cater for the fact that the HT capability fields may be either 3 or 5 bits wide. pci_find_ht_capability() deals with this for you, but callers using the #defines directly must handle that themselves. Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed