aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/net2280.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2006-03-19 14:49:14 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-04-14 14:12:19 -0400
commit950ee4c8f094feecd3add994a2cf4fd335ca509b (patch)
tree732fb062b0b415fbf85673d1e57ac4b7d563de6d /drivers/usb/gadget/net2280.h
parentf043ca43c1ae354346f72dc5826d820d5619f0b2 (diff)
[PATCH] USB: net2282 and net2280 software compatibility
Below is a patch to gadgets/net2280.[ch] which adds support for the net2282 controller. The original code was kindly provided by PLX Technology, I just merged it with the current net2280 driver in the kernel. Tested on 2.6.15.6, but only with 2282. I did the merge, so that the behaviour for the 2280 is unaffected (except for short delays for extra checks). Signed-off-by: G. Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Support for net2282 in net2280 driver.
Diffstat (limited to 'drivers/usb/gadget/net2280.h')
-rw-r--r--drivers/usb/gadget/net2280.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/net2280.h b/drivers/usb/gadget/net2280.h
index fff4509cf340..e195abec8d7f 100644
--- a/drivers/usb/gadget/net2280.h
+++ b/drivers/usb/gadget/net2280.h
@@ -179,6 +179,7 @@ struct net2280_regs {
179#define PCI_TARGET_ABORT_RECEIVED_INTERRUPT 19 179#define PCI_TARGET_ABORT_RECEIVED_INTERRUPT 19
180#define PCI_RETRY_ABORT_INTERRUPT 17 180#define PCI_RETRY_ABORT_INTERRUPT 17
181#define PCI_MASTER_CYCLE_DONE_INTERRUPT 16 181#define PCI_MASTER_CYCLE_DONE_INTERRUPT 16
182#define SOF_DOWN_INTERRUPT 14
182#define GPIO_INTERRUPT 13 183#define GPIO_INTERRUPT 13
183#define DMA_D_INTERRUPT 12 184#define DMA_D_INTERRUPT 12
184#define DMA_C_INTERRUPT 11 185#define DMA_C_INTERRUPT 11
@@ -346,6 +347,7 @@ struct net2280_dma_regs { /* [11.7] */
346#define DMA_ENABLE 1 347#define DMA_ENABLE 1
347#define DMA_ADDRESS_HOLD 0 348#define DMA_ADDRESS_HOLD 0
348 u32 dmastat; 349 u32 dmastat;
350#define DMA_ABORT_DONE_INTERRUPT 27
349#define DMA_SCATTER_GATHER_DONE_INTERRUPT 25 351#define DMA_SCATTER_GATHER_DONE_INTERRUPT 25
350#define DMA_TRANSACTION_DONE_INTERRUPT 24 352#define DMA_TRANSACTION_DONE_INTERRUPT 24
351#define DMA_ABORT 1 353#define DMA_ABORT 1