PageRenderTime 1269ms CodeModel.GetById 239ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/scsi/mpt2sas/mpi/mpi2_type.h

https://bitbucket.org/slukk/jb-tsm-kernel-4.2
C Header | 61 lines | 16 code | 10 blank | 35 comment | 0 complexity | 7e87a1f5a9fef9a84bbd88018ad1b590 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * Copyright (c) 2000-2007 LSI Corporation.
  3. *
  4. *
  5. * Name: mpi2_type.h
  6. * Title: MPI basic type definitions
  7. * Creation Date: August 16, 2006
  8. *
  9. * mpi2_type.h Version: 02.00.00
  10. *
  11. * Version History
  12. * ---------------
  13. *
  14. * Date Version Description
  15. * -------- -------- ------------------------------------------------------
  16. * 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
  17. * --------------------------------------------------------------------------
  18. */
  19. #ifndef MPI2_TYPE_H
  20. #define MPI2_TYPE_H
  21. /*******************************************************************************
  22. * Define MPI2_POINTER if it hasn't already been defined. By default
  23. * MPI2_POINTER is defined to be a near pointer. MPI2_POINTER can be defined as
  24. * a far pointer by defining MPI2_POINTER as "far *" before this header file is
  25. * included.
  26. */
  27. #ifndef MPI2_POINTER
  28. #define MPI2_POINTER *
  29. #endif
  30. /* the basic types may have already been included by mpi_type.h */
  31. #ifndef MPI_TYPE_H
  32. /*****************************************************************************
  33. *
  34. * Basic Types
  35. *
  36. *****************************************************************************/
  37. typedef u8 U8;
  38. typedef __le16 U16;
  39. typedef __le32 U32;
  40. typedef __le64 U64 __attribute__((aligned(4)));
  41. /*****************************************************************************
  42. *
  43. * Pointer Types
  44. *
  45. *****************************************************************************/
  46. typedef U8 *PU8;
  47. typedef U16 *PU16;
  48. typedef U32 *PU32;
  49. typedef U64 *PU64;
  50. #endif
  51. #endif