Changes in / [fe2333d:c01f8e6] in mainline
- Files:
-
- 2 added
- 87 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rfe2333d rc01f8e6 83 83 $(MAKE) -C uspace clean 84 84 $(MAKE) -C boot clean 85 86 -include Makefile.local -
boot/Makefile.common
rfe2333d rc01f8e6 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 \102 101 $(USPACE_PATH)/srv/net/netif/lo/lo \ 103 102 $(USPACE_PATH)/srv/net/il/arp/arp \ … … 113 112 rootvirt \ 114 113 test1 \ 115 test2 \ 116 vhc 114 test2 117 115 118 116 RD_DRV_CFG = … … 146 144 $(USPACE_PATH)/app/stats/stats \ 147 145 $(USPACE_PATH)/app/tasks/tasks \ 148 $(USPACE_PATH)/app/top/top \ 149 $(USPACE_PATH)/app/usbinfo/usbinfo \ 150 $(USPACE_PATH)/app/virtusbkbd/vuk 146 $(USPACE_PATH)/app/top/top 151 147 152 148 ifneq ($(CONFIG_BAREBONE),y) -
boot/arch/amd64/Makefile.inc
rfe2333d rc01f8e6 40 40 pciintel \ 41 41 isa \ 42 ns8250 \ 43 uhci \ 44 usbhub \ 45 usbkbd 42 ns8250 46 43 47 44 RD_DRV_CFG += \ -
kernel/generic/include/ipc/ipc.h
rfe2333d rc01f8e6 45 45 /** Maximum active async calls per thread */ 46 46 #ifdef CONFIG_DEBUG 47 #define IPC_MAX_ASYNC_CALLS 1647 #define IPC_MAX_ASYNC_CALLS 4 48 48 #else 49 49 #define IPC_MAX_ASYNC_CALLS 4000 -
uspace/Makefile
rfe2333d rc01f8e6 49 49 app/trace \ 50 50 app/top \ 51 app/usbinfo \52 app/virtusbkbd \53 51 app/netecho \ 54 52 app/nettest1 \ … … 90 88 drv/rootvirt \ 91 89 drv/test1 \ 92 drv/test2 \ 93 drv/vhc 90 drv/test2 94 91 95 92 ## Networking … … 125 122 DIRS += drv/isa 126 123 DIRS += drv/ns8250 127 DIRS += drv/uhci128 DIRS += drv/usbhub129 DIRS += drv/usbkbd130 124 endif 131 125 … … 153 147 lib/packet \ 154 148 lib/net 155 156 ifeq ($(UARCH),amd64)157 LIBS += lib/usb158 LIBS += lib/usbvirt159 endif160 161 ifeq ($(UARCH),ia32)162 LIBS += lib/usb163 LIBS += lib/usbvirt164 endif165 149 166 150 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
rfe2333d rc01f8e6 86 86 LIBCLUI_PREFIX = $(LIB_PREFIX)/clui 87 87 88 89 LIBUSB_PREFIX = $(LIB_PREFIX)/usb90 LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt91 88 LIBDRV_PREFIX = $(LIB_PREFIX)/drv 92 89 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet -
uspace/app/init/init.c
rfe2333d rc01f8e6 312 312 getterm("term/vc5", "/app/bdsh", false); 313 313 getterm("term/vc6", "/app/klog", false); 314 getterm("term/vc7", "/srv/devman", false);315 314 316 315 return 0; -
uspace/app/tester/Makefile
rfe2333d rc01f8e6 31 31 BINARY = tester 32 32 33 LIBS += $(LIBUSB_PREFIX)/libusb.a34 EXTRA_CFLAGS += -I$(LIBUSB_PREFIX)/include35 36 33 SOURCES = \ 37 34 tester.c \ 38 adt/usbaddrkeep.c \39 35 thread/thread1.c \ 40 36 print/print1.c \ -
uspace/app/tester/tester.c
rfe2333d rc01f8e6 65 65 #include "mm/malloc1.def" 66 66 #include "hw/serial/serial1.def" 67 #include "adt/usbaddrkeep.def"68 67 {NULL, NULL, NULL, false} 69 68 }; -
uspace/app/tester/tester.h
rfe2333d rc01f8e6 82 82 extern const char *test_malloc1(void); 83 83 extern const char *test_serial1(void); 84 extern const char *test_usbaddrkeep(void);85 84 86 85 extern test_t tests[]; -
uspace/doc/doxygroups.h
rfe2333d rc01f8e6 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 USB175 * @ingroup uspace176 * @brief USB support for HelenOS.177 */178 /**179 * @defgroup libusb USB library180 * @ingroup usb181 * @brief Library for creating USB devices drivers.182 */ -
uspace/drv/root/root.c
rfe2333d rc01f8e6 109 109 } 110 110 111 /** Create virtual USB host controller device.112 * Note that the virtual HC is actually device and driver in one113 * 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 165 111 /** Get the root device. 166 112 * … … 185 131 printf(NAME ": failed to add child device for platform.\n"); 186 132 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 193 133 return res; 194 134 } -
uspace/lib/c/include/ipc/dev_iface.h
rfe2333d rc01f8e6 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 44 40 // TODO add more interfaces 45 41 DEV_IFACE_MAX … … 54 50 DEV_IFACE_ID(DEV_FIRST_CUSTOM_METHOD_IDX) 55 51 56 /*57 * The first argument is actually method (as the "real" method is used58 * 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 66 52 67 53 #endif -
uspace/lib/drv/Makefile
rfe2333d rc01f8e6 29 29 30 30 USPACE_PREFIX = ../.. 31 EXTRA_CFLAGS = -Iinclude -I$(LIBUSB_PREFIX)/include31 EXTRA_CFLAGS = -Iinclude 32 32 LIBRARY = libdrv 33 33 … … 36 36 generic/dev_iface.c \ 37 37 generic/remote_res.c \ 38 generic/remote_usbhc.c \39 38 generic/remote_char.c 40 39 -
uspace/lib/drv/generic/dev_iface.c
rfe2333d rc01f8e6 39 39 #include "remote_res.h" 40 40 #include "remote_char.h" 41 #include "remote_usbhc.h"42 41 43 42 static iface_dipatch_table_t remote_ifaces = { 44 43 .ifaces = { 45 44 &remote_res_iface, 46 &remote_char_iface, 47 &remote_usbhc_iface 45 &remote_char_iface 48 46 } 49 47 }; -
uspace/srv/devman/devman.c
rfe2333d rc01f8e6 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");127 119 } 128 120 -
uspace/srv/net/tl/udp/udp.c
rfe2333d rc01f8e6 711 711 int socket_id; 712 712 size_t addrlen; 713 size_t size = 0;713 size_t size; 714 714 ipc_call_t answer; 715 715 int answer_count;
Note:
See TracChangeset
for help on using the changeset viewer.