Subversion Repositories HelenOS

Rev

Rev 3497 | Rev 3506 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3497 Rev 3505
Line 113... Line 113...
113
            uint16_t    signature;
113
            uint16_t    signature;
114
        } __attribute__ ((packed));
114
        } __attribute__ ((packed));
115
    };
115
    };
116
} __attribute__ ((packed)) fat_bs_t;
116
} __attribute__ ((packed)) fat_bs_t;
117
 
117
 
118
#define FAT_ATTR_RDONLY     (1 << 0)
-
 
119
#define FAT_ATTR_VOLLABEL   (1 << 3)
-
 
120
#define FAT_ATTR_SUBDIR     (1 << 4)
-
 
121
 
-
 
122
typedef struct {
-
 
123
    uint8_t     name[8];
-
 
124
    uint8_t     ext[3];
-
 
125
    uint8_t     attr;
-
 
126
    uint8_t     reserved;
-
 
127
    uint8_t     ctime_fine;
-
 
128
    uint16_t    ctime;
-
 
129
    uint16_t    cdate;
-
 
130
    uint16_t    adate;
-
 
131
    union {
-
 
132
        uint16_t    eaidx;      /* FAT12/FAT16 */
-
 
133
        uint16_t    firstc_hi;  /* FAT32 */
-
 
134
    };
-
 
135
    uint16_t    mtime;
-
 
136
    uint16_t    mdate;
-
 
137
    union {
-
 
138
        uint16_t    firstc;     /* FAT12/FAT16 */
-
 
139
        uint16_t    firstc_lo;  /* FAT32 */
-
 
140
    };
-
 
141
    uint32_t    size;
-
 
142
} __attribute__ ((packed)) fat_dentry_t;
-
 
143
 
-
 
144
typedef uint16_t fat_cluster_t;
118
typedef uint16_t fat_cluster_t;
145
 
119
 
146
typedef enum {
120
typedef enum {
147
    FAT_INVALID,
121
    FAT_INVALID,
148
    FAT_DIRECTORY,
122
    FAT_DIRECTORY,