~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/include/sandboxfs.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

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