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

Side by Side Diff: flash.h

Issue 6791005: Supports --ignore-fmap argument to skip parsing fmap structure on flash. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cli_mfg.c ('k') | flashrom.c » ('j') | 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) 2000 Silicon Integrated System Corporation 4 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> 5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com>
6 * Copyright (C) 2005-2009 coresystems GmbH 6 * Copyright (C) 2005-2009 coresystems GmbH
7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger 7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 #define msg_pdbg(...) print(MSG_DEBUG, __VA_ARGS__) /* programmer debug */ 243 #define msg_pdbg(...) print(MSG_DEBUG, __VA_ARGS__) /* programmer debug */
244 #define msg_cdbg(...) print(MSG_DEBUG, __VA_ARGS__) /* chip debug */ 244 #define msg_cdbg(...) print(MSG_DEBUG, __VA_ARGS__) /* chip debug */
245 #define msg_gspew(...) print(MSG_BARF, __VA_ARGS__) /* general debug barf * / 245 #define msg_gspew(...) print(MSG_BARF, __VA_ARGS__) /* general debug barf * /
246 #define msg_pspew(...) print(MSG_BARF, __VA_ARGS__) /* programmer debug barf */ 246 #define msg_pspew(...) print(MSG_BARF, __VA_ARGS__) /* programmer debug barf */
247 #define msg_cspew(...) print(MSG_BARF, __VA_ARGS__) /* chip debug barf */ 247 #define msg_cspew(...) print(MSG_BARF, __VA_ARGS__) /* chip debug barf */
248 248
249 /* cli_classic.c */ 249 /* cli_classic.c */
250 int cli_classic(int argc, char *argv[]); 250 int cli_classic(int argc, char *argv[]);
251 int cli_mfg(int argc, char *argv[]); 251 int cli_mfg(int argc, char *argv[]);
252 252
253 /* cli_mfg.c */
254 extern int set_ignore_fmap;
255
253 /* layout.c */ 256 /* layout.c */
254 int read_romlayout(char *name); 257 int read_romlayout(char *name);
255 int add_fmap_entries(struct flashchip *flash); 258 int add_fmap_entries(struct flashchip *flash);
256 int register_include_arg(char *name); 259 int register_include_arg(char *name);
257 int process_include_args(void); 260 int process_include_args(void);
258 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne wcontents); 261 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne wcontents);
259 int handle_partial_read( 262 int handle_partial_read(
260 struct flashchip *flash, 263 struct flashchip *flash,
261 uint8_t *buf, 264 uint8_t *buf,
262 int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len)); 265 int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len));
263 /* RETURN: the number of partitions that have beenpartial read. 266 /* RETURN: the number of partitions that have beenpartial read.
264 * ==0 means no partition is specified. 267 * ==0 means no partition is specified.
265 * < 0 means writing file error. */ 268 * < 0 means writing file error. */
266 269
267 /* spi.c */ 270 /* spi.c */
268 struct spi_command { 271 struct spi_command {
269 unsigned int writecnt; 272 unsigned int writecnt;
270 unsigned int readcnt; 273 unsigned int readcnt;
271 const unsigned char *writearr; 274 const unsigned char *writearr;
272 unsigned char *readarr; 275 unsigned char *readarr;
273 }; 276 };
274 int spi_send_command(unsigned int writecnt, unsigned int readcnt, 277 int spi_send_command(unsigned int writecnt, unsigned int readcnt,
275 const unsigned char *writearr, unsigned char *readarr); 278 const unsigned char *writearr, unsigned char *readarr);
276 int spi_send_multicommand(struct spi_command *cmds); 279 int spi_send_multicommand(struct spi_command *cmds);
277 uint32_t spi_get_valid_read_addr(void); 280 uint32_t spi_get_valid_read_addr(void);
278 281
279 #endif /* !__FLASH_H__ */ 282 #endif /* !__FLASH_H__ */
OLDNEW
« no previous file with comments | « cli_mfg.c ('k') | flashrom.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698