2 * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
4 * Copyright (C) 2002-2010 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Charles Manning <charles@aleph1.co.uk>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License version 2.1 as
11 * published by the Free Software Foundation.
13 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
17 * This file is just holds extra declarations of macros that would normally
18 * be providesd in the Linux kernel. These macros have been written from
19 * scratch but are functionally equivalent to the Linux ones.
29 #if !(defined __KERNEL__)
31 /* Definition of types */
32 typedef unsigned char __u8;
33 typedef unsigned short __u16;
34 typedef unsigned __u32;
39 #if !(defined __KERNEL__)
47 #ifdef CONFIG_YAFFS_PROVIDE_DEFS
67 * Attribute flags. These should be or-ed together to figure out what
79 unsigned int ia_valid;
87 unsigned int ia_attr_flags;
94 #include <linux/types.h>
96 #include <linux/stat.h>