mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
27 lines
665 B
C
27 lines
665 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef OHCI_H
|
|
#define OHCI_H
|
|
/**
|
|
* \file
|
|
*
|
|
* Provides support for USB keyboards connected via an OHCI controller.
|
|
*
|
|
*//*
|
|
* Copyright (C) 2021-2022 Martin Whitaker.
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "usbhcd.h"
|
|
|
|
/**
|
|
* Initialises the OHCI device found at base_addr, 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 ohci_init(uintptr_t base_addr, usb_hcd_t *hcd);
|
|
|
|
#endif // OHCI_H
|