Changeset 245b56b5 in mainline


Ignore:
Timestamp:
2011-01-29T08:32:04Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
113aef8
Parents:
816175a2
Message:

Added info message on succesfull device addition

Changed root ub name to uhci_root_hubd
Moved hub polling interval definition to header

Location:
uspace/drv/uhci/root_hub
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/root_hub/debug.h

    r816175a2 r245b56b5  
    3838#include <usb/debug.h>
    3939
    40 #define NAME "uhci_root_hub"
     40#define NAME "uhci_root_hubd"
     41
    4142enum debug_levels {
    4243        DEBUG_LEVEL_FATAL_ERROR = 1,
  • uspace/drv/uhci/root_hub/port.c

    r816175a2 r245b56b5  
    11
    22#include <errno.h>
    3 #include <usb/usb.h>
    4 #include <usb/usbdrv.h>
     3#include <usb/usb.h>    /* usb_address_t */
     4#include <usb/usbdrv.h> /* usb_drv_*     */
    55
    66#include "debug.h"
     
    121121                return ENOMEM;
    122122        }
     123        uhci_print_info("Sucessfully added device on port(%d) address(%d).\n",
     124                port->number, usb_address);
    123125
    124126        /* TODO: bind the address here */
  • uspace/drv/uhci/root_hub/port.h

    r816175a2 r245b56b5  
    3636
    3737#include <assert.h>
    38 #include <driver.h>
     38#include <driver.h> /* device_t */
    3939#include <stdint.h>
    4040
     
    5555  unsigned usec)
    5656{
    57         assert( port );
     57        assert(port);
    5858        port->address = address;
    5959        port->hc = hc;
  • uspace/drv/uhci/root_hub/root_hub.c

    r816175a2 r245b56b5  
    88#include "root_hub.h"
    99
    10 #define ROOT_HUB_WAIT_USEC 10000000 /* 10 seconds */
    1110
    1211int uhci_root_hub_init( uhci_root_hub_t *hub, device_t *hc, void *addr )
  • uspace/drv/uhci/root_hub/root_hub.h

    r816175a2 r245b56b5  
    3636
    3737#include <fibril.h>
    38 #include <driver.h>
     38#include <driver.h> /* for device_t */
    3939
    4040#include "port.h"
     
    4242#define UHCI_ROOT_HUB_PORT_COUNT 2
    4343#define UHCI_ROOT_HUB_PORT_REGISTERS_OFFSET 0x10
     44#define ROOT_HUB_WAIT_USEC 10000000 /* 10 seconds */
    4445
    4546typedef struct root_hub {
Note: See TracChangeset for help on using the changeset viewer.