Commit 04725ad5 authored by Ong Boon Leong's avatar Ong Boon Leong Committed by H. Peter Anvin

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: default avatarOng Boon Leong <boon.leong.ong@intel.com>
Link: http://lkml.kernel.org/r/1399668248-24199-5-git-send-email-david.e.box@linux.intel.comSigned-off-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 90916e04
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
#include <asm/iosf_mbi.h> #include <asm/iosf_mbi.h>
#define PCI_DEVICE_ID_BAYTRAIL 0x0F00
#define PCI_DEVICE_ID_QUARK_X1000 0x0958
static DEFINE_SPINLOCK(iosf_mbi_lock); static DEFINE_SPINLOCK(iosf_mbi_lock);
static inline u32 iosf_mbi_form_mcr(u8 op, u8 port, u8 offset) static 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,8 +203,8 @@ static int iosf_mbi_probe(struct pci_dev *pdev,
} }
static DEFINE_PCI_DEVICE_TABLE(iosf_mbi_pci_ids) = { static DEFINE_PCI_DEVICE_TABLE(iosf_mbi_pci_ids) = {
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0F00) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_BAYTRAIL) },
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0958) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_QUARK_X1000) },
{ 0, }, { 0, },
}; };
MODULE_DEVICE_TABLE(pci, iosf_mbi_pci_ids); MODULE_DEVICE_TABLE(pci, iosf_mbi_pci_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment