1 /* 2 * Arm SCP/MCP Software 3 * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Description: 8 * < ... >. 9 */ 10 11 #ifndef <DEVICE>_H 12 #define <DEVICE>_H 13 14 #include <fwk_macros.h> 15 16 #include <stdint.h> 17 18 struct device_reg { 19 /* Readable and writable register */ 20 FWK_RW uint32_t <REGISTER NAME>; 21 uint32_t RESERVED1; 22 23 /* Write-only register */ 24 FWK_W uint32_t <REGISTER NAME>; 25 26 /* Read-only register */ 27 FWK_R uint32_t <REGISTER NAME>; 28 uint32_t RESERVED2[0x40]; 29 }; 30 31 /* Register bit definitions */ 32 #define <DEVICE>_<REGISTER NAME>_<FIELD> UINT32_C(0x00000001) 33 #define <DEVICE>_<REGISTER NAME>_<FIELD> UINT32_C(0x00000002) 34 35 #endif /* <DEVICE>_H */ 36