Changeset 1256a0a in mainline for uspace/drv/uhci-rhd/port.h
- Timestamp:
- 2011-02-01T00:08:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 993a1e1
- Parents:
- 37ac7bb
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.h
r37ac7bb r1256a0a 44 44 { 45 45 port_status_t *address; 46 device_t *hc;47 46 unsigned number; 48 47 unsigned wait_period_usec; 49 48 int hc_phone; 49 device_t *rh; 50 50 devman_handle_t attached_device; 51 fid_t checker; 51 52 } uhci_port_t; 52 53 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 } 54 int uhci_port_init( 55 uhci_port_t *port, port_status_t *address, unsigned number, 56 unsigned usec, device_t *rh); 65 57 66 int uhci_port_check(void*port);58 void uhci_port_fini(uhci_port_t *port); 67 59 #endif 68 60 /**
Note:
See TracChangeset
for help on using the changeset viewer.