Insufficient memory reserved for xfer->dma_page_ptr?

Hans Petter Selasky hselasky at c2i.net
Wed Feb 20 14:50:53 UTC 2013


On Wednesday 20 February 2013 15:44:12 Aman Sawrup wrote:
> Hi Hans,
> 
> If I understand correctly, I need to set bufsize in struct usb_config as 
> follows:
> 
>         [UMASS_T_BBB_DATA_READ] = {
>                 .type = UE_BULK,
>                 .endpoint = UE_ADDR_ANY,
>                 .direction = UE_DIR_IN,
>                 .frames = 128,
>                 .bufsize = UMASS_BULK_SIZE * 128,
>                 .flags = {.proxy_buffer = 1,.short_xfer_ok = 1,
> UMASS_USB_FLAGS}, .callback = &umass_t_bbb_data_read_callback,
>                 .timeout = 0,   /* overwritten later */
>         },
> 
> Thanks
> Aman

Yes, that is correct: "* 128"

Do you see any problems using this setting? Also note that unless you specify 
ext_buffer in flags, the USB API will allocate a buffer for you.

--HPS


More information about the freebsd-usb mailing list