Changes in / [84439d7:35537a7] in mainline
- Location:
- uspace
- Files:
-
- 11 added
- 12 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/virtusbkbd/Makefile
r84439d7 r35537a7 33 33 34 34 LIBS = $(LIBUSB_PREFIX)/libusb.a $(LIBUSBVIRT_PREFIX)/libusbvirt.a 35 EXTRA_CFLAGS = -I$(LIBUSB_PREFIX)/include -I$(LIB USBVIRT_PREFIX)/include35 EXTRA_CFLAGS = -I$(LIBUSB_PREFIX)/include -I$(LIB_PREFIX) 36 36 37 37 SOURCES = \ -
uspace/app/virtusbkbd/stdreq.c
r84439d7 r35537a7 39 39 #include "kbdconfig.h" 40 40 41 int stdreq_on_get_descriptor(struct usbvirt_device *dev, 41 static int on_get_descriptor(struct usbvirt_device *dev, 42 usb_device_request_setup_packet_t *request, uint8_t *data); 43 44 usbvirt_standard_device_request_ops_t standard_request_ops = { 45 .on_get_status = NULL, 46 .on_clear_feature = NULL, 47 .on_set_feature = NULL, 48 .on_set_address = NULL, 49 .on_get_descriptor = on_get_descriptor, 50 .on_set_descriptor = NULL, 51 .on_get_configuration = NULL, 52 .on_set_configuration = NULL, 53 .on_get_interface = NULL, 54 .on_set_interface = NULL, 55 .on_synch_frame = NULL 56 }; 57 58 59 static int on_get_descriptor(struct usbvirt_device *dev, 42 60 usb_device_request_setup_packet_t *request, uint8_t *data) 43 61 { -
uspace/app/virtusbkbd/stdreq.h
r84439d7 r35537a7 38 38 #include <usbvirt/device.h> 39 39 40 int stdreq_on_get_descriptor(usbvirt_device_t *, 41 usb_device_request_setup_packet_t *, uint8_t *); 40 extern usbvirt_standard_device_request_ops_t standard_request_ops; 42 41 43 42 #endif -
uspace/app/virtusbkbd/virtusbkbd.c
r84439d7 r35537a7 111 111 */ 112 112 static usbvirt_device_ops_t keyboard_ops = { 113 .on_standard_request[USB_DEVREQ_GET_DESCRIPTOR] 114 = stdreq_on_get_descriptor, 113 .standard_request_ops = &standard_request_ops, 115 114 .on_class_device_request = on_class_request, 116 115 .on_data = on_incoming_data, -
uspace/drv/vhc/Makefile
r84439d7 r35537a7 33 33 $(LIBDRV_PREFIX)/libdrv.a 34 34 EXTRA_CFLAGS += \ 35 -I$(LIB USBVIRT_PREFIX)/include\35 -I$(LIB_PREFIX) \ 36 36 -I$(LIBUSB_PREFIX)/include \ 37 37 -I$(LIBDRV_PREFIX)/include -
uspace/drv/vhc/hubops.c
r84439d7 r35537a7 65 65 void *buffer, size_t size, size_t *actual_size); 66 66 67 /** Standard USB requests. */ 68 static usbvirt_standard_device_request_ops_t standard_request_ops = { 69 .on_get_status = NULL, 70 .on_clear_feature = NULL, 71 .on_set_feature = NULL, 72 .on_set_address = NULL, 73 .on_get_descriptor = on_get_descriptor, 74 .on_set_descriptor = NULL, 75 .on_get_configuration = NULL, 76 .on_set_configuration = NULL, 77 .on_get_interface = NULL, 78 .on_set_interface = NULL, 79 .on_synch_frame = NULL 80 }; 81 67 82 /** Hub operations. */ 68 83 usbvirt_device_ops_t hub_ops = { 69 . on_standard_request[USB_DEVREQ_GET_DESCRIPTOR] = on_get_descriptor,84 .standard_request_ops = &standard_request_ops, 70 85 .on_class_device_request = on_class_request, 71 86 .on_data = NULL, -
uspace/lib/usbvirt/Makefile
r84439d7 r35537a7 31 31 32 32 LIBS = $(LIBUSB_PREFIX)/libusb.a 33 EXTRA_CFLAGS = -I$(LIBUSB_PREFIX)/include -Iinclude33 EXTRA_CFLAGS = -I$(LIBUSB_PREFIX)/include 34 34 35 35 SOURCES = \ 36 src/callback.c \37 src/ctrlpipe.c \38 src/debug.c \39 src/main.c \40 s rc/stdreq.c \41 src/transaction.c36 callback.c \ 37 ctrlpipe.c \ 38 debug.c \ 39 main.c \ 40 stdreq.c \ 41 transaction.c 42 42 43 43 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.