Changes in / [c01f8e6:fe2333d] in mainline


Ignore:
Files:
87 added
2 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rc01f8e6 rfe2333d  
    8383        $(MAKE) -C uspace clean
    8484        $(MAKE) -C boot clean
     85
     86-include Makefile.local
  • boot/Makefile.common

    rc01f8e6 rfe2333d  
    9999        $(USPACE_PATH)/srv/taskmon/taskmon \
    100100        $(USPACE_PATH)/srv/hw/netif/dp8390/dp8390 \
     101        $(USPACE_PATH)/srv/hw/bus/usb/hcd/virtual/vhcd \
    101102        $(USPACE_PATH)/srv/net/netif/lo/lo \
    102103        $(USPACE_PATH)/srv/net/il/arp/arp \
     
    112113        rootvirt \
    113114        test1 \
    114         test2
     115        test2 \
     116        vhc
    115117
    116118RD_DRV_CFG =
     
    144146        $(USPACE_PATH)/app/stats/stats \
    145147        $(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
    147151
    148152ifneq ($(CONFIG_BAREBONE),y)
  • boot/arch/amd64/Makefile.inc

    rc01f8e6 rfe2333d  
    4040        pciintel \
    4141        isa \
    42         ns8250
     42        ns8250 \
     43        uhci \
     44        usbhub \
     45        usbkbd
    4346       
    4447RD_DRV_CFG += \
  • kernel/generic/include/ipc/ipc.h

    rc01f8e6 rfe2333d  
    4545/** Maximum active async calls per thread */
    4646#ifdef CONFIG_DEBUG
    47         #define IPC_MAX_ASYNC_CALLS  4
     47        #define IPC_MAX_ASYNC_CALLS  16
    4848#else
    4949        #define IPC_MAX_ASYNC_CALLS  4000
  • uspace/Makefile

    rc01f8e6 rfe2333d  
    4949        app/trace \
    5050        app/top \
     51        app/usbinfo \
     52        app/virtusbkbd \
    5153        app/netecho \
    5254        app/nettest1 \
     
    8890        drv/rootvirt \
    8991        drv/test1 \
    90         drv/test2
     92        drv/test2 \
     93        drv/vhc
    9194
    9295## Networking
     
    122125        DIRS += drv/isa
    123126        DIRS += drv/ns8250
     127        DIRS += drv/uhci
     128        DIRS += drv/usbhub
     129        DIRS += drv/usbkbd
    124130endif
    125131
     
    147153        lib/packet \
    148154        lib/net
     155
     156ifeq ($(UARCH),amd64)
     157        LIBS += lib/usb
     158        LIBS += lib/usbvirt
     159endif
     160
     161ifeq ($(UARCH),ia32)
     162        LIBS += lib/usb
     163        LIBS += lib/usbvirt
     164endif
    149165
    150166LIBC_BUILD = $(addsuffix .build,$(LIBC))
  • uspace/Makefile.common

    rc01f8e6 rfe2333d  
    8686LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
    8787
     88
     89LIBUSB_PREFIX = $(LIB_PREFIX)/usb
     90LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt
    8891LIBDRV_PREFIX = $(LIB_PREFIX)/drv
    8992LIBPACKET_PREFIX = $(LIB_PREFIX)/packet
  • uspace/app/init/init.c

    rc01f8e6 rfe2333d  
    312312        getterm("term/vc5", "/app/bdsh", false);
    313313        getterm("term/vc6", "/app/klog", false);
     314        getterm("term/vc7", "/srv/devman", false);
    314315       
    315316        return 0;
  • uspace/app/tester/Makefile

    rc01f8e6 rfe2333d  
    3131BINARY = tester
    3232
     33LIBS += $(LIBUSB_PREFIX)/libusb.a
     34EXTRA_CFLAGS += -I$(LIBUSB_PREFIX)/include
     35
    3336SOURCES = \
    3437        tester.c \
     38        adt/usbaddrkeep.c \
    3539        thread/thread1.c \
    3640        print/print1.c \
  • uspace/app/tester/tester.c

    rc01f8e6 rfe2333d  
    6565#include "mm/malloc1.def"
    6666#include "hw/serial/serial1.def"
     67#include "adt/usbaddrkeep.def"
    6768        {NULL, NULL, NULL, false}
    6869};
  • uspace/app/tester/tester.h

    rc01f8e6 rfe2333d  
    8282extern const char *test_malloc1(void);
    8383extern const char *test_serial1(void);
     84extern const char *test_usbaddrkeep(void);
    8485
    8586extern test_t tests[];
  • uspace/doc/doxygroups.h

    rc01f8e6 rfe2333d  
    155155         * @endcond
    156156         */
    157        
     157
    158158/**
    159159 * @defgroup emul Emulation Libraries
     
    170170         * @ingroup emul
    171171         */
     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  
    109109}
    110110
     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 */
     118static 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
     153failure:
     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
    111165/** Get the root device.
    112166 *
     
    131185                printf(NAME ": failed to add child device for platform.\n");
    132186       
     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
    133193        return res;
    134194}
  • uspace/lib/c/include/ipc/dev_iface.h

    rc01f8e6 rfe2333d  
    3838        HW_RES_DEV_IFACE = 0,   
    3939        CHAR_DEV_IFACE,
     40
     41        /** Interface provided by USB host controller. */
     42        USBHC_DEV_IFACE,
     43
    4044        // TODO add more interfaces
    4145        DEV_IFACE_MAX
     
    5054        DEV_IFACE_ID(DEV_FIRST_CUSTOM_METHOD_IDX)
    5155
     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
    5266
    5367#endif
  • uspace/lib/drv/Makefile

    rc01f8e6 rfe2333d  
    2929
    3030USPACE_PREFIX = ../..
    31 EXTRA_CFLAGS = -Iinclude
     31EXTRA_CFLAGS = -Iinclude -I$(LIBUSB_PREFIX)/include
    3232LIBRARY = libdrv
    3333
     
    3636        generic/dev_iface.c \
    3737        generic/remote_res.c \
     38        generic/remote_usbhc.c \
    3839        generic/remote_char.c
    3940
  • uspace/lib/drv/generic/dev_iface.c

    rc01f8e6 rfe2333d  
    3939#include "remote_res.h"
    4040#include "remote_char.h"
     41#include "remote_usbhc.h"
    4142
    4243static iface_dipatch_table_t remote_ifaces = {
    4344        .ifaces = {
    4445                &remote_res_iface,
    45                 &remote_char_iface
     46                &remote_char_iface,
     47                &remote_usbhc_iface
    4648        }
    4749};
  • uspace/srv/devman/devman.c

    rc01f8e6 rfe2333d  
    117117        printf(NAME": the '%s' driver was added to the list of available "
    118118            "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");
    119127}
    120128
  • uspace/srv/net/tl/udp/udp.c

    rc01f8e6 rfe2333d  
    711711        int socket_id;
    712712        size_t addrlen;
    713         size_t size;
     713        size_t size = 0;
    714714        ipc_call_t answer;
    715715        int answer_count;
Note: See TracChangeset for help on using the changeset viewer.