Subversion Repositories HelenOS

Rev

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

Rev 2628 Rev 2629
Line 107... Line 107...
107
            uint8_t     boot_code[420];
107
            uint8_t     boot_code[420];
108
            /** Signature. */
108
            /** Signature. */
109
            uint16_t    signature;
109
            uint16_t    signature;
110
        } __attribute__ ((packed));
110
        } __attribute__ ((packed));
111
    };
111
    };
112
} fat_bs_t __attribute__ ((packed));
112
} __attribute__ ((packed)) fat_bs_t;
-
 
113
 
-
 
114
typedef struct {
-
 
115
    uint8_t     name[8];
-
 
116
    uint8_t     ext[3];
-
 
117
    uint8_t     attr;
-
 
118
    uint8_t     reserved;
-
 
119
    uint8_t     ctime_fine;
-
 
120
    uint16_t    ctime;
-
 
121
    uint16_t    cdate;
-
 
122
    uint16_t    adate;
-
 
123
    union {
-
 
124
        uint16_t    eaidx;      /* FAT12/FAT16 */
-
 
125
        uint16_t    firstc_hi;  /* FAT32 */
-
 
126
    };
-
 
127
    uint16_t    mtime;
-
 
128
    uint16_t    mdate;
-
 
129
    union {
-
 
130
        uint16_t    firstc;     /* FAT12/FAT16 */
-
 
131
        uint16_t    firstc_lo;  /* FAT32 */
-
 
132
    };
-
 
133
    uint32_t    size;
-
 
134
} __attribute__ ((packed)) fat_dentry_t;
113
 
135
 
114
extern uint8_t *plb_ro;
136
extern uint8_t *plb_ro;
115
 
137
 
116
extern int block_read(int, unsigned long, void *);
138
extern int block_read(int, unsigned long, void *);
117
 
139