/*
* CDDL HEADER START
*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <strings.h>
#include "fabric-xlate.h"
typedef struct fab_fire_tbl {
const char *err_class;
/*
* Translation tables for converting fire error bits into "pci" ereports.
* <Fire Bit>
* <pci ereport Class>
* <pci error status reg>
* <pci bridge status reg>
* <pci target class>
*/
};
};
/*
* need to decode the tlp log.
*/
};
FAB_N2_DMU("iotsbdesc_inv"),
FAB_N2_DMU("sun4v_adj_va_uf"),
FAB_N2_DMU("sun4v_inv_pg_sz"),
FAB_N2_DMU("sun4v_key_err"),
FAB_N2_DMU("sun4v_va_oor"),
};
/* ARGSUSED */
static void
{
/* Always Root Complex */
}
static int
const char *class)
{
goto send;
}
return (0);
send:
/* Fill in the device status register */
/* Fill in the AER CE register */
}
return (1);
}
static int
const char *class)
{
goto send;
}
return (0);
send:
/* Fill in PCI Status Register */
/* Fill in the device status register */
else
/* Fill in the AER UE register */
}
/* Fill in the AER Control register */
data->pcie_adv_ctl++)
}
/* If CTO create target information */
}
}
case PCIE_TLP_TYPE_IO:
case PCIE_TLP_TYPE_MEM:
case PCIE_TLP_TYPE_MEMLK:
} else {
}
break;
case PCIE_TLP_TYPE_CFG0:
case PCIE_TLP_TYPE_CFG1:
break;
}
}
/* Fill in the AER Header registers */
}
}
return (1);
}
static int
const char *class)
{
goto send;
}
return (0);
send:
/* Fill in PCI Status Register */
} else {
}
}
case PCIE_CPL_STS_UR:
data->pci_err_status = 0;
break;
case PCIE_CPL_STS_CA:
data->pci_err_status = 0;
break;
}
}
}
/* Fill in the device status register */
else
/* Fill in the AER UE register */
return (1);
}
static int
const char *class)
{
goto send;
}
return (0);
send:
/* Fill in PCI Status Register */
/* Fill in the device status register */
/* Fill in the AER UE register */
/* Fill in the AER Control register */
/* Fill in the AER Header registers */
/* Get the trans type */
/* Get the req id */
}
/* Get the address */
}
return (1);
}
void
{
}