1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
15 #define RFS_T_SIZE 0x00
16 #define RFS_T_FLAGS 0x08
17 #define RFS_T_FILEADDR 0x10
18 #define RFS_T_NEXT 0x18
19 #define RFS_T_NAME 0x20
20 #define RFS_T_DATA 0x28
22 #define RFS_H_NEXT 0x00
23 #define RFS_H_SIZE 0x08
24 #define RFS_H_FLAGS 0x10
25 #define RFS_H_DATA 0x18
26 #define RFS_H_NAME 0x20
28 #define ROMFS_HDR_NEXT (0 * 8)
29 #define ROMFS_HDR_LEN (1 * 8)
30 #define ROMFS_HDR_FLAG (2 * 8)
31 #define ROMFS_HDR_DPTR (3 * 8)
32 #define ROMFS_HDR_NAME (4 * 8)
35 /* no not change except if you change romfs.S */
39 unsigned long fileaddr;
40 unsigned long nexfile;
45 struct romfs_lookup_t {
46 unsigned long addr_header;
47 unsigned long addr_data;
48 unsigned long size_data;
52 int romfs_stat(char *filename, struct romfs_t *hnd);
54 int romfs_stat_file(char *filename, struct romfs_t *hnd);
56 int c_romfs_lookup(char *filename, unsigned long rombase,
57 struct romfs_lookup_t *ret);
59 #endif /* __ASSEMBLER__ */