Software APIs
otp_fields.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include "sw/device/silicon_creator/manuf/lib/otp_fields.h"
6 
8 
9 #define HW_CFG1_EN_OFFSET(m, i) ((bitfield_field32_t){.mask = m, .index = i})
10 const bitfield_field32_t kSramFetch = HW_CFG1_EN_OFFSET(0xff, 0);
11 const bitfield_field32_t kCsrngAppRead = HW_CFG1_EN_OFFSET(0xff, 8);
12 const bitfield_field32_t kDisRvDmLateDebug = HW_CFG1_EN_OFFSET(0xff, 16);
13 #undef HW_CFG1_EN_OFFSET