aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/iosf_mbi.c
diff options
context:
space:
mode:
authorOng Boon Leong <boon.leong.ong@intel.com>2014-05-09 16:44:08 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2014-05-09 17:57:35 -0400
commit04725ad59474d24553d526fa774179ecd2922342 (patch)
tree593bdaccc652eccd4d78e23cd544b8faafbf88aa /arch/x86/kernel/iosf_mbi.c
parent90916e048c1e0c1d379577e43ab9b8e331490cfb (diff)
x86, iosf: Add PCI ID macros for better readability
Introduce PCI IDs macro for the list of supported product: BayTrail & Quark X1000. Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com> Link: http://lkml.kernel.org/r/1399668248-24199-5-git-send-email-david.e.box@linux.intel.com Signed-off-by: David E. Box <david.e.box@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/iosf_mbi.c')
-rw-r--r--arch/x86/kernel/iosf_mbi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/iosf_mbi.c b/arch/x86/kernel/iosf_mbi.c
index 201a7abb1ab1..d30acdc1229d 100644
--- a/arch/x86/kernel/iosf_mbi.c
+++ b/arch/x86/kernel/iosf_mbi.c
@@ -25,6 +25,9 @@
25 25
26#include <asm/iosf_mbi.h> 26#include <asm/iosf_mbi.h>
27 27
28#define PCI_DEVICE_ID_BAYTRAIL 0x0F00
29#define PCI_DEVICE_ID_QUARK_X1000 0x0958
30
28static DEFINE_SPINLOCK(iosf_mbi_lock); 31static DEFINE_SPINLOCK(iosf_mbi_lock);
29 32
30static inline u32 iosf_mbi_form_mcr(u8 op, u8 port, u8 offset) 33static inline u32 iosf_mbi_form_mcr(u8 op, u8 port, u8 offset)
@@ -200,8 +203,8 @@ static int iosf_mbi_probe(struct pci_dev *pdev,
200} 203}
201 204
202static DEFINE_PCI_DEVICE_TABLE(iosf_mbi_pci_ids) = { 205static DEFINE_PCI_DEVICE_TABLE(iosf_mbi_pci_ids) = {
203 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0F00) }, 206 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_BAYTRAIL) },
204 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0958) }, 207 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_QUARK_X1000) },
205 { 0, }, 208 { 0, },
206}; 209};
207MODULE_DEVICE_TABLE(pci, iosf_mbi_pci_ids); 210MODULE_DEVICE_TABLE(pci, iosf_mbi_pci_ids);