Changeset 00aece0 in mainline for uspace/drv/bus/usb/usbhub/main.c


Ignore:
Timestamp:
2012-02-18T16:47:38Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4449c6c
Parents:
bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/main.c

    rbd5f3b7 r00aece0  
    11/*
    22 * Copyright (c) 2010 Vojtech Horky
     3 * Copyright (c) 2011 Jan Vesely
    34 * All rights reserved.
    45 *
     
    3839#include <usb/dev/driver.h>
    3940#include <usb/classes/classes.h>
     41#include <usb/debug.h>
    4042
    4143#include "usbhub.h"
    42 #include "usbhub_private.h"
    4344
    4445/** Hub status-change endpoint description.
     
    4647 * For more information see section 11.15.1 of USB 1.1 specification.
    4748 */
    48 static usb_endpoint_description_t hub_status_change_endpoint_description = {
     49static const usb_endpoint_description_t hub_status_change_endpoint_description =
     50{
    4951        .transfer_type = USB_TRANSFER_INTERRUPT,
    5052        .direction = USB_DIRECTION_IN,
     
    5557};
    5658
    57 /**
    58  * usb hub driver operations
    59  *
    60  * The most important one is add_device, which is set to usb_hub_add_device.
    61  */
    62 static usb_driver_ops_t usb_hub_driver_ops = {
    63         .add_device = usb_hub_add_device
     59/** USB hub driver operations. */
     60static const usb_driver_ops_t usb_hub_driver_ops = {
     61        .device_add = usb_hub_device_add,
     62//      .device_rem = usb_hub_device_remove,
     63        .device_gone = usb_hub_device_gone,
    6464};
    6565
    66 /**
    67  * hub endpoints, excluding control endpoint
    68  */
    69 static usb_endpoint_description_t *usb_hub_endpoints[] = {
     66/** Hub endpoints, excluding control endpoint. */
     67static const usb_endpoint_description_t *usb_hub_endpoints[] = {
    7068        &hub_status_change_endpoint_description,
    71         NULL
     69        NULL,
    7270};
    73 
    74 /**
    75  * static usb hub driver information
    76  */
    77 static usb_driver_t usb_hub_driver = {
     71/** Static usb hub driver information. */
     72static const usb_driver_t usb_hub_driver = {
    7873        .name = NAME,
    7974        .ops = &usb_hub_driver_ops,
     
    8176};
    8277
    83 
    8478int main(int argc, char *argv[])
    8579{
    8680        printf(NAME ": HelenOS USB hub driver.\n");
    87 
    8881        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    8982
     
    9487 * @}
    9588 */
    96 
Note: See TracChangeset for help on using the changeset viewer.