Changes in / [c01f8e6:fe2333d] in mainline
- Files:
-
- 87 added
- 2 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rc01f8e6 rfe2333d 83 83 $(MAKE) -C uspace clean 84 84 $(MAKE) -C boot clean 85 86 -include Makefile.local -
boot/Makefile.common
rc01f8e6 rfe2333d 99 99 $(USPACE_PATH)/srv/taskmon/taskmon \ 100 100 $(USPACE_PATH)/srv/hw/netif/dp8390/dp8390 \ 101 $(USPACE_PATH)/srv/hw/bus/usb/hcd/virtual/vhcd \ 101 102 $(USPACE_PATH)/srv/net/netif/lo/lo \ 102 103 $(USPACE_PATH)/srv/net/il/arp/arp \ … … 112 113 rootvirt \ 113 114 test1 \ 114 test2 115 test2 \ 116 vhc 115 117 116 118 RD_DRV_CFG = … … 144 146 $(USPACE_PATH)/app/stats/stats \ 145 147 $(USPACE_PATH)/app/tasks/tasks \ 146 $(USPACE_PATH)/app/top/top 148 $(USPACE_PATH)/app/top/top \ 149 $(USPACE_PATH)/app/usbinfo/usbinfo \ 150 $(USPACE_PATH)/app/virtusbkbd/vuk 147 151 148 152 ifneq ($(CONFIG_BAREBONE),y) -
boot/arch/amd64/Makefile.inc
rc01f8e6 rfe2333d 40 40 pciintel \ 41 41 isa \ 42 ns8250 42 ns8250 \ 43 uhci \ 44 usbhub \ 45 usbkbd 43 46 44 47 RD_DRV_CFG += \ -
kernel/generic/include/ipc/ipc.h
rc01f8e6 rfe2333d 45 45 /** Maximum active async calls per thread */ 46 46 #ifdef CONFIG_DEBUG 47 #define IPC_MAX_ASYNC_CALLS 447 #define IPC_MAX_ASYNC_CALLS 16 48 48 #else 49 49 #define IPC_MAX_ASYNC_CALLS 4000 -
uspace/Makefile
rc01f8e6 rfe2333d 49 49 app/trace \ 50 50 app/top \ 51 app/usbinfo \ 52 app/virtusbkbd \ 51 53 app/netecho \ 52 54 app/nettest1 \ … … 88 90 drv/rootvirt \ 89 91 drv/test1 \ 90 drv/test2 92 drv/test2 \ 93 drv/vhc 91 94 92 95 ## Networking … … 122 125 DIRS += drv/isa 123 126 DIRS += drv/ns8250 127 DIRS += drv/uhci 128 DIRS += drv/usbhub 129 DIRS += drv/usbkbd 124 130 endif 125 131 … … 147 153 lib/packet \ 148 154 lib/net 155 156 ifeq ($(UARCH),amd64) 157 LIBS += lib/usb 158 LIBS += lib/usbvirt 159 endif 160 161 ifeq ($(UARCH),ia32) 162 LIBS += lib/usb 163 LIBS += lib/usbvirt 164 endif 149 165 150 166 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
rc01f8e6 rfe2333d 86 86 LIBCLUI_PREFIX = $(LIB_PREFIX)/clui 87 87 88 89 LIBUSB_PREFIX = $(LIB_PREFIX)/usb 90 LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt 88 91 LIBDRV_PREFIX = $(LIB_PREFIX)/drv 89 92 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet -
uspace/app/init/init.c
rc01f8e6 rfe2333d 312 312 getterm("term/vc5", "/app/bdsh", false); 313 313 getterm("term/vc6", "/app/klog", false); 314 getterm("term/vc7", "/srv/devman", false); 314 315 315 316 return 0; -
uspace/app/tester/Makefile
rc01f8e6 rfe2333d 31 31 BINARY = tester 32 32 33 LIBS += $(LIBUSB_PREFIX)/libusb.a 34 EXTRA_CFLAGS += -I$(LIBUSB_PREFIX)/include 35 33 36 SOURCES = \ 34 37 tester.c \ 38 adt/usbaddrkeep.c \ 35 39 thread/thread1.c \ 36 40 print/print1.c \ -
uspace/app/tester/tester.c
rc01f8e6 rfe2333d 65 65 #include "mm/malloc1.def" 66 66 #include "hw/serial/serial1.def" 67 #include "adt/usbaddrkeep.def" 67 68 {NULL, NULL, NULL, false} 68 69 }; -
uspace/app/tester/tester.h
rc01f8e6 rfe2333d 82 82 extern const char *test_malloc1(void); 83 83 extern const char *test_serial1(void); 84 extern const char *test_usbaddrkeep(void); 84 85 85 86 extern test_t tests[]; -
uspace/doc/doxygroups.h
rc01f8e6 rfe2333d 155 155 * @endcond 156 156 */ 157 157 158 158 /** 159 159 * @defgroup emul Emulation Libraries … … 170 170 * @ingroup emul 171 171 */ 172 173 /** 174 * @defgroup usb USB 175 * @ingroup uspace 176 * @brief USB support for HelenOS. 177 */ 178 /** 179 * @defgroup libusb USB library 180 * @ingroup usb 181 * @brief Library for creating USB devices drivers. 182 */ -
uspace/drv/root/root.c
rc01f8e6 rfe2333d 109 109 } 110 110 111 /** Create virtual USB host controller device. 112 * Note that the virtual HC is actually device and driver in one 113 * task. 114 * 115 * @param parent Parent device. 116 * @return Error code. 117 */ 118 static int add_virtual_usb_host_controller(device_t *parent) 119 { 120 printf(NAME ": adding virtual host contoller.\n"); 121 122 int rc; 123 device_t *vhc = NULL; 124 match_id_t *match_id = NULL; 125 126 vhc = create_device(); 127 if (vhc == NULL) { 128 rc = ENOMEM; 129 goto failure; 130 } 131 132 vhc->name = "vhc"; 133 printf(NAME ": the new device's name is %s.\n", vhc->name); 134 135 /* Initialize match id list. */ 136 match_id = create_match_id(); 137 if (match_id == NULL) { 138 rc = ENOMEM; 139 goto failure; 140 } 141 142 match_id->id = "usb&hc=vhc"; 143 match_id->score = 100; 144 add_match_id(&vhc->match_ids, match_id); 145 146 /* Register child device. */ 147 rc = child_device_register(vhc, parent); 148 if (rc != EOK) 149 goto failure; 150 151 return EOK; 152 153 failure: 154 if (match_id != NULL) 155 match_id->id = NULL; 156 157 if (vhc != NULL) { 158 vhc->name = NULL; 159 delete_device(vhc); 160 } 161 162 return rc; 163 } 164 111 165 /** Get the root device. 112 166 * … … 131 185 printf(NAME ": failed to add child device for platform.\n"); 132 186 187 /* Register virtual USB host controller. */ 188 int rc = add_virtual_usb_host_controller(dev); 189 if (EOK != rc) { 190 printf(NAME ": failed to add child device - virtual USB HC.\n"); 191 } 192 133 193 return res; 134 194 } -
uspace/lib/c/include/ipc/dev_iface.h
rc01f8e6 rfe2333d 38 38 HW_RES_DEV_IFACE = 0, 39 39 CHAR_DEV_IFACE, 40 41 /** Interface provided by USB host controller. */ 42 USBHC_DEV_IFACE, 43 40 44 // TODO add more interfaces 41 45 DEV_IFACE_MAX … … 50 54 DEV_IFACE_ID(DEV_FIRST_CUSTOM_METHOD_IDX) 51 55 56 /* 57 * The first argument is actually method (as the "real" method is used 58 * for indexing into interfaces. 59 */ 60 61 #define DEV_IPC_GET_ARG1(call) IPC_GET_ARG2((call)) 62 #define DEV_IPC_GET_ARG2(call) IPC_GET_ARG3((call)) 63 #define DEV_IPC_GET_ARG3(call) IPC_GET_ARG4((call)) 64 #define DEV_IPC_GET_ARG4(call) IPC_GET_ARG5((call)) 65 52 66 53 67 #endif -
uspace/lib/drv/Makefile
rc01f8e6 rfe2333d 29 29 30 30 USPACE_PREFIX = ../.. 31 EXTRA_CFLAGS = -Iinclude 31 EXTRA_CFLAGS = -Iinclude -I$(LIBUSB_PREFIX)/include 32 32 LIBRARY = libdrv 33 33 … … 36 36 generic/dev_iface.c \ 37 37 generic/remote_res.c \ 38 generic/remote_usbhc.c \ 38 39 generic/remote_char.c 39 40 -
uspace/lib/drv/generic/dev_iface.c
rc01f8e6 rfe2333d 39 39 #include "remote_res.h" 40 40 #include "remote_char.h" 41 #include "remote_usbhc.h" 41 42 42 43 static iface_dipatch_table_t remote_ifaces = { 43 44 .ifaces = { 44 45 &remote_res_iface, 45 &remote_char_iface 46 &remote_char_iface, 47 &remote_usbhc_iface 46 48 } 47 49 }; -
uspace/srv/devman/devman.c
rc01f8e6 rfe2333d 117 117 printf(NAME": the '%s' driver was added to the list of available " 118 118 "drivers.\n", drv->name); 119 120 printf(NAME ": match ids:"); 121 link_t *cur; 122 for (cur = drv->match_ids.ids.next; cur != &drv->match_ids.ids; cur = cur->next) { 123 match_id_t *match_id = list_get_instance(cur, match_id_t, link); 124 printf(" %d:%s", match_id->score, match_id->id); 125 } 126 printf("\n"); 119 127 } 120 128 -
uspace/srv/net/tl/udp/udp.c
rc01f8e6 rfe2333d 711 711 int socket_id; 712 712 size_t addrlen; 713 size_t size ;713 size_t size = 0; 714 714 ipc_call_t answer; 715 715 int answer_count;
Note:
See TracChangeset
for help on using the changeset viewer.