1ee5416c9Syc/*
2ee5416c9Syc * CDDL HEADER START
3ee5416c9Syc *
4ee5416c9Syc * The contents of this file are subject to the terms of the
5ee5416c9Syc * Common Development and Distribution License (the "License").
6ee5416c9Syc * You may not use this file except in compliance with the License.
7ee5416c9Syc *
8ee5416c9Syc * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ee5416c9Syc * or http://www.opensolaris.org/os/licensing.
10ee5416c9Syc * See the License for the specific language governing permissions
11ee5416c9Syc * and limitations under the License.
12ee5416c9Syc *
13ee5416c9Syc * When distributing Covered Code, include this CDDL HEADER in each
14ee5416c9Syc * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ee5416c9Syc * If applicable, add the following below this CDDL HEADER, with the
16ee5416c9Syc * fields enclosed by brackets "[]" replaced with your own identifying
17ee5416c9Syc * information: Portions Copyright [yyyy] [name of copyright owner]
18ee5416c9Syc *
19ee5416c9Syc * CDDL HEADER END
20ee5416c9Syc */
21ee5416c9Syc/*
22ee5416c9Syc * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23ee5416c9Syc * Use is subject to license terms.
24ee5416c9Syc */
25ee5416c9Syc
26ee5416c9Syc#pragma dictionary "NXGE"
27ee5416c9Syc
28ee5416c9Syc/*
29*2a8bcb4eSToomas Soome * Eversholt rules for the XFP optical transceiver inserted into
30ee5416c9Syc * a Neptune based NIC card.
31ee5416c9Syc */
32ee5416c9Syc
33ee5416c9Syc#define	XFP_FIT	100
34ee5416c9Syc
35ee5416c9Sycasru pciexbus/pciexdev/pciexfn;
36ee5416c9Sycfru  pciexbus/pciexdev/pciexfn/xfp;
37ee5416c9Syc
38ee5416c9Sycevent fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp
39ee5416c9Syc    FITrate=XFP_FIT,  FRU=pciexbus/pciexdev/pciexfn/xfp,
40ee5416c9Syc    ASRU=pciexbus/pciexdev/pciexfn;
41ee5416c9Syc
42ee5416c9Syc/*
43ee5416c9Syc * Add 5 seconds constraint so that multiple identical ereports
44ee5416c9Syc * occuring within 10 seconds are considered symptoms of a single fault
45ee5416c9Syc */
46ee5416c9Sycevent   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
47ee5416c9Sycevent ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn {within(10s)};
48ee5416c9Sycevent ereport.io.service.lost@pciexbus/pciexdev/pciexfn {within(10s)};
49ee5416c9Syc
50ee5416c9Syc/*
51*2a8bcb4eSToomas Soome * Events ereport.io.device.nxge.xfp-err and ereport.io.service.lost are
52ee5416c9Syc * related because the driver calls ddi_fm_service_impact right after
53ee5416c9Syc * generating the xfp-err ereport. A internal error.io.device.nxge.xfp-err
54ee5416c9Syc * is generated only after the FMD has received both ereport.io.device.
55ee5416c9Syc * nxge.xfp-err and ereport.io.service.lost, then the error event will
56ee5416c9Syc * trigger fault.io.n2.niu-xfp.  Based on the following rules, the diagnose
57ee5416c9Syc * engine will generate only one fault (fault.io.n2.niu-xfp) instead of two
58ee5416c9Syc * (associated with ereport.io.device.nxge.xfp-err and  ereport.io.service.lost
59ee5416c9Syc * respectively).
60ee5416c9Syc */
61ee5416c9Sycprop fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp (1) ->
62ee5416c9Syc    error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
63ee5416c9Syc
64ee5416c9Sycprop   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn (2) ->
65ee5416c9Syc     ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn,
66ee5416c9Syc     ereport.io.service.lost@pciexbus/pciexdev/pciexfn;
67