| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |