Skip to content

Commit

Permalink
[sw, dif] Add headers for the last remaining IPs
Browse files Browse the repository at this point in the history
- 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
Srikrishna Iyer authored and sriyerg committed Oct 26, 2021
1 parent d326360 commit 0e68704
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sw/device/lib/dif/dif_adc_ctrl.h
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_
26 changes: 26 additions & 0 deletions sw/device/lib/dif/dif_flash_ctrl.h
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_
26 changes: 26 additions & 0 deletions sw/device/lib/dif/dif_pattgen.h
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_
26 changes: 26 additions & 0 deletions sw/device/lib/dif/dif_spi_host.h
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_
26 changes: 26 additions & 0 deletions sw/device/lib/dif/dif_sysrst_ctrl.h
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_

0 comments on commit 0e68704

Please sign in to comment.