xref: /rk3399_rockchip-uboot/include/sandboxfs.h (revision 92ccc96bf3cd6c6a3a9a56e03d5ceb4874735d22)
1*92ccc96bSSimon Glass /*
2*92ccc96bSSimon Glass  * Copyright (c) 2012, Google Inc.
3*92ccc96bSSimon Glass  *
4*92ccc96bSSimon Glass  * This program is free software; you can redistribute it and/or modify
5*92ccc96bSSimon Glass  * it under the terms of the GNU General Public License version 2 as
6*92ccc96bSSimon Glass  * published by the Free Software Foundation.
7*92ccc96bSSimon Glass  *
8*92ccc96bSSimon Glass  * This program is distributed in the hope that it will be useful,
9*92ccc96bSSimon Glass  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10*92ccc96bSSimon Glass  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11*92ccc96bSSimon Glass  * GNU General Public License for more details.
12*92ccc96bSSimon Glass  *
13*92ccc96bSSimon Glass  * You should have received a copy of the GNU General Public License
14*92ccc96bSSimon Glass  * along with this program; if not, write to the Free Software
15*92ccc96bSSimon Glass  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16*92ccc96bSSimon Glass  */
17*92ccc96bSSimon Glass 
18*92ccc96bSSimon Glass #ifndef __SANDBOX_FS__
19*92ccc96bSSimon Glass #define __SANDBOX_FS__
20*92ccc96bSSimon Glass 
21*92ccc96bSSimon Glass int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info);
22*92ccc96bSSimon Glass 
23*92ccc96bSSimon Glass long sandbox_fs_read_at(const char *filename, unsigned long pos,
24*92ccc96bSSimon Glass 			     void *buffer, unsigned long maxsize);
25*92ccc96bSSimon Glass 
26*92ccc96bSSimon Glass void sandbox_fs_close(void);
27*92ccc96bSSimon Glass int sandbox_fs_ls(const char *dirname);
28*92ccc96bSSimon Glass int fs_read_sandbox(const char *filename, void *buf, int offset, int len);
29*92ccc96bSSimon Glass 
30*92ccc96bSSimon Glass #endif
31