Go to the documentation of this file.
8 #ifndef _ASM_IA64_SN_XTALK_XWIDGET_H
9 #define _ASM_IA64_SN_XTALK_XWIDGET_H
12 #define WIDGET_REV_NUM 0xf0000000
13 #define WIDGET_PART_NUM 0x0ffff000
14 #define WIDGET_MFG_NUM 0x00000ffe
15 #define WIDGET_REV_NUM_SHFT 28
16 #define WIDGET_PART_NUM_SHFT 12
17 #define WIDGET_MFG_NUM_SHFT 1
19 #define XWIDGET_PART_NUM(widgetid) (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)
20 #define XWIDGET_REV_NUM(widgetid) (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)
21 #define XWIDGET_MFG_NUM(widgetid) (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)
22 #define XWIDGET_PART_REV_NUM(widgetid) ((XWIDGET_PART_NUM(widgetid) << 4) | \
23 XWIDGET_REV_NUM(widgetid))
24 #define XWIDGET_PART_REV_NUM_REV(partrev) (partrev & 0xf)