summaryrefslogtreecommitdiff
path: root/layout.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-08-30 22:23:02 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-08-30 22:23:02 +0000
commit41a040144610458c83f382764a55b224bf6bd652 (patch)
treeed3d2cf1a924543f83a5c8153bf603ef71141e75 /layout.c
parent3f0b72ebf6baba62c35c8cfb4cd6c82309ff4ca4 (diff)
downloadflashrom-41a040144610458c83f382764a55b224bf6bd652.tar.gz
layout: Rename romlayout_t to romentry_t.
The type describes one entry of the whole layout actually. Using layout_entry_t or something similar would be more correct, but due to it length we will use "rom" instead of "layout" here and in upcoming code. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1732 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/layout.c b/layout.c
index a9205e8..8bb1666 100644
--- a/layout.c
+++ b/layout.c
@@ -32,10 +32,10 @@ typedef struct {
unsigned int end;
unsigned int included;
char name[256];
-} romlayout_t;
+} romentry_t;
/* rom_entries store the entries specified in a layout file and associated run-time data */
-static romlayout_t rom_entries[MAX_ROMLAYOUT];
+static romentry_t rom_entries[MAX_ROMLAYOUT];
static int num_rom_entries = 0; /* the number of valid rom_entries */
/* include_args holds the arguments specified at the command line with -i. They must be processed at some point
@@ -189,12 +189,12 @@ int process_include_args(void)
return 0;
}
-romlayout_t *get_next_included_romentry(unsigned int start)
+romentry_t *get_next_included_romentry(unsigned int start)
{
int i;
unsigned int best_start = UINT_MAX;
- romlayout_t *best_entry = NULL;
- romlayout_t *cur;
+ romentry_t *best_entry = NULL;
+ romentry_t *cur;
/* First come, first serve for overlapping regions. */
for (i = 0; i < num_rom_entries; i++) {
@@ -219,7 +219,7 @@ romlayout_t *get_next_included_romentry(unsigned int start)
int handle_romentries(const struct flashctx *flash, uint8_t *oldcontents, uint8_t *newcontents)
{
unsigned int start = 0;
- romlayout_t *entry;
+ romentry_t *entry;
unsigned int size = flash->chip->total_size * 1024;
/* If no regions were specified for inclusion, assume