version 1.234.2.35, 2015/03/02 21:52:02 |
version 1.234.2.36, 2015/03/02 22:16:38 |
Line 2767 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
Line 2767 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
int len, curlen, mps; |
int len, curlen, mps; |
int i, tog; |
int i, tog; |
int pages, pageoffs; |
int pages, pageoffs; |
bus_size_t curoffs; |
size_t curoffs; |
vaddr_t va, va_offs; |
vaddr_t va, va_offs; |
usb_dma_t *dma = &xfer->ux_dmabuf; |
usb_dma_t *dma = &xfer->ux_dmabuf; |
uint16_t flags = xfer->ux_flags; |
uint16_t flags = xfer->ux_flags; |
Line 2814 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
Line 2814 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
KASSERT(curlen != 0); |
KASSERT(curlen != 0); |
} |
} |
USBHIST_LOG(ehcidebug, "len=%d curlen=%d curoffs=%zu", |
USBHIST_LOG(ehcidebug, "len=%d curlen=%d curoffs=%zu", |
len, curlen, (size_t)curoffs, 0); |
len, curlen, curoffs, 0); |
|
|
/* |
/* |
* Allocate another transfer if there's more data left, |
* Allocate another transfer if there's more data left, |
Line 2857 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
Line 2857 ehci_alloc_sqtd_chain(struct ehci_pipe * |
|
cur->len = curlen; |
cur->len = curlen; |
|
|
USBHIST_LOG(ehcidebug, "cbp=0x%08zx end=0x%08zx", |
USBHIST_LOG(ehcidebug, "cbp=0x%08zx end=0x%08zx", |
(size_t)curoffs, (size_t)(curoffs + curlen), 0, 0); |
curoffs, curoffs + curlen, 0, 0); |
|
|
/* |
/* |
* adjust the toggle based on the number of packets in this |
* adjust the toggle based on the number of packets in this |