NetBurner 3.1
chkdsk.h
1 /*NB_REVISION*/
2 
3 /****************************************************************************
4  *
5  * Copyright (c) 2003-2006 by HCC Embedded
6  *
7  * This software is copyrighted by and is the sole property of
8  * HCC. All rights, title, ownership, or other interests
9  * in the software remain the property of HCC. This
10  * software may only be used in accordance with the corresponding
11  * license agreement. Any unauthorized use, duplication, transmission,
12  * distribution, or disclosure of this software is expressly forbidden.
13  *
14  * This Copyright notice may not be removed or modified without prior
15  * written consent of HCC.
16  *
17  * HCC reserves the right to modify this software without notice.
18  *
19  * HCC Embedded
20  * Budapest 1132
21  * Victor Hugo Utca 11-15
22  * Hungary
23  *
24  * Tel: +36 (1) 450 1302
25  * Fax: +36 (1) 450 1303
26  * http: www.hcc-embedded.com
27  * email: info@hcc-embedded.com
28  *
29  ***************************************************************************/
30 
31 #ifndef __CHKDSK_H
32 #define __CHKDSK_H
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 #define CHKDSK_LOG_ENABLE
40 #ifdef CHKDSK_LOG_ENABLE
41 #define CHKDSK_LOG_SIZE 8192
42 #endif
43 #define CHKDSK_MAX_DIR_DEPTH 64 /* max. stack= ~(CHKDSK_MAX_DIR_DEPTH*85)+1100 */
44 
45 #define CHKDSK_ERASE_BAD_CHAIN 0x1 /* erase all bad chains */
46 #define CHKDSK_ERASE_LOST_CHAIN 0x2 /* erase all lost chains */
47 #define CHKDSK_ERASE_LOST_BAD_CHAIN 0x4 /* erase all lost bad chains */
48 
49  enum
50  {
51  FC_NO_ERROR,
52  FC_WRITE_ERROR = 50,
53  FC_READ_ERROR,
54  FC_CLUSTER_ERROR,
55  FC_ALLOCATION_ERROR
56  };
57 
58  extern int f_checkdisk(int drivenum, int param);
59 
60 #ifdef __cplusplus
61 };
62 #endif
63 
64 #endif