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

Side by Side Diff: flash.h

Issue 6025013: Add flashmap (fmap) support to Flashrom (Closed) Base URL: svn://coreboot.org/flashrom/trunk
Patch Set: remove a superfluous debug message Created 9 years, 9 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 | « Makefile ('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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /* layout.c */ 253 /* layout.c */
254 int read_romlayout(char *name); 254 int read_romlayout(char *name);
255 int add_fmap_entries(struct flashchip *flash);
255 int register_include_arg(char *name); 256 int register_include_arg(char *name);
256 int process_include_args(void); 257 int process_include_args(void);
257 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne wcontents); 258 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne wcontents);
258 int handle_partial_read( 259 int handle_partial_read(
259 struct flashchip *flash, 260 struct flashchip *flash,
260 uint8_t *buf, 261 uint8_t *buf,
261 int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len)); 262 int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len));
262 /* RETURN: the number of partitions that have beenpartial read. 263 /* RETURN: the number of partitions that have beenpartial read.
263 * ==0 means no partition is specified. 264 * ==0 means no partition is specified.
264 * < 0 means writing file error. */ 265 * < 0 means writing file error. */
265 266
266 /* spi.c */ 267 /* spi.c */
267 struct spi_command { 268 struct spi_command {
268 unsigned int writecnt; 269 unsigned int writecnt;
269 unsigned int readcnt; 270 unsigned int readcnt;
270 const unsigned char *writearr; 271 const unsigned char *writearr;
271 unsigned char *readarr; 272 unsigned char *readarr;
272 }; 273 };
273 int spi_send_command(unsigned int writecnt, unsigned int readcnt, 274 int spi_send_command(unsigned int writecnt, unsigned int readcnt,
274 const unsigned char *writearr, unsigned char *readarr); 275 const unsigned char *writearr, unsigned char *readarr);
275 int spi_send_multicommand(struct spi_command *cmds); 276 int spi_send_multicommand(struct spi_command *cmds);
276 uint32_t spi_get_valid_read_addr(void); 277 uint32_t spi_get_valid_read_addr(void);
277 278
278 #endif /* !__FLASH_H__ */ 279 #endif /* !__FLASH_H__ */
OLDNEW
« no previous file with comments | « Makefile ('k') | flashrom.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698