Date: Fri, 18 Jan 2008 19:22:49 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 133572 for review Message-ID: <200801181922.m0IJMnmC049167@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133572 Change 133572 by hselasky@hselasky_laptop001 on 2008/01/18 19:20:19 Compile fix for uchcom. It appears I had forgotten this file when running my scripts some time back. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/uchcom.c#21 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#21 (text+ko) ==== @@ -239,7 +239,7 @@ .type = UE_BULK, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_OUT, - .bufsize = UCHCOM_BULK_BUF_SIZE, + .mh.bufsize = UCHCOM_BULK_BUF_SIZE, .mh.flags = {.pipe_bof = 1,.force_short_xfer = 1,}, .mh.callback = &uchcom_write_callback, }, @@ -248,7 +248,7 @@ .type = UE_BULK, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, - .bufsize = UCHCOM_BULK_BUF_SIZE, + .mh.bufsize = UCHCOM_BULK_BUF_SIZE, .mh.flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, .mh.callback = &uchcom_read_callback, }, @@ -257,20 +257,20 @@ .type = UE_CONTROL, .endpoint = 0x00, /* Control pipe */ .direction = UE_DIR_ANY, - .bufsize = sizeof(usb_device_request_t), + .mh.bufsize = sizeof(usb_device_request_t), .mh.callback = &uchcom_write_clear_stall_callback, .mh.timeout = 1000, /* 1 second */ - .interval = 50, /* 50ms */ + .mh.interval = 50, /* 50ms */ }, [3] = { .type = UE_CONTROL, .endpoint = 0x00, /* Control pipe */ .direction = UE_DIR_ANY, - .bufsize = sizeof(usb_device_request_t), + .mh.bufsize = sizeof(usb_device_request_t), .mh.callback = &uchcom_read_clear_stall_callback, .mh.timeout = 1000, /* 1 second */ - .interval = 50, /* 50ms */ + .mh.interval = 50, /* 50ms */ }, [4] = { @@ -278,7 +278,7 @@ .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, .mh.flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, - .bufsize = 0, /* use wMaxPacketSize */ + .mh.bufsize = 0, /* use wMaxPacketSize */ .mh.callback = &uchcom_intr_callback, }, @@ -286,10 +286,10 @@ .type = UE_CONTROL, .endpoint = 0x00, /* Control pipe */ .direction = UE_DIR_ANY, - .bufsize = sizeof(usb_device_request_t), + .mh.bufsize = sizeof(usb_device_request_t), .mh.callback = &uchcom_intr_clear_stall_callback, .mh.timeout = 1000, /* 1 second */ - .interval = 50, /* 50ms */ + .mh.interval = 50, /* 50ms */ }, }; @@ -434,7 +434,7 @@ goto done; } err = usbd_do_request_flags(sc->sc_udev, &Giant, req, - data, USBD_SHORT_XFER_OK, &actlen, 1000); + data, USBD_ERR_SHORT_XFER_OK, &actlen, 1000); if (err) { DPRINTFN(-1, "device request failed, err=%s " @@ -914,7 +914,7 @@ break; default: /* Error */ - if (xfer->error != USBD_CANCELLED) { + if (xfer->error != USBD_ERR_CANCELLED) { sc->sc_flag |= UCHCOM_FLAG_INTR_STALL; usbd_transfer_start(sc->sc_xfer[5]); } @@ -961,7 +961,7 @@ return; default: /* Error */ - if (xfer->error != USBD_CANCELLED) { + if (xfer->error != USBD_ERR_CANCELLED) { sc->sc_flag |= UCHCOM_FLAG_WRITE_STALL; usbd_transfer_start(sc->sc_xfer[2]); } @@ -1003,7 +1003,7 @@ return; default: /* Error */ - if (xfer->error != USBD_CANCELLED) { + if (xfer->error != USBD_ERR_CANCELLED) { sc->sc_flag |= UCHCOM_FLAG_READ_STALL; usbd_transfer_start(sc->sc_xfer[3]); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801181922.m0IJMnmC049167>