Changeset bc9a629 in mainline for uspace/lib/usb


Ignore:
Timestamp:
2010-10-10T09:00:53Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b371844
Parents:
4bc309b
Message:

Start work on virtual USB keyboard

The virtual HC(D) is now able to serve as HCD towards central USB driver
as well as virtual HC towards virtual devices.

Each device is a separate task that communicates with VHCD through simple
protocol.

Will clean and comment the code in next revisions. Promise.

Location:
uspace/lib/usb
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/Makefile

    r4bc309b rbc9a629  
    3131
    3232SOURCES = \
    33         hcd.c
     33        hcd.c \
     34        virtdev.c
    3435
    3536include $(USPACE_PREFIX)/Makefile.common
  • uspace/lib/usb/hcd.h

    r4bc309b rbc9a629  
    7575        usb_endpoint_t endpoint;
    7676} usb_target_t;
     77
     78static inline int usb_target_same(usb_target_t a, usb_target_t b)
     79{
     80        return (a.address == b.address)
     81            && (a.endpoint == b.endpoint);
     82}
    7783
    7884/** Opaque handle of active USB transaction.
Note: See TracChangeset for help on using the changeset viewer.