- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# include/compiler/sparse.h

Go to the documentation of this file.

    00001
    00041 #ifndef COMPILER_SPARSE_H_INCLUDED
    00042 #define COMPILER_SPARSE_H_INCLUDED
    00043
    00044 /* sparse understands most gcc attributes */
    00045 #include <compiler/gcc.h>
    00046
    00057 #define __bitwise       __attribute__((bitwise))
    00058
    00064 #define __virtual       /* default address space */
    00065
    00073 #define __physical      __attribute__((noderef, address_space(1)))
    00074
    00083 #define __force         __attribute__((force))
    00084
    00085 /*
    00086  * Sparse doesn't know these builtins, so declare them as regular
    00087  * functions to avoid warnings.
    00088  */
    00089 unsigned short __builtin_bswap_16(unsigned short x);
    00090 unsigned long __builtin_bswap_32(unsigned long x);
    00091 unsigned int __builtin_clz(unsigned int x);
    00092 unsigned long __builtin_mfsr(unsigned long addr);
    00093 void __builtin_mtsr(unsigned long addr, unsigned long value);
    00094 void __builtin_tlbw(void);
    00095 void __builtin_cache(void *addr, int op);
    00096 void __builtin_sync(unsigned int unused);
    00097
    00098 #endif /* COMPILER_SPARSE_H_INCLUDED */