Changeset 940f576 in mainline


Ignore:
Timestamp:
2011-10-12T18:54:05Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
196fbb0
Parents:
51f033ce
Message:

usbhub: Add device_gone skeleton

Location:
uspace/drv/bus/usb/usbhub
Files:
4 edited

Legend:

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

    r51f033ce r940f576  
    6262 */
    6363static usb_driver_ops_t usb_hub_driver_ops = {
    64         .device_add = usb_hub_device_add
     64        .device_add = usb_hub_device_add,
     65        .device_gone = usb_hub_device_gone,
    6566};
    6667
  • uspace/drv/bus/usb/usbhub/port.h

    r51f033ce r940f576  
    4040#include <usb/classes/hub.h>
    4141
    42 typedef struct usb_hub_info_t usb_hub_info_t;
     42typedef struct usb_hub_info usb_hub_info_t;
    4343
    4444/** Information about single port on a hub. */
  • uspace/drv/bus/usb/usbhub/usbhub.c

    r51f033ce r940f576  
    7575static void usb_hub_polling_terminated_callback(usb_device_t *device,
    7676    bool was_error, void *data);
    77 
     77/**
     78 * Initialize hub device driver fibril
     79 *
     80 * Creates hub representation and fibril that periodically checks hub's status.
     81 * Hub representation is passed to the fibril.
     82 * @param usb_dev generic usb device information
     83 * @return error code
     84 */
     85int usb_hub_device_gone(usb_device_t *usb_dev)
     86{
     87        return ENOTSUP;
     88}
     89/*----------------------------------------------------------------------------*/
    7890/**
    7991 * Initialize hub device driver fibril
  • uspace/drv/bus/usb/usbhub/usbhub.h

    r51f033ce r940f576  
    5252
    5353/** Information about attached hub. */
    54 struct usb_hub_info_t {
     54struct usb_hub_info {
    5555        /** Number of ports. */
    5656        size_t port_count;
     
    7979
    8080int usb_hub_device_add(usb_device_t *usb_dev);
     81int usb_hub_device_gone(usb_device_t *usb_dev);
    8182
    8283bool hub_port_changes_callback(usb_device_t *dev,
Note: See TracChangeset for help on using the changeset viewer.