]> git.sur5r.net Git - u-boot/blobdiff - include/fat.h
Clean up smsc911x driver
[u-boot] / include / fat.h
index 92638d535e4def9e99a694d6842a04840f4423b7..f993ccab1c2c2a20d4340dc162dbef9cd297256a 100644 (file)
 #define START(dent)    (FAT2CPU16((dent)->start) \
                        + (mydata->fatsize != 32 ? 0 : \
                          (FAT2CPU16((dent)->starthi) << 16)))
-
+#define CHECK_CLUST(x, fatsize) ((x) <= 1 || \
+                               (x) >= ((fatsize) != 32 ? 0xfff0 : 0xffffff0))
 
 typedef struct boot_sector {
        __u8    ignored[3];     /* Bootstrap code */