2 * ifdtool - dump Intel Firmware Descriptor information
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #define IFDTOOL_VERSION "1.2"
24 #define LAYOUT_LINELEN 80
27 SPI_FREQUENCY_20MHZ
= 0,
28 SPI_FREQUENCY_33MHZ
= 1,
29 SPI_FREQUENCY_48MHZ
= 2,
30 SPI_FREQUENCY_50MHZ_30MHZ
= 4,
31 SPI_FREQUENCY_17MHZ
= 6,
34 enum component_density
{
35 COMPONENT_DENSITY_512KB
= 0,
36 COMPONENT_DENSITY_1MB
= 1,
37 COMPONENT_DENSITY_2MB
= 2,
38 COMPONENT_DENSITY_4MB
= 3,
39 COMPONENT_DENSITY_8MB
= 4,
40 COMPONENT_DENSITY_16MB
= 5,
41 COMPONENT_DENSITY_32MB
= 6,
42 COMPONENT_DENSITY_64MB
= 7,
43 COMPONENT_DENSITY_UNUSED
= 0xf
52 uint8_t reserved
[0xefc - 0x20];
54 } __attribute__((packed
)) fdbar_t
;
58 #define MAX_REGIONS_OLD 5
69 } __attribute__((packed
)) frba_t
;
76 } __attribute__((packed
)) fcba_t
;
98 } __attribute__((packed
)) fpsba_t
;
101 * WR / RD bits start at different locations within the flmstr regs, but
102 * otherwise have identical meaning.
104 #define FLMSTR_WR_SHIFT_V1 24
105 #define FLMSTR_WR_SHIFT_V2 20
106 #define FLMSTR_RD_SHIFT_V1 16
107 #define FLMSTR_RD_SHIFT_V2 8
116 } __attribute__((packed
)) fmba_t
;
121 } __attribute__((packed
)) fmsba_t
;
130 // Actual number of entries specified in vtl
135 int base
, limit
, size
;