diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2014-05-20 18:30:12 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 19:33:35 +0200 |
commit | 2eeb0016c1242f275f9ebacc687ab639689f8bad (patch) | |
tree | 575818c0ede304f4b90e51149822dbe67307b9a9 /drivers/usb/gadget/net2280.h | |
parent | usb: gadget: net2280: Use pr_* function (diff) | |
download | linux-2eeb0016c1242f275f9ebacc687ab639689f8bad.tar.xz linux-2eeb0016c1242f275f9ebacc687ab639689f8bad.zip |
usb: gadget: net2280: Use quirks instead of pci id
Use of quirks improve readability and will be easier to add new devices
to this driver.
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/usb/gadget/net2280.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/net2280.h b/drivers/usb/gadget/net2280.h index dc9ca1d5dc8e..03f15242d794 100644 --- a/drivers/usb/gadget/net2280.h +++ b/drivers/usb/gadget/net2280.h @@ -44,6 +44,10 @@ set_idx_reg(struct net2280_regs __iomem *regs, u32 index, u32 value) #define PCI_VENDOR_ID_PLX_LEGACY 0x17cc +#define PLX_LEGACY BIT(0) +#define PLX_2280 BIT(1) +#define PLX_SUPERSPEED BIT(2) + #define REG_DIAG 0x0 #define RETRY_COUNTER 16 #define FORCE_PCI_SERR 11 @@ -166,6 +170,8 @@ struct net2280 { u16 chiprev; int enhanced_mode; int n_ep; + kernel_ulong_t quirks; + /* pci state used to access those endpoints */ struct pci_dev *pdev; |