summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/igb/igb_debug.c
diff options
context:
space:
mode:
authorchenlu chen - Sun Microsystems - Beijing China <Chenlu.Chen@Sun.COM>2009-01-20 09:31:31 +0800
committerchenlu chen - Sun Microsystems - Beijing China <Chenlu.Chen@Sun.COM>2009-01-20 09:31:31 +0800
commit80a11ad227f9c82cd6e7cf5c8913a37f00b7af0e (patch)
treede77136b4fdaad7ede944841dba5612ac26006b2 /usr/src/uts/common/io/igb/igb_debug.c
parent48794f22b496c8c5aaa74b67fdff1a4c0409a7a7 (diff)
downloadillumos-joyent-80a11ad227f9c82cd6e7cf5c8913a37f00b7af0e.tar.gz
6708291 igb needs to support the new chipset Kawela
6737111 panic in igb_main.c(line: 1872): assertion failed: tx_ring->tcb_free == tx_ring->free_list_size 6740801 igb's rx bind function does not set newly desballoc-ed mblk to be ip header aligned
Diffstat (limited to 'usr/src/uts/common/io/igb/igb_debug.c')
-rw-r--r--usr/src/uts/common/io/igb/igb_debug.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr/src/uts/common/io/igb/igb_debug.c b/usr/src/uts/common/io/igb/igb_debug.c
index 021656cbaa..889ff34997 100644
--- a/usr/src/uts/common/io/igb/igb_debug.c
+++ b/usr/src/uts/common/io/igb/igb_debug.c
@@ -1,7 +1,7 @@
/*
* CDDL HEADER START
*
- * Copyright(c) 2007-2008 Intel Corporation. All rights reserved.
+ * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
@@ -22,12 +22,10 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms of the CDDL.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "igb_sw.h"
#include "igb_debug.h"
@@ -259,13 +257,14 @@ pci_dump(void *arg)
pci_config_get16(handle, offset + PCIE_LINKSTS));
/* MSI-X Memory Space */
- if (ddi_dev_regsize(igb->dip, 4, &mem_size) != DDI_SUCCESS) {
+ if (ddi_dev_regsize(igb->dip, IGB_ADAPTER_MSIXTAB, &mem_size) !=
+ DDI_SUCCESS) {
igb_log(igb, "ddi_dev_regsize() failed");
return;
}
- if ((ddi_regs_map_setup(igb->dip, 4, (caddr_t *)&base, 0, mem_size,
- &igb_regs_acc_attr, &acc_hdl)) != DDI_SUCCESS) {
+ if ((ddi_regs_map_setup(igb->dip, IGB_ADAPTER_MSIXTAB, (caddr_t *)&base,
+ 0, mem_size, &igb_regs_acc_attr, &acc_hdl)) != DDI_SUCCESS) {
igb_log(igb, "ddi_regs_map_setup() failed");
return;
}