types.h 713 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_TYPES_H
  9. #define __ASM_AVR32_TYPES_H
  10. #include <asm-generic/int-ll64.h>
  11. #ifndef __ASSEMBLY__
  12. typedef unsigned short umode_t;
  13. #endif /* __ASSEMBLY__ */
  14. /*
  15. * These aren't exported outside the kernel to avoid name space clashes
  16. */
  17. #ifdef __KERNEL__
  18. #define BITS_PER_LONG 32
  19. #ifndef __ASSEMBLY__
  20. /* Dma addresses are 32-bits wide. */
  21. typedef u32 dma_addr_t;
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* __KERNEL__ */
  24. #endif /* __ASM_AVR32_TYPES_H */