Changeset 28f660d in mainline for uspace/drv/uhci/root_hub/root_hub.h


Ignore:
Timestamp:
2010-12-31T15:53:35Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92f924c8
Parents:
2972e21
Message:

moved logic to port structure

File:
1 edited

Legend:

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

    r2972e21 r28f660d  
    3232 * @brief UHCI driver
    3333 */
    34 #ifndef DRV_UHCI_TD_ROOT_HUB_H
    35 #define DRV_UHCI_TD_ROOT_HUB_H
     34#ifndef DRV_UHCI_ROOT_HUB_H
     35#define DRV_UHCI_ROOT_HUB_H
    3636
    3737#include <fibril.h>
    3838#include <driver.h>
    3939
     40#include "port.h"
     41
    4042#define UHCI_ROOT_HUB_PORT_COUNT 2
    4143#define UHCI_ROOT_HUB_PORT_REGISTERS_OFFSET 0x10
    4244
    43 typedef struct port_regs {
    44         uint16_t portsc[UHCI_ROOT_HUB_PORT_COUNT];
    45 } port_regs_t;
    46 
    4745typedef struct root_hub {
    48         port_regs_t *registers;
    49         fid_t checker;
     46        uhci_port_t ports[UHCI_ROOT_HUB_PORT_COUNT];
     47        fid_t checker[UHCI_ROOT_HUB_PORT_COUNT];
    5048} uhci_root_hub_t;
    5149
    5250int uhci_root_hub_init(
    53   uhci_root_hub_t *instance, device_t *device, void *addr );
     51  uhci_root_hub_t *instance, device_t *device, void *addr);
    5452
    55 int uhci_root_hub_fini( uhci_root_hub_t* instance );
    56 
    57 //int uhci_root_hub_check_ports( void * device );
    58 
     53int uhci_root_hub_fini(uhci_root_hub_t* instance);
    5954#endif
    6055/**
Note: See TracChangeset for help on using the changeset viewer.