#include <libarch/ddi.h>
#include <fibril_synch.h>
#include <errno.h>
#include <str_error.h>
#include <async.h>
#include <usb/usb.h>
#include <usb/dev/hub.h>
#include <usb/debug.h>
#include "port.h"
Go to the source code of this file.
Functions | |
static int | uhci_port_check (void *port) |
Periodically checks port status and reports new devices. | |
void | uhci_port_fini (uhci_port_t *port) |
Cleanup UHCI root hub port instance. | |
int | uhci_port_init (uhci_port_t *port, port_status_t *address, unsigned number, unsigned usec, ddf_dev_t *rh) |
Initialize UHCI root hub port instance. | |
static int | uhci_port_new_device (uhci_port_t *port, usb_speed_t speed) |
Initialize and report connected device. | |
static void | uhci_port_print_status (uhci_port_t *port, const port_status_t value) |
Print the port status value in a human friendly way. | |
static port_status_t | uhci_port_read_status (uhci_port_t *port) |
Register reading helper function. | |
static int | uhci_port_remove_device (uhci_port_t *port) |
Remove device. | |
static int | uhci_port_reset_enable (int portno, void *arg) |
Callback for enabling port during adding a new device. | |
static int | uhci_port_set_enabled (uhci_port_t *port, bool enabled) |
Enable or disable root hub port. | |
static void | uhci_port_write_status (uhci_port_t *port, port_status_t val) |
Register writing helper function. |
Definition in file port.c.