summaryrefslogtreecommitdiff
path: root/src/portable/ehci/ehci_api.h
blob: 6e3ddfb66ac7300d083310b939e48d47435e1c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * SPDX-FileCopyrightText: Copyright (c) 2021, Ha Thach (tinyusb.org)
 * SPDX-License-Identifier: MIT
 *
 * This file is part of the TinyUSB stack.
 */

#ifndef TUSB_EHCI_API_H_
#define TUSB_EHCI_API_H_

#ifdef __cplusplus
 extern "C" {
#endif

//--------------------------------------------------------------------+
// API Implemented by EHCI
//--------------------------------------------------------------------+

// Initialize EHCI driver
bool ehci_init(uint8_t rhport, uint32_t capability_reg, uint32_t operatial_reg);

// De-initialize EHCI driver
bool ehci_deinit(uint8_t rhport);

#ifdef __cplusplus
 }
#endif

#endif