mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-30 11:03:48 -06:00
4c55182cd0
The controller reset should set the USBINTR, FRNUM, and SOF registers to their default values, but set them explicitly just to be sure.
28 lines
750 B
C
28 lines
750 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef UHCI_H
|
|
#define UHCI_H
|
|
/**
|
|
* \file
|
|
*
|
|
* Provides support for USB keyboards connected via an UHCI controller.
|
|
*
|
|
*//*
|
|
* Copyright (C) 2021-2022 Martin Whitaker.
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "usbhcd.h"
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
bool uhci_init(int bus, int dev, int func, uint16_t io_base, usb_hcd_t *hcd);
|
|
|
|
#endif // UHCI_H
|