192ccc96bSSimon Glass /* 292ccc96bSSimon Glass * Copyright (c) 2012, Google Inc. 392ccc96bSSimon Glass * 492ccc96bSSimon Glass * This program is free software; you can redistribute it and/or modify 592ccc96bSSimon Glass * it under the terms of the GNU General Public License version 2 as 692ccc96bSSimon Glass * published by the Free Software Foundation. 792ccc96bSSimon Glass * 892ccc96bSSimon Glass * This program is distributed in the hope that it will be useful, 992ccc96bSSimon Glass * but WITHOUT ANY WARRANTY; without even the implied warranty of 1092ccc96bSSimon Glass * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1192ccc96bSSimon Glass * GNU General Public License for more details. 1292ccc96bSSimon Glass * 1392ccc96bSSimon Glass * You should have received a copy of the GNU General Public License 1492ccc96bSSimon Glass * along with this program; if not, write to the Free Software 1592ccc96bSSimon Glass * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1692ccc96bSSimon Glass */ 1792ccc96bSSimon Glass 1892ccc96bSSimon Glass #ifndef __SANDBOX_FS__ 1992ccc96bSSimon Glass #define __SANDBOX_FS__ 2092ccc96bSSimon Glass 2192ccc96bSSimon Glass int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info); 2292ccc96bSSimon Glass 2392ccc96bSSimon Glass long sandbox_fs_read_at(const char *filename, unsigned long pos, 2492ccc96bSSimon Glass void *buffer, unsigned long maxsize); 2592ccc96bSSimon Glass 2692ccc96bSSimon Glass void sandbox_fs_close(void); 2792ccc96bSSimon Glass int sandbox_fs_ls(const char *dirname); 28*0a30aa1eSStephen Warren int sandbox_fs_exists(const char *filename); 2992ccc96bSSimon Glass int fs_read_sandbox(const char *filename, void *buf, int offset, int len); 307eb2c8d5SSimon Glass int fs_write_sandbox(const char *filename, void *buf, int offset, int len); 3192ccc96bSSimon Glass 3292ccc96bSSimon Glass #endif 33