usb_ioctl.h (213852) | usb_ioctl.h (219100) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_ioctl.h 213852 2010-10-14 20:38:18Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_ioctl.h 219100 2011-02-28 17:23:15Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 168 unchanged lines hidden (view full) --- 178 179struct usb_fs_uninit { 180 uint8_t dummy; /* zero */ 181}; 182 183struct usb_fs_open { 184#define USB_FS_MAX_BUFSIZE (1 << 18) 185 uint32_t max_bufsize; | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 5 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 168 unchanged lines hidden (view full) --- 178 179struct usb_fs_uninit { 180 uint8_t dummy; /* zero */ 181}; 182 183struct usb_fs_open { 184#define USB_FS_MAX_BUFSIZE (1 << 18) 185 uint32_t max_bufsize; |
186#define USB_FS_MAX_FRAMES (1 << 12) 187 uint32_t max_frames; | 186#define USB_FS_MAX_FRAMES (1U << 12) 187#define USB_FS_MAX_FRAMES_PRE_SCALE (1U << 31) /* for ISOCHRONOUS transfers */ 188 uint32_t max_frames; /* read and write */ |
188 uint16_t max_packet_length; /* read only */ 189 uint8_t dev_index; /* currently unused */ 190 uint8_t ep_index; 191 uint8_t ep_no; /* bEndpointNumber */ 192}; 193 194struct usb_fs_close { 195 uint8_t ep_index; --- 98 unchanged lines hidden --- | 189 uint16_t max_packet_length; /* read only */ 190 uint8_t dev_index; /* currently unused */ 191 uint8_t ep_index; 192 uint8_t ep_no; /* bEndpointNumber */ 193}; 194 195struct usb_fs_close { 196 uint8_t ep_index; --- 98 unchanged lines hidden --- |