Changes in / [228e490:a9b6bec] in mainline
- Files:
-
- 90 added
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r228e490 ra9b6bec 547 547 548 548 % Launch (devman) test drivers 549 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS ( y/n)550 549 ! [CONFIG_DEBUG=y] CONFIG_TEST_DRIVERS (n/y) 550 -
Makefile
r228e490 ra9b6bec 83 83 $(MAKE) -C uspace clean 84 84 $(MAKE) -C boot clean 85 86 -include Makefile.local -
boot/Makefile.common
r228e490 ra9b6bec 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 \ … … 144 145 $(USPACE_PATH)/app/stats/stats \ 145 146 $(USPACE_PATH)/app/tasks/tasks \ 146 $(USPACE_PATH)/app/top/top 147 $(USPACE_PATH)/app/top/top \ 148 $(USPACE_PATH)/app/usbinfo/usbinfo \ 149 $(USPACE_PATH)/app/virtusbkbd/vuk 147 150 148 151 ifneq ($(CONFIG_BAREBONE),y) -
boot/arch/amd64/Makefile.inc
r228e490 ra9b6bec 40 40 pciintel \ 41 41 isa \ 42 ns8250 42 ns8250 \ 43 uhci \ 44 usbhub \ 45 usbkbd \ 46 vhc 43 47 44 48 RD_DRV_CFG += \ -
uspace/Makefile
r228e490 ra9b6bec 49 49 app/trace \ 50 50 app/top \ 51 app/usbinfo \ 52 app/virtusbkbd \ 51 53 app/netecho \ 52 54 app/nettest1 \ … … 115 117 DIRS += drv/isa 116 118 DIRS += drv/ns8250 119 DIRS += drv/uhci 120 DIRS += drv/usbhub 121 DIRS += drv/usbkbd 122 DIRS += drv/vhc 117 123 endif 118 124 … … 122 128 DIRS += drv/isa 123 129 DIRS += drv/ns8250 130 DIRS += drv/uhci 131 DIRS += drv/usbhub 132 DIRS += drv/usbkbd 133 DIRS += drv/vhc 124 134 endif 125 135 … … 147 157 lib/packet \ 148 158 lib/net 159 160 ifeq ($(UARCH),amd64) 161 LIBS += lib/usb 162 LIBS += lib/usbvirt 163 endif 164 165 ifeq ($(UARCH),ia32) 166 LIBS += lib/usb 167 LIBS += lib/usbvirt 168 endif 149 169 150 170 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 87 87 88 88 int res = child_device_register_wrapper(parent, VIRTUAL_DEVICE_NAME, 89 VIRTUAL_DEVICE_MATCH_ID, VIRTUAL_DEVICE_MATCH_SCORE); 89 VIRTUAL_DEVICE_MATCH_ID, VIRTUAL_DEVICE_MATCH_SCORE, 90 NULL); 90 91 91 92 return res; … … 104 105 105 106 int res = child_device_register_wrapper(parent, PLATFORM_DEVICE_NAME, 106 PLATFORM_DEVICE_MATCH_ID, PLATFORM_DEVICE_MATCH_SCORE); 107 PLATFORM_DEVICE_MATCH_ID, PLATFORM_DEVICE_MATCH_SCORE, 108 NULL); 107 109 108 110 return res; -
uspace/drv/rootvirt/devices.def
r228e490 ra9b6bec 18 18 }, 19 19 #endif 20 /* Virtual USB host controller. */ 21 { 22 .name = "usbhc", 23 .match_id = "usb&hc=vhc" 24 }, -
uspace/drv/rootvirt/rootvirt.c
r228e490 ra9b6bec 84 84 85 85 int rc = child_device_register_wrapper(parent, virt_dev->name, 86 virt_dev->match_id, 10 );86 virt_dev->match_id, 10, NULL); 87 87 88 88 if (rc == EOK) { -
uspace/drv/test1/test1.c
r228e490 ra9b6bec 64 64 65 65 int rc = child_device_register_wrapper(parent, name, 66 match_id, match_score );66 match_id, match_score, NULL); 67 67 68 68 if (rc == EOK) { -
uspace/drv/test2/test2.c
r228e490 ra9b6bec 64 64 65 65 int rc = child_device_register_wrapper(parent, name, 66 match_id, match_score );66 match_id, match_score, NULL); 67 67 68 68 if (rc == EOK) { -
uspace/lib/c/include/ipc/dev_iface.h
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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/lib/drv/generic/driver.c
r228e490 ra9b6bec 390 390 */ 391 391 int child_device_register_wrapper(device_t *parent, const char *child_name, 392 const char *child_match_id, int child_match_score) 392 const char *child_match_id, int child_match_score, 393 devman_handle_t *child_handle) 393 394 { 394 395 device_t *child = NULL; … … 418 419 goto failure; 419 420 421 if (child_handle != NULL) { 422 *child_handle = child->handle; 423 } 420 424 return EOK; 421 425 -
uspace/lib/drv/include/driver.h
r228e490 ra9b6bec 199 199 200 200 int child_device_register(device_t *, device_t *); 201 int child_device_register_wrapper(device_t *, const char *, const char *, int); 201 int child_device_register_wrapper(device_t *, const char *, const char *, int, 202 devman_handle_t *); 202 203 203 204 -
uspace/srv/devman/devman.c
r228e490 ra9b6bec 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
r228e490 ra9b6bec 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.