Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 1e32a63 in mainline for uspace/drv/vhc/hubintern.h


Ignore:
Timestamp:
2010-12-13T00:30:09Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
f9a0cef
Parents:
f8597ca
Message:

Guarding port changes by mutex in VHC

The individual ports in virtual host controller are guarded by mutex.

Also added ClearPortFeature?(C_PORT_RESET) callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hubintern.h

    rf8597ca r1e32a63  
    3737
    3838#include "hub.h"
     39#include <fibril_synch.h>
    3940
    4041/** Endpoint number for status change pipe. */
     
    124125        hub_port_state_t state;
    125126        uint16_t status_change;
     127        fibril_mutex_t guard;
    126128} hub_port_t;
    127129
     
    139141void clear_port_status_change(hub_port_t *, uint16_t);
    140142void set_port_status_change(hub_port_t *, uint16_t);
     143void set_port_status_change_nl(hub_port_t *, uint16_t);
    141144
    142145
Note: See TracChangeset for help on using the changeset viewer.