2 * fat - A FAT* CDI driver
4 * Copyright (C) 2008 Janosch Gräf
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 3 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, see <http://www.gnu.org/licenses/>.
25 #define fat32_first_cluster(de) ((((uint32_t)(de)->first_cluster_high)<<16)|(de)->first_cluster)
31 /// Filename extension
32 uint8_t filename_ext
[3];
55 } __attribute__ ((packed
)) attr
;
82 } __attribute__ ((packed
)) create_date
;
94 } __attribute__ ((packed
)) access_date
;
96 /// Higher 16 bits of first cluster (for FAT32)
97 uint16_t first_cluster_high
;
110 /// Year (since 1980)
118 } __attribute__ ((packed
)) write_date
;
121 uint16_t first_cluster
;
125 } __attribute__ ((packed
));
127 struct fat_dirent_long
{
155 } __attribute__ ((packed
)) attr
;
157 /// Type of log directory entry (should be 0)
171 } __attribute__ ((packed
));