xref: /rk3399_ARM-atf/tools/fiptool/tbbr_config.h (revision e0f083a09b295306e0b31ebc9ea5e3a848d12b84)
1819281eeSdp-arm /*
2819281eeSdp-arm  * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3819281eeSdp-arm  *
4819281eeSdp-arm  * Redistribution and use in source and binary forms, with or without
5819281eeSdp-arm  * modification, are permitted provided that the following conditions are met:
6819281eeSdp-arm  *
7819281eeSdp-arm  * Redistributions of source code must retain the above copyright notice, this
8819281eeSdp-arm  * list of conditions and the following disclaimer.
9819281eeSdp-arm  *
10819281eeSdp-arm  * Redistributions in binary form must reproduce the above copyright notice,
11819281eeSdp-arm  * this list of conditions and the following disclaimer in the documentation
12819281eeSdp-arm  * and/or other materials provided with the distribution.
13819281eeSdp-arm  *
14819281eeSdp-arm  * Neither the name of ARM nor the names of its contributors may be used
15819281eeSdp-arm  * to endorse or promote products derived from this software without specific
16819281eeSdp-arm  * prior written permission.
17819281eeSdp-arm  *
18819281eeSdp-arm  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19819281eeSdp-arm  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20819281eeSdp-arm  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21819281eeSdp-arm  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22819281eeSdp-arm  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23819281eeSdp-arm  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24819281eeSdp-arm  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25819281eeSdp-arm  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26819281eeSdp-arm  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27819281eeSdp-arm  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28819281eeSdp-arm  * POSSIBILITY OF SUCH DAMAGE.
29819281eeSdp-arm  */
30819281eeSdp-arm 
31819281eeSdp-arm #ifndef __TBBR_CONFIG_H__
32819281eeSdp-arm #define __TBBR_CONFIG_H__
33819281eeSdp-arm 
34819281eeSdp-arm #include <stdint.h>
35819281eeSdp-arm 
36819281eeSdp-arm #include "uuid.h"
37819281eeSdp-arm 
38819281eeSdp-arm /* TODO: Update this number as required */
39819281eeSdp-arm #define TOC_HEADER_SERIAL_NUMBER 0x12345678
40819281eeSdp-arm 
41819281eeSdp-arm typedef struct toc_entry {
42*e0f083a0Sdp-arm 	char         *name;
43819281eeSdp-arm 	uuid_t        uuid;
44*e0f083a0Sdp-arm 	char         *cmdline_name;
45819281eeSdp-arm } toc_entry_t;
46819281eeSdp-arm 
47819281eeSdp-arm extern toc_entry_t toc_entries[];
48819281eeSdp-arm extern size_t toc_entries_len;
49819281eeSdp-arm 
50819281eeSdp-arm #endif /* __TBBR_CONFIG_H__ */
51