2022-02-19 10:24:47 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef UHCI_H
|
|
|
|
#define UHCI_H
|
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* Provides support for USB keyboards connected via an UHCI controller.
|
|
|
|
*
|
2022-02-19 13:56:55 -06:00
|
|
|
*//*
|
2022-02-19 10:24:47 -06:00
|
|
|
* Copyright (C) 2021-2022 Martin Whitaker.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "usbhcd.h"
|
|
|
|
|
|
|
|
/**
|
2022-04-09 16:42:59 -05:00
|
|
|
* Initialises the UHCI device found at bus, dev, func on the PCI bus and
|
|
|
|
* io_base in the I/O address space, scans all the attached USB devices, and
|
|
|
|
* configures any HID USB keyboard devices it finds to generate periodic
|
|
|
|
* interrupt transfers that report key presses. Initialises hcd and returns
|
|
|
|
* true if the device was successfully initialised and one or more keyboards
|
|
|
|
* were found.
|
2022-02-19 10:24:47 -06:00
|
|
|
*/
|
2022-04-09 16:42:59 -05:00
|
|
|
bool uhci_init(int bus, int dev, int func, uint16_t io_base, usb_hcd_t *hcd);
|
2022-02-19 10:24:47 -06:00
|
|
|
|
|
|
|
#endif // UHCI_H
|