#include <fibril_synch.h>
Go to the source code of this file.
Data Structures | |
| struct | hub |
| Hub device type. More... | |
| struct | hub_port_t |
| Hub port information. More... | |
Defines | |
| #define | BITS2BYTES(bits) (bits ? ((((bits)-1)>>3)+1) : 0) |
| #define | HUB_PORT_COUNT 2 |
Typedefs | |
| typedef hub | hub_t |
Enumerations | |
| enum | hub_port_state_t |
| Hub port internal state. More... | |
| enum | hub_status_change_t |
| Hub status change mask bits. | |
Functions | |
| void | hub_acquire (hub_t *hub) |
| Acquire exclusive access to the hub. | |
| void | hub_clear_port_status_change (hub_t *hub, size_t port_index, hub_status_change_t change) |
| Clear port status change bit. | |
| size_t | hub_connect_device (hub_t *hub, void *device) |
| Connect a device to the hub. | |
| int | hub_disconnect_device (hub_t *hub, void *device) |
| Disconnects a device from a hub. | |
| size_t | hub_find_device (hub_t *hub, void *device) |
| Find port device is connected to. | |
| hub_port_state_t | hub_get_port_state (hub_t *hub, size_t port_index) |
| Get port state. | |
| uint32_t | hub_get_port_status (hub_t *hub, size_t port_index) |
| Get port status bits. | |
| uint16_t | hub_get_port_status_change (hub_t *hub, size_t port_index) |
| Get port status change bits. | |
| uint8_t | hub_get_status_change_bitmap (hub_t *hub) |
| Create hub status change bitmap. | |
| void | hub_init (hub_t *hub) |
| Initialize the hub. | |
| char | hub_port_state_to_char (hub_port_state_t state) |
| Convert hub port state to a char. | |
| void | hub_release (hub_t *hub) |
| Give up exclusive access to the hub. | |
| void | hub_set_port_state (hub_t *hub, size_t port_index, hub_port_state_t state) |
| Change port state. | |
| void | hub_set_port_state_all (hub_t *hub, hub_port_state_t state) |
| Change state of all ports. | |
Definition in file hub.h.
1.4.7