Mercurial > illumos > illumos-gate
annotate usr/src/uts/common/io/ntxn/nx_hw_pci_regs.h @ 7956:59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
6472698 NetXen 1Gb/10Gb nic driver
author | lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM> |
---|---|
date | Tue, 28 Oct 2008 10:06:13 +0800 |
parents | |
children | 5dca9cd6354a |
rev | line source |
---|---|
7956
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
1 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
2 * CDDL HEADER START |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
3 * |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
4 * The contents of this file are subject to the terms of the |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
5 * Common Development and Distribution License (the "License"). |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
6 * You may not use this file except in compliance with the License. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
7 * |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
9 * or http://www.opensolaris.org/os/licensing. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
10 * See the License for the specific language governing permissions |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
11 * and limitations under the License. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
12 * |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
13 * When distributing Covered Code, include this CDDL HEADER in each |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
15 * If applicable, add the following below this CDDL HEADER, with the |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
16 * fields enclosed by brackets "[]" replaced with your own identifying |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
18 * |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
19 * CDDL HEADER END |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
20 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
21 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
22 * Copyright 2008 NetXen, Inc. All rights reserved. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
23 * Use is subject to license terms. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
24 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
25 #ifndef __NX_HW_REGS_H |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
26 #define __NX_HW_REGS_H |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
27 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
28 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
29 * PCI related defines. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
30 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
31 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
32 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
33 * Interrupt related defines. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
34 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
35 #define PCIX_TARGET_STATUS (0x10118) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
36 #define PCIX_TARGET_STATUS_F1 (0x10160) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
37 #define PCIX_TARGET_STATUS_F2 (0x10164) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
38 #define PCIX_TARGET_STATUS_F3 (0x10168) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
39 #define PCIX_TARGET_STATUS_F4 (0x10360) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
40 #define PCIX_TARGET_STATUS_F5 (0x10364) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
41 #define PCIX_TARGET_STATUS_F6 (0x10368) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
42 #define PCIX_TARGET_STATUS_F7 (0x1036c) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
43 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
44 #define PCIX_TARGET_MASK (0x10128) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
45 #define PCIX_TARGET_MASK_F1 (0x10170) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
46 #define PCIX_TARGET_MASK_F2 (0x10174) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
47 #define PCIX_TARGET_MASK_F3 (0x10178) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
48 #define PCIX_TARGET_MASK_F4 (0x10370) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
49 #define PCIX_TARGET_MASK_F5 (0x10374) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
50 #define PCIX_TARGET_MASK_F6 (0x10378) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
51 #define PCIX_TARGET_MASK_F7 (0x1037c) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
52 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
53 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
54 * Message Signaled Interrupts |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
55 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
56 #define PCIX_MSI_F0 (0x13000) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
57 #define PCIX_MSI_F1 (0x13004) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
58 #define PCIX_MSI_F2 (0x13008) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
59 #define PCIX_MSI_F3 (0x1300c) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
60 #define PCIX_MSI_F4 (0x13010) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
61 #define PCIX_MSI_F5 (0x13014) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
62 #define PCIX_MSI_F6 (0x13018) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
63 #define PCIX_MSI_F7 (0x1301c) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
64 #define PCIX_MSI_F(FUNC) (0x13000 +((FUNC) * 4)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
65 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
66 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
67 * |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
68 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
69 #define PCIX_INT_VECTOR (0x10100) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
70 #define PCIX_INT_MASK (0x10104) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
71 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
72 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
73 * Interrupt state machine and other bits. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
74 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
75 #define PCIE_MISCCFG_RC (0x1206c) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
76 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
77 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
78 #define ISR_INT_TARGET_STATUS (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
79 #define ISR_INT_TARGET_STATUS_F1 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F1)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
80 #define ISR_INT_TARGET_STATUS_F2 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F2)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
81 #define ISR_INT_TARGET_STATUS_F3 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F3)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
82 #define ISR_INT_TARGET_STATUS_F4 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F4)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
83 #define ISR_INT_TARGET_STATUS_F5 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F5)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
84 #define ISR_INT_TARGET_STATUS_F6 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F6)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
85 #define ISR_INT_TARGET_STATUS_F7 (UNM_PCIX_PS_REG(PCIX_TARGET_STATUS_F7)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
86 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
87 #define ISR_INT_TARGET_MASK (UNM_PCIX_PS_REG(PCIX_TARGET_MASK)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
88 #define ISR_INT_TARGET_MASK_F1 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F1)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
89 #define ISR_INT_TARGET_MASK_F2 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F2)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
90 #define ISR_INT_TARGET_MASK_F3 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F3)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
91 #define ISR_INT_TARGET_MASK_F4 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F4)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
92 #define ISR_INT_TARGET_MASK_F5 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F5)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
93 #define ISR_INT_TARGET_MASK_F6 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F6)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
94 #define ISR_INT_TARGET_MASK_F7 (UNM_PCIX_PS_REG(PCIX_TARGET_MASK_F7)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
95 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
96 #define ISR_INT_VECTOR (UNM_PCIX_PS_REG(PCIX_INT_VECTOR)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
97 #define ISR_INT_MASK (UNM_PCIX_PS_REG(PCIX_INT_MASK)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
98 #define ISR_INT_STATE_REG (UNM_PCIX_PS_REG(PCIE_MISCCFG_RC)) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
99 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
100 #define ISR_MSI_INT_TRIGGER(FUNC) (UNM_PCIX_PS_REG(PCIX_MSI_F(FUNC))) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
101 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
102 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
103 #define ISR_IS_LEGACY_INTR_IDLE(VAL) (((VAL) & 0x300) == 0) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
104 #define ISR_IS_LEGACY_INTR_TRIGGERED(VAL) (((VAL) & 0x300) == 0x200) |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
105 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
106 /* |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
107 * PCI Interrupt Vector Values. |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
108 */ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
109 #define PCIX_INT_VECTOR_BIT_F0 0x0080 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
110 #define PCIX_INT_VECTOR_BIT_F1 0x0100 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
111 #define PCIX_INT_VECTOR_BIT_F2 0x0200 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
112 #define PCIX_INT_VECTOR_BIT_F3 0x0400 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
113 #define PCIX_INT_VECTOR_BIT_F4 0x0800 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
114 #define PCIX_INT_VECTOR_BIT_F5 0x1000 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
115 #define PCIX_INT_VECTOR_BIT_F6 0x2000 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
116 #define PCIX_INT_VECTOR_BIT_F7 0x4000 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
117 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
118 struct nx_legacy_intr_set { |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
119 __uint32_t int_vec_bit; |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
120 __uint32_t tgt_status_reg; |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
121 __uint32_t tgt_mask_reg; |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
122 __uint32_t pci_int_reg; |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
123 }; |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
124 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
125 #define NX_LEGACY_INTR_CONFIG \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
126 { \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
127 { PCIX_INT_VECTOR_BIT_F0, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
128 ISR_INT_TARGET_STATUS, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
129 ISR_INT_TARGET_MASK, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
130 ISR_MSI_INT_TRIGGER(0) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
131 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
132 { PCIX_INT_VECTOR_BIT_F1, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
133 ISR_INT_TARGET_STATUS_F1, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
134 ISR_INT_TARGET_MASK_F1, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
135 ISR_MSI_INT_TRIGGER(1) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
136 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
137 { PCIX_INT_VECTOR_BIT_F2, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
138 ISR_INT_TARGET_STATUS_F2, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
139 ISR_INT_TARGET_MASK_F2, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
140 ISR_MSI_INT_TRIGGER(2) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
141 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
142 { PCIX_INT_VECTOR_BIT_F3, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
143 ISR_INT_TARGET_STATUS_F3, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
144 ISR_INT_TARGET_MASK_F3, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
145 ISR_MSI_INT_TRIGGER(3) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
146 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
147 { PCIX_INT_VECTOR_BIT_F4, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
148 ISR_INT_TARGET_STATUS_F4, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
149 ISR_INT_TARGET_MASK_F4, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
150 ISR_MSI_INT_TRIGGER(4) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
151 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
152 { PCIX_INT_VECTOR_BIT_F5, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
153 ISR_INT_TARGET_STATUS_F5, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
154 ISR_INT_TARGET_MASK_F5, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
155 ISR_MSI_INT_TRIGGER(5) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
156 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
157 { PCIX_INT_VECTOR_BIT_F6, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
158 ISR_INT_TARGET_STATUS_F6, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
159 ISR_INT_TARGET_MASK_F6, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
160 ISR_MSI_INT_TRIGGER(6) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
161 \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
162 { PCIX_INT_VECTOR_BIT_F7, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
163 ISR_INT_TARGET_STATUS_F7, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
164 ISR_INT_TARGET_MASK_F7, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
165 ISR_MSI_INT_TRIGGER(7) }, \ |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
166 } |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
167 |
59ff93e4da95
PSARC 2008/045 NetXen 10 Gigabit Ethernet Driver
lucy wang - Sun Microsystems - Beijing China <xiuyan.wang@Sun.COM>
parents:
diff
changeset
|
168 #endif /* __NX_HW_REGS_H */ |