tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / cpu / ti / am335x / header.h
blob43a628065a7d41e8a185262ff8e5f2545845f00e
1 /*
2 * Copyright (C) 2013 Google Inc.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __CPU_TI_AM335X_HEADER_H
16 #define __CPU_TI_AM335X_HEADER_H
18 #include <stdint.h>
20 struct configuration_header_toc_item {
21 // Offset from the start address of the TOC to the actual address of
22 // a section.
23 uint32_t start;
25 // Size of a section.
26 uint32_t size;
28 // Reserved.
29 uint32_t reserved[3];
31 // 12-character name of a section, including the zero (\0) terminator.
32 char filename[12];
33 } __attribute__((packed));
35 struct configuration_header_settings {
36 // Key used for section verification.
37 uint32_t key;
39 // Enables or disables the section.
40 // 00h: Disable.
41 // Other: Enable.
42 uint8_t valid;
44 // Configuration header version.
45 uint8_t version;
47 // Reserved.
48 uint16_t reserved;
50 // Flags. It's not clear what this is used for.
51 uint32_t flags;
52 } __attribute__((packed));
54 struct gp_device_header {
55 // Size of the image.
56 uint32_t size;
58 // Address to store the image/code entry point.
59 uint32_t destination;
60 } __attribute__((packed));
62 #endif