| 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) 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 find_romentry(char *name); | 255 int find_romentry(char *name); |
| 256 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne
wcontents); | 256 int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *ne
wcontents); |
| 257 int handle_partial_read( |
| 258 struct flashchip *flash, |
| 259 uint8_t *buf, |
| 260 int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len)); |
| 261 /* RETURN: the number of partitions that have beenpartial read. |
| 262 * ==0 means no partition is specified. |
| 263 * < 0 means writing file error. */ |
| 257 | 264 |
| 258 /* spi.c */ | 265 /* spi.c */ |
| 259 struct spi_command { | 266 struct spi_command { |
| 260 unsigned int writecnt; | 267 unsigned int writecnt; |
| 261 unsigned int readcnt; | 268 unsigned int readcnt; |
| 262 const unsigned char *writearr; | 269 const unsigned char *writearr; |
| 263 unsigned char *readarr; | 270 unsigned char *readarr; |
| 264 }; | 271 }; |
| 265 int spi_send_command(unsigned int writecnt, unsigned int readcnt, | 272 int spi_send_command(unsigned int writecnt, unsigned int readcnt, |
| 266 const unsigned char *writearr, unsigned char *readarr); | 273 const unsigned char *writearr, unsigned char *readarr); |
| 267 int spi_send_multicommand(struct spi_command *cmds); | 274 int spi_send_multicommand(struct spi_command *cmds); |
| 268 uint32_t spi_get_valid_read_addr(void); | 275 uint32_t spi_get_valid_read_addr(void); |
| 269 | 276 |
| 270 #endif /* !__FLASH_H__ */ | 277 #endif /* !__FLASH_H__ */ |
| OLD | NEW |