Changeset 32c2c8f in mainline
- Timestamp:
- 2013-01-05T21:52:56Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1da979d
- Parents:
- b997e7b
- Location:
- uspace/lib
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
rb997e7b r32c2c8f 73 73 /** Characteristics bitmask. */ 74 74 uint8_t characteristics; 75 #define HUB_CHAR_POWER_PER_PORT_FLAG (1 << 0) 76 #define HUB_CHAR_NO_POWER_SWITCH_FLAG (1 << 1) 75 #define HUB_CHAR_POWER_PER_PORT_FLAG (1 << 0) 76 #define HUB_CHAR_NO_POWER_SWITCH_FLAG (1 << 1) 77 #define HUB_CHAR_COMPUND_DEVICE (1 << 2) 78 #define HUB_CHAR_OC_PER_PORT_FLAG (1 << 3) 79 #define HUB_CHAR_NO_OC_FLAG (1 << 4) 77 80 /* Unused part of characteristics field */ 78 81 uint8_t characteristics_reserved; … … 83 86 } __attribute__ ((packed)) usb_hub_descriptor_header_t; 84 87 88 89 #if 0 85 90 /** 86 91 * @brief usb hub descriptor … … 169 174 //uint8_t * port_pwr_ctrl_mask; 170 175 } usb_hub_descriptor_t; 171 176 #endif 172 177 173 178 -
uspace/lib/usbvirt/Makefile
rb997e7b r32c2c8f 34 34 -I$(LIBUSB_PREFIX)/include \ 35 35 -I$(LIBUSBDEV_PREFIX)/include \ 36 -Iinclude 36 -Iinclude \ 37 -Iinclude/usbvirt 37 38 38 39 SOURCES = \ … … 42 43 src/ipc_hc.c \ 43 44 src/stdreq.c \ 44 src/transfer.c 45 src/transfer.c \ 46 src/virthub_base.c \ 47 src/virthub_descriptors.c 45 48 46 49 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/usbvirt/include/usbvirt/device.h
rb997e7b r32c2c8f 239 239 }; 240 240 241 242 int req_nop(usbvirt_device_t *device, 243 const usb_device_request_setup_packet_t *setup_packet, 244 uint8_t *data, size_t *act_size); 245 241 246 int usbvirt_device_plug(usbvirt_device_t *, const char *); 242 247 void usbvirt_device_unplug(usbvirt_device_t *); -
uspace/lib/usbvirt/src/stdreq.c
rb997e7b r32c2c8f 65 65 } 66 66 67 /** NOP handler */ 68 int req_nop(usbvirt_device_t *device, 69 const usb_device_request_setup_packet_t *setup_packet, 70 uint8_t *data, size_t *act_size) 71 { 72 return EOK; 73 } 74 67 75 /** GET_DESCRIPTOR handler. */ 68 76 static int req_get_descriptor(usbvirt_device_t *device,
Note:
See TracChangeset
for help on using the changeset viewer.