Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hpi_version.h File Reference

Go to the source code of this file.

Macros

#define HPI_VER   HPI_VERSION_CONSTRUCTOR(4, 10, 1)
 
#define HPI_VER_STRING   "4.10.01"
 
#define HPI_LIB_VER   HPI_VERSION_CONSTRUCTOR(10, 2, 0)
 
#define HPI_VERSION_CONSTRUCTOR(maj, min, r)   ((maj << 16) + (min << 8) + r)
 
#define HPI_VER_MAJOR(v)   ((int)(v >> 16))
 
#define HPI_VER_MINOR(v)   ((int)((v >> 8) & 0xFF))
 
#define HPI_VER_RELEASE(v)   ((int)(v & 0xFF))
 

Detailed Description

HPI Version Definitions

Development releases have odd minor version. Production releases have even minor version.

Definition in file hpi_version.h.

Macro Definition Documentation

#define HPI_LIB_VER   HPI_VERSION_CONSTRUCTOR(10, 2, 0)

Library version as documented in hpi-api-versions.txt

Definition at line 20 of file hpi_version.h.

#define HPI_VER   HPI_VERSION_CONSTRUCTOR(4, 10, 1)

HPI version

Definition at line 14 of file hpi_version.h.

#define HPI_VER_MAJOR (   v)    ((int)(v >> 16))

Extract major version from hpi version number

Definition at line 26 of file hpi_version.h.

#define HPI_VER_MINOR (   v)    ((int)((v >> 8) & 0xFF))

Extract minor version from hpi version number

Definition at line 28 of file hpi_version.h.

#define HPI_VER_RELEASE (   v)    ((int)(v & 0xFF))

Extract release from hpi version number

Definition at line 30 of file hpi_version.h.

#define HPI_VER_STRING   "4.10.01"

HPI version string in dotted decimal format

Definition at line 17 of file hpi_version.h.

#define HPI_VERSION_CONSTRUCTOR (   maj,
  min,
  r 
)    ((maj << 16) + (min << 8) + r)

Construct hpi version number from major, minor, release numbers

Definition at line 23 of file hpi_version.h.