Download Universal serial bus controller with a direct memory access mode
Transcript
US 6,266,715 B1 13 14 16. The USB host of claim 15, each of the plurality of DMA channels having a DMA transmit channel, Wherein the a USB receive buffer for storing USB data received by the USB controller. 31. The USB controller of claim 29, Wherein the USB receive endpoint is con?gured for the DMA receive channel. 32. Amethod of transferring data from a receive endpoint of a universal serial bus (USB) controller using direct memory access (DMA), the receive endpoint having a DMA transmit channel issues a DMA request if the USB transmit buffer is not full. 17. The USB host of claim 13, each of the plurality of DMA channels having a DMA receive channel, each of the plurality of USB endpoints comprising: a USB receive endpoint selectively programmed for a DMA receive channel of one of the plurality of DMA channels during the DMA mode of the USB controller. 18. The USB host of claim 17, the USB receive endpoint receive buffer, comprising the steps of: 10 20. The USB host of claim 13, each of the plurality of DMA channels comprising: a DMA receive channel for handling data transfer from the USB device during the DMA mode of the USB controller. 21. The USB host of claim 13, each of the plurality of DMA channels comprising: 15 34. The method of claim 32, further comprising the step of: transferring USB data from the receive buffer responsive 25 of: updating a header of the receive buffer With a status of the USB data transferred if an end of a USB packet is detected. 36. The method of claim 32, Wherein the receive endpoint is programmed for a direct memory access receive channel. 35 programming the transmit endpoint to use one of a plurality of DMA channels; issuing a direct memory access request if the transmit buffer is not full; and issuing direct memory access requests until the transmit buffer is full. grammed for one of a plurality of DMA channels during the DMA mode of the USB controller. 26. The USB controller of claim 25, each of the USB endpoints comprising: 38. The method of claim 37, further comprising the step 45 of a plurality of DMA transmit channels of an internal DMA controller during the DMA mode of the USB controller. 27. The USB controller of claim 26, the USB transmit of: transferring USB data to the transmit buffer responsive to a USB transmit buffer for storing USB data to be trans mitted from the USB controller. a USB receive endpoint selectively programmed for one of a plurality of DMA channels during the DMA mode of the USB controller. 30. The USB controller of claim 29, the USB receive endpoint comprising: of: programming a maXimum packet siZe of USB data for transfer to the transmit endpoint to a value greater than a physical siZe of the transmit buffer. 39. The method of claim 37, further comprising the step endpoint comprising: of USB endpoints comprising: 37. A method of transferring data to a transmit endpoint of a universal serial bus (USB) controller using direct memory access (DMA), the transmit endpoint having a transmit buffer, comprising the steps of: memory access (DMA) mode, comprising: a plurality of USB endpoints, each selectively pro 28. The USB controller of claim 26, Wherein the USB transmit endpoint is con?gured for the DMA transmit chan nel. 29. The USB controller of claim 25, each of the plurality to a direct memory access request. 35. The method of claim 34, further comprising the step comprising: a USB transmit endpoint selectively programmed for one buffer is empty. 33. The method of claim 32, further comprising the step of: programming a maXimum packet siZe of USB data for transfer by the receive endpoint to a value greater than a physical siZe of the receive buffer. a DMA transmit channel for performing data transfer to the USB device during the DMA mode of the USB controller. 22. The USB host of claim 13, the DMA controller further at least one DMA control register con?gured to select each of the plurality of USB endpoints as a source for data to be provided to the USB device. 23. The USB host of claim 13, Wherein the USB controller and DMA controller are integrated into the USB host. 24. The USB host of claim 13, Wherein the USB host is a computer system. 25. Auniversal serial bus (USB) controller having a direct rality of DMA channels; issuing a direct memory access request if the receive buffer is not empty; and issuing direct memory access requests until the receive comprising: a USB receive buffer for storing USB data from the USB device. 19. The USB host of claim 18, Wherein the DMA receive channel issues a DMA request if the USB receive buffer is not empty. programming the receive endpoint to use one of a plu a direct memory access request. 40. The method of claim 39, further comprising the step 55 of: updating a header of the transmit buffer With a status of the USB data transferred if an end of a USB packet is detected. 41. The method of claim 37, Wherein the transmit end point is programmed for a direct memory access transmit channel.