blob: fcdcd00306c5345b0d8128af2fd02d4b541d5572 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
% for name, region in regions:
/// Manifest field ${name} offset from the base.
pub const ${region.offset_name().as_c_define()}:u32 = ${region.base_addr};
/// Manifest field ${name} size in bytes.
pub const ${region.size_bytes_name().as_c_define()}:u32 = ${region.size_bytes};
/// Manifest field ${name} size in words.
pub const ${region.size_words_name().as_c_define()}:u32 = ${region.size_words};
% endfor
% for name, offset in offsets:
/// Manifest offset ${name} from the base.
pub const ${offset.offset_name().as_c_define()}:u32 = ${offset.offset};
%endfor