types.h 864 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* MN10300 Basic type definitions
  2. *
  3. * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
  4. * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_TYPES_H
  12. #define _ASM_TYPES_H
  13. #include <asm-generic/int-ll64.h>
  14. #ifndef __ASSEMBLY__
  15. typedef unsigned short umode_t;
  16. #endif /* __ASSEMBLY__ */
  17. /*
  18. * These aren't exported outside the kernel to avoid name space clashes
  19. */
  20. #ifdef __KERNEL__
  21. #define BITS_PER_LONG 32
  22. #ifndef __ASSEMBLY__
  23. /* Dma addresses are 32-bits wide. */
  24. typedef u32 dma_addr_t;
  25. #endif /* __ASSEMBLY__ */
  26. #endif /* __KERNEL__ */
  27. #endif /* _ASM_TYPES_H */