Changeset 263e1ec in mainline


Ignore:
Timestamp:
2007-11-25T21:36:56Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25b9e2c
Parents:
5af627fc
Message:

FAT work.
Add type describing FAT directory entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat.h

    r5af627fc r263e1ec  
    110110                } __attribute__ ((packed));
    111111        };
    112 } fat_bs_t __attribute__ ((packed));
     112} __attribute__ ((packed)) fat_bs_t;
     113
     114typedef 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;
    113135
    114136extern uint8_t *plb_ro;
Note: See TracChangeset for help on using the changeset viewer.