- Timestamp:
- 08/31/11 18:19:50 (9 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
board_enable.c (modified) (6 diffs)
-
flashrom.c (modified) (1 diff)
-
print.c (modified) (2 diffs)
-
print_wiki.c (modified) (1 diff)
-
programmer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/board_enable.c
r1419 r1424 1975 1975 1976 1976 /* Please keep this list alphabetically ordered by vendor/board name. */ 1977 const struct board_ pciid_enable board_pciid_enables[] = {1977 const struct board_match board_matches[] = { 1978 1978 1979 1979 /* first pci-id set [4], second pci-id set [4], dmi identifier, coreboot id [2], phase, vendor name, board name max_rom_... OK? flash enable */ … … 2103 2103 * Require main PCI IDs to match too as extra safety. 2104 2104 */ 2105 static const struct board_ pciid_enable *board_match_coreboot_name(2106 const char *vendor,const char *part)2107 { 2108 const struct board_ pciid_enable *board = board_pciid_enables;2109 const struct board_ pciid_enable*partmatch = NULL;2105 static const struct board_match *board_match_cbname(const char *vendor, 2106 const char *part) 2107 { 2108 const struct board_match *board = board_matches; 2109 const struct board_match *partmatch = NULL; 2110 2110 2111 2111 for (; board->vendor_name; board++) { … … 2154 2154 /* 2155 2155 * Match boards on PCI IDs and subsystem IDs. 2156 * Second set of IDs can be main only or missing completely. 2157 */ 2158 const static struct board_pciid_enable *board_match_pci_card_ids( 2159 enum board_match_phase phase) 2160 { 2161 const struct board_pciid_enable *board = board_pciid_enables; 2156 * Second set of IDs can be either main+subsystem IDs, main IDs or no IDs. 2157 */ 2158 const static struct board_match *board_match_pci_ids(enum board_match_phase phase) 2159 { 2160 const struct board_match *board = board_matches; 2162 2161 2163 2162 for (; board->vendor_name; board++) { … … 2205 2204 } 2206 2205 2207 static int unsafe_board_handler(const struct board_ pciid_enable*board)2206 static int unsafe_board_handler(const struct board_match *board) 2208 2207 { 2209 2208 if (!board) … … 2232 2231 static int board_handle_phase(enum board_match_phase phase) 2233 2232 { 2234 const struct board_ pciid_enable*board = NULL;2235 2236 board = board_match_pci_ card_ids(phase);2233 const struct board_match *board = NULL; 2234 2235 board = board_match_pci_ids(phase); 2237 2236 2238 2237 if (unsafe_board_handler(board)) … … 2263 2262 int board_flash_enable(const char *vendor, const char *part) 2264 2263 { 2265 const struct board_ pciid_enable*board = NULL;2264 const struct board_match *board = NULL; 2266 2265 int ret = 0; 2267 2266 2268 2267 if (part) 2269 board = board_match_c oreboot_name(vendor, part);2268 board = board_match_cbname(vendor, part); 2270 2269 2271 2270 if (!board) 2272 board = board_match_pci_ card_ids(P3);2271 board = board_match_pci_ids(P3); 2273 2272 2274 2273 if (unsafe_board_handler(board)) -
trunk/flashrom.c
r1417 r1424 1732 1732 ret = 1; 1733 1733 } 1734 if (board_ pciid_enables == NULL) {1734 if (board_matches == NULL) { 1735 1735 msg_gerr("Board enables table does not exist!\n"); 1736 1736 ret = 1; -
trunk/print.c
r1419 r1424 204 204 { 205 205 int i, boardcount_good = 0, boardcount_bad = 0; 206 const struct board_ pciid_enable *e = board_pciid_enables;206 const struct board_match *e = board_matches; 207 207 const struct board_info *b = boards; 208 208 int maxvendorlen = strlen("Vendor") + 1; … … 242 242 msg_ginfo((b->working) ? "OK " : "BAD "); 243 243 244 for (e = board_ pciid_enables; e->vendor_name != NULL; e++) {244 for (e = board_matches; e->vendor_name != NULL; e++) { 245 245 if (strcmp(e->vendor_name, b->vendor) 246 246 || strcmp(e->board_name, b->name)) -
trunk/print_wiki.c
r1393 r1424 126 126 char *notes = calloc(1, 1); 127 127 char tmp[900 + 1]; 128 const struct board_ pciid_enable *b = board_pciid_enables;128 const struct board_match *b = board_matches; 129 129 130 130 for (i = 0; boards[i].vendor != NULL; i++) { -
trunk/programmer.h
r1371 r1424 159 159 }; 160 160 161 struct board_ pciid_enable{161 struct board_match { 162 162 /* Any device, but make it sensible, like the ISA bridge. */ 163 163 uint16_t first_vendor; … … 191 191 }; 192 192 193 extern const struct board_ pciid_enable board_pciid_enables[];193 extern const struct board_match board_matches[]; 194 194 195 195 struct board_info {
Note: See TracChangeset
for help on using the changeset viewer.
