[BACK]Return to usb.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/usb.h between version 1.5 and 1.6

version 1.5, 1998/12/02 22:47:20 version 1.6, 1998/12/08 15:18:45
Line 186  typedef struct {
Line 186  typedef struct {
 #define UE_IN           0x80  #define UE_IN           0x80
 #define UE_OUT          0x00  #define UE_OUT          0x00
 #define UE_ADDR         0x0f  #define UE_ADDR         0x0f
   #define UE_GET_ADDR(a)  ((a) & UE_ADDR)
 #define UE_GET_IN(a)    (((a) >> 7) & 1)  #define UE_GET_IN(a)    (((a) >> 7) & 1)
         uByte           bmAttributes;          uByte           bmAttributes;
 #define UE_CONTROL      0x00  #define UE_CONTROL      0x00
Line 300  typedef struct {
Line 301  typedef struct {
 #define  UPROTO_PRINTER_BI      2  #define  UPROTO_PRINTER_BI      2
 #define UCLASS_HUB              9  #define UCLASS_HUB              9
 #define  USUBCLASS_HUB          1  #define  USUBCLASS_HUB          1
   #define UCLASS_DATA             10
   
 #define USB_HUB_MAX_DEPTH 5  #define USB_HUB_MAX_DEPTH 5
   
   /*
    * Minimum time a device needs to be powered down to go through
    * a power cycle.  XXX Is this time in the spec?
    */
   #define USB_POWER_DOWN_TIME     1000 /* ms */
   
 #define USB_PORT_RESET_DELAY    10  /* ms */  #define USB_PORT_RESET_DELAY    10  /* ms */
 #define USB_PORT_POWERUP_DELAY  100 /* ms */  #define USB_PORT_POWERUP_DELAY  100 /* ms */
 #define USB_POWER_SETTLE        100 /* ms */  #define USB_POWER_SETTLE        100 /* ms */
Line 322  struct usb_ctl_request {
Line 330  struct usb_ctl_request {
         void    *data;          void    *data;
 };  };
   
 struct usb_all_desc {  struct usb_alt_interface {
         u_char  data[1024];     /* filled data size will vary */          int     interface_index;
           int     alt_no;
   };
   
   #define USB_CURRENT_CONFIG_INDEX (-1)
   #define USB_CURRENT_ALT_INDEX (-1)
   
   struct usb_config_desc {
           int     config_index;
           usb_config_descriptor_t desc;
   };
   
   struct usb_interface_desc {
           int     config_index;
           int     interface_index;
           int     alt_index;
           usb_interface_descriptor_t desc;
   };
   
   struct usb_endpoint_desc {
           int     config_index;
           int     interface_index;
           int     alt_index;
           int     endpoint_index;
           usb_endpoint_descriptor_t desc;
   };
   
   struct usb_full_desc {
           int     config_index;
           u_int   size;
           u_char  *data;
 };  };
   
 struct usb_ctl_report_desc {  struct usb_ctl_report_desc {
Line 370  struct usb_device_stats {
Line 408  struct usb_device_stats {
 #define USB_GET_REPORT          _IOWR('U', 23, struct usb_ctl_report)  #define USB_GET_REPORT          _IOWR('U', 23, struct usb_ctl_report)
   
 /* Generic USB device */  /* Generic USB device */
 #define USB_SET_CONFIG          _IOW ('U', 100, int)  #define USB_GET_CONFIG          _IOR ('U', 100, int)
 #define USB_SET_INTERFACE       _IOW ('U', 101, int)  #define USB_SET_CONFIG          _IOW ('U', 101, int)
 #define USB_GET_DEVICE_DESC     _IOR ('U', 102, usb_device_descriptor_t)  #define USB_GET_ALTINTERFACE    _IOWR('U', 102, struct usb_alt_interface)
 #define USB_GET_CONFIG_DESC     _IOR ('U', 103, usb_config_descriptor_t)  #define USB_SET_ALTINTERFACE    _IOW ('U', 103, struct usb_alt_interface)
 #define USB_GET_INTERFACE_DESC  _IOR ('U', 104, usb_interface_descriptor_t)  #define USB_GET_NO_ALT          _IOWR('U', 104, struct usb_alt_interface)
 #define USB_GET_ALL_DESC        _IOR ('U', 105, struct usb_all_desc)  #define USB_GET_DEVICE_DESC     _IOR ('U', 105, usb_device_descriptor_t)
   #define USB_GET_CONFIG_DESC     _IOR ('U', 106, struct usb_config_desc)
   #define USB_GET_INTERFACE_DESC  _IOWR('U', 107, struct usb_interface_desc)
   #define USB_GET_ENDPOINT_DESC   _IOWR('U', 108, struct usb_endpoint_desc)
   #define USB_GET_FULL_DESC       _IOR ('U', 109, struct usb_full_desc)
   #define USB_DO_REQUEST          _IOWR('U', 110, struct usb_ctl_request)
   
   
 #endif /* _USB_H_ */  #endif /* _USB_H_ */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>