]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/reiserfs.h
arm64: ls2088ardb: Add distro boot support
[people/ms/u-boot.git] / include / reiserfs.h
CommitLineData
518e2e1a
WD
1/*
2 * Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README
3 *
4 * GRUB -- GRand Unified Bootloader
5 * Copyright (C) 2000, 2001 Free Software Foundation, Inc.
6 *
7 * (C) Copyright 2003 Sysgo Real-Time Solutions, AG <www.elinos.com>
8 * Pavel Bartusek <pba@sysgo.de>
9 *
1a459660 10 * SPDX-License-Identifier: GPL-2.0+
518e2e1a
WD
11 */
12
13/* An implementation for the ReiserFS filesystem ported from GRUB.
14 * Some parts of this code (mainly the structures and defines) are
15 * from the original reiser fs code, as found in the linux kernel.
16 */
17
18
19#define SECTOR_SIZE 0x200
20#define SECTOR_BITS 9
21
22/* Error codes */
23typedef enum
24{
25 ERR_NONE = 0,
26 ERR_BAD_FILENAME,
27 ERR_BAD_FILETYPE,
28 ERR_BAD_GZIP_DATA,
29 ERR_BAD_GZIP_HEADER,
30 ERR_BAD_PART_TABLE,
31 ERR_BAD_VERSION,
32 ERR_BELOW_1MB,
33 ERR_BOOT_COMMAND,
34 ERR_BOOT_FAILURE,
35 ERR_BOOT_FEATURES,
36 ERR_DEV_FORMAT,
37 ERR_DEV_VALUES,
38 ERR_EXEC_FORMAT,
39 ERR_FILELENGTH,
40 ERR_FILE_NOT_FOUND,
41 ERR_FSYS_CORRUPT,
42 ERR_FSYS_MOUNT,
43 ERR_GEOM,
44 ERR_NEED_LX_KERNEL,
45 ERR_NEED_MB_KERNEL,
46 ERR_NO_DISK,
47 ERR_NO_PART,
48 ERR_NUMBER_PARSING,
49 ERR_OUTSIDE_PART,
50 ERR_READ,
51 ERR_SYMLINK_LOOP,
52 ERR_UNRECOGNIZED,
53 ERR_WONT_FIT,
54 ERR_WRITE,
55 ERR_BAD_ARGUMENT,
56 ERR_UNALIGNED,
57 ERR_PRIVILEGED,
58 ERR_DEV_NEED_INIT,
59 ERR_NO_DISK_SPACE,
60 ERR_NUMBER_OVERFLOW,
61
62 MAX_ERR_NUM
63} reiserfs_error_t;
64
65
4101f687 66void reiserfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
518e2e1a
WD
67extern int reiserfs_ls (char *dirname);
68extern int reiserfs_open (char *filename);
69extern int reiserfs_read (char *buf, unsigned len);
70extern int reiserfs_mount (unsigned part_length);