aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1760-hcd.h
diff options
context:
space:
mode:
authorArvid Brodin <arvid.brodin@enea.com>2011-02-26 16:04:40 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-28 22:23:37 -0500
commita041d8e4375ee6d78409a721221878dcad5eff8a (patch)
tree9749f4c0e373aace706ac037b2b535e1427ba31a /drivers/usb/host/isp1760-hcd.h
parentfd436aee97d157ff6441e7aaff2a2dc802765b5b (diff)
usb/isp1760: Clean up payload address handling
Encapsulate payload addresses within qtds. Signed-off-by: Arvid Brodin <arvid.brodin@enea.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp1760-hcd.h')
-rw-r--r--drivers/usb/host/isp1760-hcd.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/host/isp1760-hcd.h b/drivers/usb/host/isp1760-hcd.h
index a0599183b28b..587adbaa111a 100644
--- a/drivers/usb/host/isp1760-hcd.h
+++ b/drivers/usb/host/isp1760-hcd.h
@@ -108,7 +108,6 @@ struct ptd {
108 108
109struct inter_packet_info { 109struct inter_packet_info {
110 void *data_buffer; 110 void *data_buffer;
111 u32 payload;
112#define PTD_FIRE_NEXT (1 << 0) 111#define PTD_FIRE_NEXT (1 << 0)
113#define PTD_URB_FINISHED (1 << 1) 112#define PTD_URB_FINISHED (1 << 1)
114 struct isp1760_qh *qh; 113 struct isp1760_qh *qh;
@@ -164,10 +163,8 @@ struct memory_chunk {
164#define BLOCK_2_SIZE 1024 163#define BLOCK_2_SIZE 1024
165#define BLOCK_3_SIZE 8192 164#define BLOCK_3_SIZE 8192
166#define BLOCKS (BLOCK_1_NUM + BLOCK_2_NUM + BLOCK_3_NUM) 165#define BLOCKS (BLOCK_1_NUM + BLOCK_2_NUM + BLOCK_3_NUM)
167#define PAYLOAD_SIZE 0xf000 166#define MAX_PAYLOAD_SIZE BLOCK_3_SIZE
168 167#define PAYLOAD_AREA_SIZE 0xf000
169/* I saw if some reloads if the pointer was negative */
170#define ISP1760_NULL_POINTER (0x400)
171 168
172/* ATL */ 169/* ATL */
173/* DW0 */ 170/* DW0 */
@@ -221,6 +218,4 @@ struct memory_chunk {
221#define NAK_COUNTER (0) 218#define NAK_COUNTER (0)
222#define ERR_COUNTER (2) 219#define ERR_COUNTER (2)
223 220
224#define HC_ATL_PL_SIZE (8192)
225
226#endif 221#endif