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

Go to the source code of this file.

Data Structures

struct  widget_cfg
 
struct  xwidget_hwid
 
struct  xwidget_info
 

Macros

#define WIDGET_REV_NUM   0xf0000000
 
#define WIDGET_PART_NUM   0x0ffff000
 
#define WIDGET_MFG_NUM   0x00000ffe
 
#define WIDGET_REV_NUM_SHFT   28
 
#define WIDGET_PART_NUM_SHFT   12
 
#define WIDGET_MFG_NUM_SHFT   1
 
#define XWIDGET_PART_NUM(widgetid)   (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)
 
#define XWIDGET_REV_NUM(widgetid)   (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)
 
#define XWIDGET_MFG_NUM(widgetid)   (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)
 
#define XWIDGET_PART_REV_NUM(widgetid)
 
#define XWIDGET_PART_REV_NUM_REV(partrev)   (partrev & 0xf)
 

Macro Definition Documentation

#define WIDGET_MFG_NUM   0x00000ffe

Definition at line 14 of file xwidgetdev.h.

#define WIDGET_MFG_NUM_SHFT   1

Definition at line 17 of file xwidgetdev.h.

#define WIDGET_PART_NUM   0x0ffff000

Definition at line 13 of file xwidgetdev.h.

#define WIDGET_PART_NUM_SHFT   12

Definition at line 16 of file xwidgetdev.h.

#define WIDGET_REV_NUM   0xf0000000

Definition at line 12 of file xwidgetdev.h.

#define WIDGET_REV_NUM_SHFT   28

Definition at line 15 of file xwidgetdev.h.

#define XWIDGET_MFG_NUM (   widgetid)    (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)

Definition at line 21 of file xwidgetdev.h.

#define XWIDGET_PART_NUM (   widgetid)    (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)

Definition at line 19 of file xwidgetdev.h.

#define XWIDGET_PART_REV_NUM (   widgetid)
Value:
((XWIDGET_PART_NUM(widgetid) << 4) | \
XWIDGET_REV_NUM(widgetid))

Definition at line 22 of file xwidgetdev.h.

#define XWIDGET_PART_REV_NUM_REV (   partrev)    (partrev & 0xf)

Definition at line 24 of file xwidgetdev.h.

#define XWIDGET_REV_NUM (   widgetid)    (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)

Definition at line 20 of file xwidgetdev.h.