Changeset 1256a0a in mainline for uspace/drv/uhci-rhd/port.h


Ignore:
Timestamp:
2011-02-01T00:08:46Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
993a1e1
Parents:
37ac7bb
Message:

uhci-rhd - UHCI Root hub drier as a separated process

this wil deffinitely need a lot of polishing

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.h

    r37ac7bb r1256a0a  
    4444{
    4545        port_status_t *address;
    46         device_t *hc;
    4746        unsigned number;
    4847        unsigned wait_period_usec;
    4948        int hc_phone;
     49        device_t *rh;
    5050        devman_handle_t attached_device;
     51        fid_t checker;
    5152} uhci_port_t;
    5253
    53 static inline void uhci_port_init(
    54   uhci_port_t *port, port_status_t *address, device_t *hc, unsigned number,
    55   unsigned usec)
    56 {
    57         assert(port);
    58         port->address = address;
    59         port->hc = hc;
    60         port->number = number;
    61         port->hc_phone = -1;
    62         port->wait_period_usec = usec;
    63         port->attached_device = 0;
    64 }
     54int uhci_port_init(
     55  uhci_port_t *port, port_status_t *address, unsigned number,
     56  unsigned usec, device_t *rh);
    6557
    66 int uhci_port_check(void *port);
     58void uhci_port_fini(uhci_port_t *port);
    6759#endif
    6860/**
Note: See TracChangeset for help on using the changeset viewer.