Ignore:
File:
1 edited

Legend:

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

    r54d1ad9 r5203e256  
    11/*
    22 * Copyright (c) 2010 Vojtech Horky
    3  * Copyright (c) 2011 Jan Vesely
    43 * All rights reserved.
    54 *
     
    3938#include <usb/dev/driver.h>
    4039#include <usb/classes/classes.h>
    41 #include <usb/debug.h>
    4240
    4341#include "usbhub.h"
     42#include "usbhub_private.h"
    4443
    4544/** Hub status-change endpoint description.
     
    4746 * For more information see section 11.15.1 of USB 1.1 specification.
    4847 */
    49 static const usb_endpoint_description_t hub_status_change_endpoint_description =
    50 {
     48static usb_endpoint_description_t hub_status_change_endpoint_description = {
    5149        .transfer_type = USB_TRANSFER_INTERRUPT,
    5250        .direction = USB_DIRECTION_IN,
     
    5755};
    5856
    59 /** USB hub driver operations. */
    60 static 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,
     57/**
     58 * usb hub driver operations
     59 *
     60 * The most important one is add_device, which is set to usb_hub_add_device.
     61 */
     62static usb_driver_ops_t usb_hub_driver_ops = {
     63        .add_device = usb_hub_add_device
    6464};
    6565
    66 /** Hub endpoints, excluding control endpoint. */
    67 static const usb_endpoint_description_t *usb_hub_endpoints[] = {
     66/**
     67 * hub endpoints, excluding control endpoint
     68 */
     69static usb_endpoint_description_t *usb_hub_endpoints[] = {
    6870        &hub_status_change_endpoint_description,
    69         NULL,
     71        NULL
    7072};
    71 /** Static usb hub driver information. */
    72 static const usb_driver_t usb_hub_driver = {
     73
     74/**
     75 * static usb hub driver information
     76 */
     77static usb_driver_t usb_hub_driver = {
    7378        .name = NAME,
    7479        .ops = &usb_hub_driver_ops,
     
    7681};
    7782
     83
    7884int main(int argc, char *argv[])
    7985{
    8086        printf(NAME ": HelenOS USB hub driver.\n");
     87
    8188        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    8289
     
    8794 * @}
    8895 */
     96
Note: See TracChangeset for help on using the changeset viewer.