Changes in / [32eceb4f:7e1f9b7] in mainline
- Files:
-
- 64 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r32eceb4f r7e1f9b7 79 79 $(MAKE) -C uspace clean 80 80 $(MAKE) -C boot clean 81 82 -include Makefile.local -
boot/Makefile.common
r32eceb4f r7e1f9b7 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 \ … … 110 109 111 110 RD_DRVS = \ 112 root \ 113 vhc 111 root 114 112 115 113 RD_DRV_CFG = … … 142 140 $(USPACE_PATH)/app/ping/ping \ 143 141 $(USPACE_PATH)/app/stats/stats \ 144 $(USPACE_PATH)/app/virtusbkbd/vuk \145 142 $(USPACE_PATH)/app/tasks/tasks \ 146 143 $(USPACE_PATH)/app/top/top -
boot/arch/amd64/Makefile.inc
r32eceb4f r7e1f9b7 40 40 pciintel \ 41 41 isa \ 42 ns8250 \ 43 uhci \ 44 usbkbd 42 ns8250 45 43 46 44 RD_DRV_CFG += \ -
uspace/Makefile
r32eceb4f r7e1f9b7 50 50 app/trace \ 51 51 app/top \ 52 app/virtusbkbd \53 52 app/netecho \ 54 53 app/nettest1 \ … … 87 86 srv/net/tl/tcp \ 88 87 srv/net/net \ 89 drv/root \ 90 drv/vhc 88 drv/root 91 89 92 90 ## Networking … … 118 116 DIRS += drv/isa 119 117 DIRS += drv/ns8250 120 DIRS += drv/uhci121 DIRS += drv/usbkbd122 118 endif 123 119 … … 145 141 lib/packet \ 146 142 lib/net 147 148 ifeq ($(UARCH),amd64)149 LIBS += lib/usb150 LIBS += lib/usbvirt151 endif152 153 ifeq ($(UARCH),ia32)154 LIBS += lib/usb155 LIBS += lib/usbvirt156 endif157 143 158 144 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
r32eceb4f r7e1f9b7 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
r32eceb4f r7e1f9b7 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/doc/doxygroups.h
r32eceb4f r7e1f9b7 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
r32eceb4f r7e1f9b7 72 72 static int add_platform_child(device_t *parent) 73 73 { 74 return EOK;75 74 printf(NAME ": adding new child for platform device.\n"); 76 75 … … 120 119 } 121 120 122 /** Create virtual USB host controller device.123 * Note that the virtual HC is actually device and driver in one124 * task.125 *126 * @param parent Parent device.127 * @return Error code.128 */129 static int add_virtual_usb_host_controller(device_t *parent)130 {131 printf(NAME ": adding virtual host contoller.\n");132 133 int rc;134 device_t *vhc = NULL;135 match_id_t *match_id = NULL;136 137 vhc = create_device();138 if (vhc == NULL) {139 rc = ENOMEM;140 goto failure;141 }142 143 vhc->name = "vhc";144 printf(NAME ": the new device's name is %s.\n", vhc->name);145 146 /* Initialize match id list. */147 match_id = create_match_id();148 if (match_id == NULL) {149 rc = ENOMEM;150 goto failure;151 }152 153 match_id->id = "usb&hc=vhc";154 match_id->score = 100;155 add_match_id(&vhc->match_ids, match_id);156 157 /* Register child device. */158 rc = child_device_register(vhc, parent);159 if (rc != EOK)160 goto failure;161 162 return EOK;163 164 failure:165 if (match_id != NULL)166 match_id->id = NULL;167 168 if (vhc != NULL) {169 vhc->name = NULL;170 delete_device(vhc);171 }172 173 return rc;174 }175 176 121 /** Get the root device. 177 122 * … … 188 133 printf(NAME ": failed to add child device for platform.\n"); 189 134 190 /* Register virtual USB host controller. */191 int rc = add_virtual_usb_host_controller(dev);192 if (EOK != rc) {193 printf(NAME ": failed to add child device - virtual USB HC.\n");194 }195 196 135 return res; 197 136 } -
uspace/lib/c/include/ipc/dev_iface.h
r32eceb4f r7e1f9b7 38 38 HW_RES_DEV_IFACE = 0, 39 39 CHAR_DEV_IFACE, 40 USB_DEV_IFACE,41 40 // TODO add more interfaces 42 41 DEV_IFACE_MAX -
uspace/lib/drv/Makefile
r32eceb4f r7e1f9b7 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_usb.c \39 38 generic/remote_char.c 40 39 -
uspace/lib/drv/generic/dev_iface.c
r32eceb4f r7e1f9b7 39 39 #include "remote_res.h" 40 40 #include "remote_char.h" 41 #include "remote_usb.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_usb_iface 45 &remote_char_iface 48 46 } 49 47 };
Note:
See TracChangeset
for help on using the changeset viewer.