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

Side by Side Diff: include/lib/flashrom.h

Issue 6646016: leverage flashrom fast partial read function to speed up VPD read. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpd.git@master
Patch Set: refine code to handle corner case of eps->table_address. 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/lib/fmap.h » ('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 * Copyright 2010, Google Inc. 2 * Copyright 2010, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 15 matching lines...) Expand all
26 #ifndef __LIB_FLASHROM_H__ 26 #ifndef __LIB_FLASHROM_H__
27 #define __LIB_FLASHROM_H__ 27 #define __LIB_FLASHROM_H__
28 28
29 #include <inttypes.h> 29 #include <inttypes.h>
30 30
31 enum { 31 enum {
32 FLASHROM_OK = 0, 32 FLASHROM_OK = 0,
33 FLASHROM_FAIL, 33 FLASHROM_FAIL,
34 }; 34 };
35 35
36 int flashromRead(const char* tmp_file); 36 int flashromRead(const char* part_file, const char* full_file,
37 const char* partition_name);
37 38
38 int flashromPartialWrite(const char* tmp_file, 39 int flashromPartialWrite(const char* part_file, const char* full_file,
39 const off_t section_offset, 40 const char* partition_name);
40 const size_t section_size);
41 41
42 #endif /* __LIB_FLASHROM_H__ */ 42 #endif /* __LIB_FLASHROM_H__ */
OLDNEW
« no previous file with comments | « no previous file | include/lib/fmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698