-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor update of USB Host EHCI_TT and OHCI drivers (#34)
- Relocate for Communication Area renamed to Locate - minor comment update - minor spelling fixes - remove trailing spaces - change EOLs to Unix style (LF)
- Loading branch information
1 parent
8d1cd95
commit ec6335e
Showing
13 changed files
with
381 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
/* | ||
* Copyright (c) 2024 Arm Limited. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the License); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an AS IS BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the License); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an AS IS BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* $Date: 28. May 2024 | ||
* $Revision: V1.0 | ||
* | ||
* Project: USB Host EHCI Controller Driver Hardware-specific header | ||
* $Date: 28. May 2024 | ||
* $Revision: V1.0 | ||
* | ||
* ----------------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef USBH_EHCI_HW_H_ | ||
#define USBH_EHCI_HW_H_ | ||
|
||
#include <stdint.h> | ||
* Project: USB Host EHCI Controller Driver Hardware-specific header | ||
* | ||
* ----------------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef USBH_EHCI_HW_H_ | ||
#define USBH_EHCI_HW_H_ | ||
|
||
#include <stdint.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
typedef void (*USBH_EHCI_Interrupt_t) (void); ///< Pointer to EHCI Interrupt Handler Routine. | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_Initialize (uint8_t ctrl, USBH_EHCI_Interrupt_t interrupt_handler) | ||
\brief Initialize USB Host EHCI Interface. | ||
\param[in] ctrl Index of USB Host controller | ||
\param[in] interrupt_handler Pointer to Interrupt Handler Routine | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_Initialize (uint8_t ctrl, USBH_EHCI_Interrupt_t interrupt_handler); | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_Uninitialize (uint8_t ctrl) | ||
\brief De-initialize USB Host EHCI Interface. | ||
\param[in] ctrl Index of USB Host controller | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_Uninitialize (uint8_t ctrl); | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_PowerControl (uint8_t ctrl, uint32_t state) | ||
\brief Control USB Host EHCI Interface Power. | ||
\param[in] ctrl Index of USB Host controller | ||
\param[in] state Power state (0 = power off, 1 = power on) | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_PowerControl (uint8_t ctrl, uint32_t state); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* USBH_EHCI_HW_H_ */ | ||
|
||
typedef void (*USBH_EHCI_Interrupt_t) (void); ///< Pointer to EHCI Interrupt Handler Routine. | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_Initialize (uint8_t ctrl, USBH_EHCI_Interrupt_t interrupt_handler) | ||
\brief Initialize USB Host EHCI Interface. | ||
\param[in] ctrl Index of USB Host controller | ||
\param[in] interrupt_handler Pointer to Interrupt Handler Routine | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_Initialize (uint8_t ctrl, USBH_EHCI_Interrupt_t interrupt_handler); | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_Uninitialize (uint8_t ctrl) | ||
\brief De-initialize USB Host EHCI Interface. | ||
\param[in] ctrl Index of USB Host controller | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_Uninitialize (uint8_t ctrl); | ||
|
||
/** | ||
\fn int32_t USBH_EHCI_HW_PowerControl (uint8_t ctrl, uint32_t state) | ||
\brief Control USB Host EHCI Interface Power. | ||
\param[in] ctrl Index of USB Host controller | ||
\param[in] state Power state (0 = power off, 1 = power on) | ||
\return 0 on success, -1 on error. | ||
*/ | ||
extern int32_t USBH_EHCI_HW_PowerControl (uint8_t ctrl, uint32_t state); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* USBH_EHCI_HW_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.