mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Clean up exported Mtd* functions
A lot of functions were added some time ago, nominally to support keeping the firmware in an MTD device that wasn't formatted with the GPT headers. That work was never completed, so these functions aren't used anywhere. We may want to resurrect this work at some future point. Until then, this CL just moves some of the functions into an "unused" file. BUG=chromium:231567 BRANCH=ToT TEST=manual All tests pass, all firmware and external repos build. Change-Id: I420dd52d1cea0418cedf2f8e834c61145915f20c Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/207037 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
782990277a
commit
18e03706df
@@ -1,35 +0,0 @@
|
||||
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
#ifndef _FLASH_TS_H
|
||||
#define _FLASH_TS_H
|
||||
|
||||
typedef struct {
|
||||
unsigned int szofpg; /* Erase unit */
|
||||
unsigned int szofblk; /* Write unit */
|
||||
unsigned int szofsector; /* Sector size used by the rest of cgpt */
|
||||
void *user;
|
||||
} nand_geom;
|
||||
|
||||
int flash_ts_init(unsigned int start_block, unsigned int blocks,
|
||||
unsigned int szofpg, unsigned int szofblk,
|
||||
unsigned int szofsector, void *user);
|
||||
|
||||
/* Get/set value, returns 0 on success */
|
||||
int flash_ts_set(const char *key, const char *value);
|
||||
void flash_ts_get(const char *key, char *value, unsigned int size);
|
||||
|
||||
/* Get value as an integer, if missing/invalid return 'default_value' */
|
||||
int flash_ts_get_int(const char *key, int default_value);
|
||||
|
||||
|
||||
/* These must be implemented outside the driver. */
|
||||
int nand_read_page(const nand_geom *nand, int page, void *buf, int size);
|
||||
int nand_write_page(const nand_geom *nand, int page, const void *buf, int size);
|
||||
int nand_erase_block(const nand_geom *nand, int block);
|
||||
int nand_is_bad_block(const nand_geom *nand, int block);
|
||||
|
||||
|
||||
|
||||
#endif /* _FLASH_TS_H */
|
||||
Reference in New Issue
Block a user