forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sw, dif] Add headers for the last remaining IPs
- Added the DIF header file for the last remaining IPs for which the DIF effort has not yet begun. These are adc ctrl, flash ctrl, pattgen, spi host and sysrst ctrl. Signed-off-by: Srikrishna Iyer <sriyer@google.com>
- Loading branch information
Showing
5 changed files
with
130 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ADC_CTRL_H_ | ||
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ADC_CTRL_H_ | ||
|
||
/** | ||
* @file | ||
* @brief <a href="/hw/ip/adc_ctrl/doc/">ADC Controller</a> Device Interface | ||
* Functions | ||
*/ | ||
|
||
#include "sw/device/lib/dif/autogen/dif_adc_ctrl_autogen.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
// TODO: Add DIFs. | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus | ||
|
||
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ADC_CTRL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_FLASH_CTRL_H_ | ||
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_FLASH_CTRL_H_ | ||
|
||
/** | ||
* @file | ||
* @brief <a href="/hw/ip/flash_ctrl/doc/">Flash Controller</a> Device | ||
* Interface Functions | ||
*/ | ||
|
||
#include "sw/device/lib/dif/autogen/dif_flash_ctrl_autogen.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
// TODO: Add DIFs. | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus | ||
|
||
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_FLASH_CTRL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_PATTGEN_H_ | ||
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_PATTGEN_H_ | ||
|
||
/** | ||
* @file | ||
* @brief <a href="/hw/ip/pattgen/doc/">Pattern Generator</a> Device Interface | ||
* Functions | ||
*/ | ||
|
||
#include "sw/device/lib/dif/autogen/dif_pattgen_autogen.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
// TODO: Add DIFs. | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus | ||
|
||
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_PATTGEN_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SPI_HOST_H_ | ||
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SPI_HOST_H_ | ||
|
||
/** | ||
* @file | ||
* @brief <a href="/hw/ip/spi_host/doc/">SPI Host</a> Device Interface | ||
* Functions | ||
*/ | ||
|
||
#include "sw/device/lib/dif/autogen/dif_spi_host_autogen.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
// TODO: Add DIFs. | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus | ||
|
||
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SPI_HOST_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SYSRST_CTRL_H_ | ||
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SYSRST_CTRL_H_ | ||
|
||
/** | ||
* @file | ||
* @brief <a href="/hw/ip/sysrst_ctrl/doc/">System Reset Controller</a> Device | ||
* Interface Functions | ||
*/ | ||
|
||
#include "sw/device/lib/dif/autogen/dif_sysrst_ctrl_autogen.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
// TODO: Add DIFs. | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus | ||
|
||
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SYSRST_CTRL_H_ |