188f8b78aSgm/* 288f8b78aSgm * CDDL HEADER START 388f8b78aSgm * 488f8b78aSgm * The contents of this file are subject to the terms of the 588f8b78aSgm * Common Development and Distribution License (the "License"). 688f8b78aSgm * You may not use this file except in compliance with the License. 788f8b78aSgm * 888f8b78aSgm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 988f8b78aSgm * or http://www.opensolaris.org/os/licensing. 1088f8b78aSgm * See the License for the specific language governing permissions 1188f8b78aSgm * and limitations under the License. 1288f8b78aSgm * 1388f8b78aSgm * When distributing Covered Code, include this CDDL HEADER in each 1488f8b78aSgm * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1588f8b78aSgm * If applicable, add the following below this CDDL HEADER, with the 1688f8b78aSgm * fields enclosed by brackets "[]" replaced with your own identifying 1788f8b78aSgm * information: Portions Copyright [yyyy] [name of copyright owner] 1888f8b78aSgm * 1988f8b78aSgm * CDDL HEADER END 2088f8b78aSgm */ 2188f8b78aSgm 2288f8b78aSgm/* 2388f8b78aSgm * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2488f8b78aSgm * Use is subject to license terms. 2588f8b78aSgm */ 2688f8b78aSgm 2788f8b78aSgm/* 2888f8b78aSgm * sca500.esc: Deimos eversholt source code 2988f8b78aSgm */ 3088f8b78aSgm 3188f8b78aSgm#pragma dictionary "SCA500" 3288f8b78aSgm 3388f8b78aSgm/* 34*2a8bcb4eSToomas Soome * For Deimos, there is one ASRU that includes both the driver and the card, 3588f8b78aSgm * and there are two FRUs, the driver and the card. 3688f8b78aSgm */ 3788f8b78aSgm 3888f8b78aSgm#define P pcibus/pcidev/pcifn 3988f8b78aSgm 4088f8b78aSgmasru P; 4188f8b78aSgmfru P; 4288f8b78aSgm 4388f8b78aSgm/* 4488f8b78aSgm * The hardware card may generate faults. 4588f8b78aSgm * The driver passes the user data to the hardware and returns the hardware 4688f8b78aSgm * generated results to the user. It does check input and output data errors. 47*2a8bcb4eSToomas Soome * However, it returns these errors to the calling application. Since the 4888f8b78aSgm * driver itself does not do any data manipulation or generation, it does not 4988f8b78aSgm * have upsets. 5088f8b78aSgm */ 5188f8b78aSgm 5288f8b78aSgm/* 5388f8b78aSgm * Declare faults 5488f8b78aSgm */ 5588f8b78aSgmevent fault.io.sca500.hw@P, FITrate=50, ASRU=P, FRU=P; 5688f8b78aSgm 5788f8b78aSgm/* 5888f8b78aSgm * Hardware faults lead to the following error 5988f8b78aSgm */ 6088f8b78aSgmevent error.io.sca500.hw.device@P; /* DMA device errors */ 6188f8b78aSgmevent error.io.sca500.hw.timeout@P; /* Device hang */ 6288f8b78aSgm 6388f8b78aSgm/* 6488f8b78aSgm * Declare ereports 6588f8b78aSgm */ 6688f8b78aSgmevent ereport.io.sca500.hw.device@P; 6788f8b78aSgmevent ereport.io.sca500.hw.timeout@P; 6888f8b78aSgm 6988f8b78aSgm/* 7088f8b78aSgm * Declear event propagations for faults 7188f8b78aSgm */ 7288f8b78aSgmprop fault.io.sca500.hw@P(0) 7388f8b78aSgm -> error.io.sca500.hw.device@P, 7488f8b78aSgm error.io.sca500.hw.timeout@P; 7588f8b78aSgm 7688f8b78aSgmprop error.io.sca500.hw.device@P 7788f8b78aSgm -> ereport.io.sca500.hw.device@P; 7888f8b78aSgmprop error.io.sca500.hw.timeout@P 7988f8b78aSgm -> ereport.io.sca500.hw.timeout@P; 80