diff options
Diffstat (limited to 'drivers/usb/host/fhci.h')
| -rw-r--r-- | drivers/usb/host/fhci.h | 28 | 
1 files changed, 5 insertions, 23 deletions
diff --git a/drivers/usb/host/fhci.h b/drivers/usb/host/fhci.h index 71c3caaea4c..154e6a00772 100644 --- a/drivers/usb/host/fhci.h +++ b/drivers/usb/host/fhci.h @@ -28,6 +28,7 @@  #include <linux/usb.h>  #include <linux/usb/hcd.h>  #include <asm/qe.h> +#include <asm/immap_qe.h>  #define USB_CLOCK	48000000 @@ -82,7 +83,7 @@  #define USB_TD_RX_ER_NONOCT	0x40000000 /* Tx Non Octet Aligned Packet */  #define USB_TD_RX_ER_BITSTUFF	0x20000000 /* Frame Aborted-Received pkt */  #define USB_TD_RX_ER_CRC	0x10000000 /* CRC error */ -#define USB_TD_RX_ER_OVERUN	0x08000000 /* Over - run occured */ +#define USB_TD_RX_ER_OVERUN	0x08000000 /* Over - run occurred */  #define USB_TD_RX_ER_PID	0x04000000 /* wrong PID received */  #define USB_TD_RX_DATA_UNDERUN	0x02000000 /* shorter than expected */  #define USB_TD_RX_DATA_OVERUN	0x01000000 /* longer than expected */ @@ -173,25 +174,6 @@  #define USB_E_TXB_MASK		0x0002  #define USB_E_RXB_MASK		0x0001 -/* Freescale USB Host controller registers */ -struct fhci_regs { -	u8 usb_mod;		/* mode register */ -	u8 usb_addr;		/* address register */ -	u8 usb_comm;		/* command register */ -	u8 reserved1[1]; -	__be16 usb_ep[4];	/* endpoint register */ -	u8 reserved2[4]; -	__be16 usb_event;	/* event register */ -	u8 reserved3[2]; -	__be16 usb_mask;	/* mask register */ -	u8 reserved4[1]; -	u8 usb_status;		/* status register */ -	__be16 usb_sof_tmr;	/* Start Of Frame timer */ -	u8 reserved5[2]; -	__be16 usb_frame_num;	/* frame number register */ -	u8 reserved6[1]; -}; -  /* Freescale USB HOST */  struct fhci_pram {  	__be16 ep_ptr[4];	/* Endpoint porter reg */ @@ -267,7 +249,7 @@ struct fhci_hcd {  	int gpios[NUM_GPIOS];  	bool alow_gpios[NUM_GPIOS]; -	struct fhci_regs __iomem *regs;	/* I/O memory used to communicate */ +	struct qe_usb_ctlr __iomem *regs; /* I/O memory used to communicate */  	struct fhci_pram __iomem *pram;	/* Parameter RAM */  	struct gtm_timer *timer; @@ -356,14 +338,14 @@ struct ed {  	/* read only parameters, should be cleared upon initialization */  	u8 toggle_carry;	/* toggle carry from the last TD submitted */ -	u32 last_iso;		/* time stamp of last queued ISO transfer */ +	u16 next_iso;		/* time stamp of next queued ISO transfer */  	struct td *td_head;	/* a pointer to the current TD handled */  };  struct td {  	void *data;		 /* a pointer to the data buffer */  	unsigned int len;	 /* length of the data to be submitted */ -	unsigned int actual_len; /* actual bytes transfered on this td */ +	unsigned int actual_len; /* actual bytes transferred on this td */  	enum fhci_ta_type type;	 /* transaction type */  	u8 toggle;		 /* toggle for next trans. within this TD */  	u16 iso_index;		 /* ISO transaction index */  | 
