Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: layout.c

Issue 6001009: increase max ROM layout regions (Closed) Base URL: svn://coreboot.org/flashrom/trunk
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the flashrom project. 2 * This file is part of the flashrom project.
3 * 3 *
4 * Copyright (C) 2005-2008 coresystems GmbH 4 * Copyright (C) 2005-2008 coresystems GmbH
5 * (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH) 5 * (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH)
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License. 9 * the Free Software Foundation; version 2 of the License.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 #include <limits.h> 25 #include <limits.h>
26 #include "flash.h" 26 #include "flash.h"
27 #include "programmer.h" 27 #include "programmer.h"
28 28
29 #if CONFIG_INTERNAL == 1 29 #if CONFIG_INTERNAL == 1
30 char *mainboard_vendor = NULL; 30 char *mainboard_vendor = NULL;
31 char *mainboard_part = NULL; 31 char *mainboard_part = NULL;
32 #endif 32 #endif
33 static int romimages = 0; 33 static int romimages = 0;
34 34
35 #define MAX_ROMLAYOUT» 32 35 #define MAX_ROMLAYOUT» 64
36 36
37 typedef struct { 37 typedef struct {
38 unsigned int start; 38 unsigned int start;
39 unsigned int end; 39 unsigned int end;
40 unsigned int included; 40 unsigned int included;
41 char name[256]; 41 char name[256];
42 } romlayout_t; 42 } romlayout_t;
43 43
44 static romlayout_t rom_entries[MAX_ROMLAYOUT]; 44 static romlayout_t rom_entries[MAX_ROMLAYOUT];
45 45
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 rom_entries[entry].start - start); 258 rom_entries[entry].start - start);
259 /* Skip to location after current romentry. */ 259 /* Skip to location after current romentry. */
260 start = rom_entries[entry].end + 1; 260 start = rom_entries[entry].end + 1;
261 /* Catch overflow. */ 261 /* Catch overflow. */
262 if (!start) 262 if (!start)
263 break; 263 break;
264 } 264 }
265 265
266 return 0; 266 return 0;
267 } 267 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698