Path: blob/master/arch/ia64/sn/include/xtalk/xwidgetdev.h
10820 views
/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 1992-1997,2000-2003 Silicon Graphics, Inc. All Rights Reserved.6*/7#ifndef _ASM_IA64_SN_XTALK_XWIDGET_H8#define _ASM_IA64_SN_XTALK_XWIDGET_H910/* WIDGET_ID */11#define WIDGET_REV_NUM 0xf000000012#define WIDGET_PART_NUM 0x0ffff00013#define WIDGET_MFG_NUM 0x00000ffe14#define WIDGET_REV_NUM_SHFT 2815#define WIDGET_PART_NUM_SHFT 1216#define WIDGET_MFG_NUM_SHFT 11718#define XWIDGET_PART_NUM(widgetid) (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)19#define XWIDGET_REV_NUM(widgetid) (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)20#define XWIDGET_MFG_NUM(widgetid) (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)21#define XWIDGET_PART_REV_NUM(widgetid) ((XWIDGET_PART_NUM(widgetid) << 4) | \22XWIDGET_REV_NUM(widgetid))23#define XWIDGET_PART_REV_NUM_REV(partrev) (partrev & 0xf)2425/* widget configuration registers */26struct widget_cfg{27u32 w_id; /* 0x04 */28u32 w_pad_0; /* 0x00 */29u32 w_status; /* 0x0c */30u32 w_pad_1; /* 0x08 */31u32 w_err_upper_addr; /* 0x14 */32u32 w_pad_2; /* 0x10 */33u32 w_err_lower_addr; /* 0x1c */34u32 w_pad_3; /* 0x18 */35u32 w_control; /* 0x24 */36u32 w_pad_4; /* 0x20 */37u32 w_req_timeout; /* 0x2c */38u32 w_pad_5; /* 0x28 */39u32 w_intdest_upper_addr; /* 0x34 */40u32 w_pad_6; /* 0x30 */41u32 w_intdest_lower_addr; /* 0x3c */42u32 w_pad_7; /* 0x38 */43u32 w_err_cmd_word; /* 0x44 */44u32 w_pad_8; /* 0x40 */45u32 w_llp_cfg; /* 0x4c */46u32 w_pad_9; /* 0x48 */47u32 w_tflush; /* 0x54 */48u32 w_pad_10; /* 0x50 */49};5051/*52* Crosstalk Widget Hardware Identification, as defined in the Crosstalk spec.53*/54struct xwidget_hwid{55int mfg_num;56int rev_num;57int part_num;58};5960struct xwidget_info{6162struct xwidget_hwid xwi_hwid; /* Widget Identification */63char xwi_masterxid; /* Hub's Widget Port Number */64void *xwi_hubinfo; /* Hub's provider private info */65u64 *xwi_hub_provider; /* prom provider functions */66void *xwi_vertex;67};6869#endif /* _ASM_IA64_SN_XTALK_XWIDGET_H */707172