diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ia64/sn/include/xtalk/xwidgetdev.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/ia64/sn/include/xtalk/xwidgetdev.h')
-rw-r--r-- | arch/ia64/sn/include/xtalk/xwidgetdev.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/arch/ia64/sn/include/xtalk/xwidgetdev.h b/arch/ia64/sn/include/xtalk/xwidgetdev.h new file mode 100644 index 000000000000..c5f4bc5cc033 --- /dev/null +++ b/arch/ia64/sn/include/xtalk/xwidgetdev.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1992-1997,2000-2003 Silicon Graphics, Inc. All Rights Reserved. | ||
7 | */ | ||
8 | #ifndef _ASM_IA64_SN_XTALK_XWIDGET_H | ||
9 | #define _ASM_IA64_SN_XTALK_XWIDGET_H | ||
10 | |||
11 | /* WIDGET_ID */ | ||
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 | ||
18 | |||
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) | ||
25 | |||
26 | /* widget configuration registers */ | ||
27 | struct widget_cfg{ | ||
28 | uint32_t w_id; /* 0x04 */ | ||
29 | uint32_t w_pad_0; /* 0x00 */ | ||
30 | uint32_t w_status; /* 0x0c */ | ||
31 | uint32_t w_pad_1; /* 0x08 */ | ||
32 | uint32_t w_err_upper_addr; /* 0x14 */ | ||
33 | uint32_t w_pad_2; /* 0x10 */ | ||
34 | uint32_t w_err_lower_addr; /* 0x1c */ | ||
35 | uint32_t w_pad_3; /* 0x18 */ | ||
36 | uint32_t w_control; /* 0x24 */ | ||
37 | uint32_t w_pad_4; /* 0x20 */ | ||
38 | uint32_t w_req_timeout; /* 0x2c */ | ||
39 | uint32_t w_pad_5; /* 0x28 */ | ||
40 | uint32_t w_intdest_upper_addr; /* 0x34 */ | ||
41 | uint32_t w_pad_6; /* 0x30 */ | ||
42 | uint32_t w_intdest_lower_addr; /* 0x3c */ | ||
43 | uint32_t w_pad_7; /* 0x38 */ | ||
44 | uint32_t w_err_cmd_word; /* 0x44 */ | ||
45 | uint32_t w_pad_8; /* 0x40 */ | ||
46 | uint32_t w_llp_cfg; /* 0x4c */ | ||
47 | uint32_t w_pad_9; /* 0x48 */ | ||
48 | uint32_t w_tflush; /* 0x54 */ | ||
49 | uint32_t w_pad_10; /* 0x50 */ | ||
50 | }; | ||
51 | |||
52 | /* | ||
53 | * Crosstalk Widget Hardware Identification, as defined in the Crosstalk spec. | ||
54 | */ | ||
55 | struct xwidget_hwid{ | ||
56 | int mfg_num; | ||
57 | int rev_num; | ||
58 | int part_num; | ||
59 | }; | ||
60 | |||
61 | struct xwidget_info{ | ||
62 | |||
63 | struct xwidget_hwid xwi_hwid; /* Widget Identification */ | ||
64 | char xwi_masterxid; /* Hub's Widget Port Number */ | ||
65 | void *xwi_hubinfo; /* Hub's provider private info */ | ||
66 | uint64_t *xwi_hub_provider; /* prom provider functions */ | ||
67 | void *xwi_vertex; | ||
68 | }; | ||
69 | |||
70 | #endif /* _ASM_IA64_SN_XTALK_XWIDGET_H */ | ||