Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6297465 in mainline


Ignore:
Timestamp:
2013-12-31T07:45:34Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
4c14b88
Parents:
2c24983
Message:

ehci: Add skeleton driver.

Mostly copied from ohci. Reports root hub correctly, does nothing else.

Location:
uspace/drv/bus/usb/ehci
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/Makefile

    r2c24983 r6297465  
    3131LIBS = \
    3232        $(LIBUSBHOST_PREFIX)/libusbhost.a \
     33        $(LIBUSBVIRT_PREFIX)/libusbvirt.a \
    3334        $(LIBUSB_PREFIX)/libusb.a \
    3435        $(LIBDRV_PREFIX)/libdrv.a
     
    3637EXTRA_CFLAGS += \
    3738        -I$(LIBUSB_PREFIX)/include \
     39        -I$(LIBUSBDEV_PREFIX)/include \
    3840        -I$(LIBUSBHOST_PREFIX)/include \
     41        -I$(LIBUSBVIRT_PREFIX)/include \
    3942        -I$(LIBDRV_PREFIX)/include
    4043
     
    4245
    4346SOURCES = \
     47        ehci.c \
     48        ehci_rh.c \
     49        hc.c \
    4450        main.c \
    4551        res.c
  • uspace/drv/bus/usb/ehci/main.c

    r2c24983 r6297465  
    4444
    4545#include "res.h"
     46#include "ehci.h"
    4647
    4748#define NAME "ehci"
     
    9192
    9293        /* High Speed, no bandwidth */
    93         ret = hcd_ddf_setup_hc(device, USB_SPEED_HIGH, 0, NULL);
     94        ret = device_setup_ehci(device);
    9495        if (ret != EOK) {
    95                 usb_log_error("Failed to init generci hcd driver: %s\n",
     96                usb_log_error("Failed to init ehci driver: %s\n",
    9697                    str_error(ret));
    9798                return ret;
Note: See TracChangeset for help on using the changeset viewer.