Date: Tue, 25 Dec 2007 19:32:08 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 131605 for review Message-ID: <200712251932.lBPJW8S0024662@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131605 Change 131605 by hselasky@hselasky_laptop001 on 2007/12/25 19:31:27 Add a new device method that handles USB interface requests in USB device mode. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_if.m#4 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_if.m#4 (text+ko) ==== @@ -40,3 +40,19 @@ METHOD int reconfigure { device_t dev; }; + +# The device received a control request +# +# Return values: +# 0: Success +# ENOTTY: Transaction stalled +# Else: Use builtin request handler +# +METHOD int handle_request { + device_t dev; + const void *req; /* pointer to the device request */ + void **pptr; /* data pointer */ + uint16_t *plen; /* maximum transfer length */ + uint16_t offset; /* data offset */ + uint8_t is_complete; /* set if transfer is complete */ +};
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712251932.lBPJW8S0024662>