]>
Commit | Line | Data |
---|---|---|
04fee52e A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
db839b1d | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
04fee52e | 7 | * |
db839b1d A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
04fee52e A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
db839b1d A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
04fee52e A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * fs.h - Externs for the File System Modules | |
27 | * | |
28 | * Copyright (c) 1999-2000 Apple Computer, Inc. | |
29 | * | |
30 | * DRI: Josh de Cesare | |
31 | */ | |
32 | ||
33 | #ifndef _BOOTX_FS_H_ | |
34 | #define _BOOTX_FS_H_ | |
35 | ||
36 | // Externs for fs.c | |
37 | extern long LoadFile(char *fileSpec); | |
04fee52e A |
38 | extern long GetFileInfo(char *dirSpec, char *name, long *flags, long *time); |
39 | extern long GetDirEntry(char *dirSpec, long *dirIndex, char **name, | |
40 | long *flags, long *time); | |
41 | extern long DumpDir(char *dirSpec); | |
42 | ||
43 | // Externs for cache.c | |
44 | extern unsigned long gCacheHits; | |
45 | extern unsigned long gCacheMisses; | |
46 | extern unsigned long gCacheEvicts; | |
47 | ||
48 | extern void CacheInit(CICell ih, long chunkSize); | |
49 | extern long CacheRead(CICell ih, char *buffer, long long offset, | |
50 | long length, long cache); | |
51 | ||
52 | // Externs for net.c | |
53 | extern CICell NetInitPartition(char *devSpec); | |
54 | extern long NetLoadFile(CICell ih, char *filePath); | |
55 | extern long NetGetDirEntry(CICell ih, char *dirPath, | |
56 | long *dirIndex, char **name, | |
57 | long *flags, long *time); | |
58 | ||
59 | // Externs for hfs.c | |
60 | extern long HFSInitPartition(CICell ih); | |
61 | extern long HFSLoadFile(CICell ih, char *filePath); | |
62 | extern long HFSGetDirEntry(CICell ih, char *dirPath, | |
63 | long *dirIndex, char **name, | |
64 | long *flags, long *time); | |
65 | ||
66 | // Externs for ufs.c | |
67 | extern long UFSInitPartition(CICell ih); | |
68 | extern long UFSLoadFile(CICell ih, char *filePath); | |
69 | extern long UFSGetDirEntry(CICell ih, char *dirPath, | |
70 | long *dirIndex, char **name, | |
71 | long *flags, long *time); | |
72 | ||
73 | // Externs for ext2.c | |
74 | extern long Ext2InitPartition(CICell ih); | |
75 | extern long Ext2LoadFile(CICell ih, char *filePath); | |
76 | extern long Ext2GetDirEntry(CICell ih, char *dirPath, | |
77 | long *dirIndex, char **name, | |
78 | long *flags, long *time); | |
79 | ||
80 | #endif /* ! _BOOTX_FS_H_ */ |