1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYS_FM_CPU_GENAMD_H 28 #define _SYS_FM_CPU_GENAMD_H 29 30 /* Ereport class subcategory - same as in GMCA.h */ 31 #define FM_EREPORT_CPU_GENAMD "generic-x86" 32 33 /* Ereport leaf classes */ 34 #define FM_EREPORT_CPU_GENAMD_MEM_CE "mem_ce" 35 #define FM_EREPORT_CPU_GENAMD_MEM_UE "mem_ue" 36 #define FM_EREPORT_CPU_GENAMD_CKMEM_CE "mem_ce" 37 #define FM_EREPORT_CPU_GENAMD_CKMEM_UE "mem_ue" 38 #define FM_EREPORT_CPU_GENADM_GARTTBLWLK "gart_tbl_walk" 39 40 #define _FM_EREPORT_FLAG(n) (1ULL << (n)) 41 42 #define FM_EREPORT_GENAMD_PAYLOAD_NAME_SYND "syndrome" 43 #define FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYND _FM_EREPORT_FLAG(1) 44 45 #define FM_EREPORT_GENAMD_PAYLOAD_NAME_CKSYND "syndrome" 46 #define FM_EREPORT_GENAMD_PAYLOAD_FLAG_CKSYND _FM_EREPORT_FLAG(2) 47 48 #define FM_EREPORT_GENAMD_PAYLOAD_NAME_SYNDTYPE "syndrome-type" 49 #define FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYNDTYPE _FM_EREPORT_FLAG(3) 50 51 #define FM_EREPORT_GENAMD_PAYLOAD_NAME_RESOURCE "resource" 52 #define FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCE _FM_EREPORT_FLAG(4) 53 54 #define FM_EREPORT_GENAMD_PAYLOAD_NAME_RESOURCECNT "resource_counts" 55 #define FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCECNT _FM_EREPORT_FLAG(5) 56 57 #define FM_EREPORT_GENAMD_PAYLOAD_FLAGS_MEM_CE \ 58 (FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYND | \ 59 FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYNDTYPE | \ 60 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCE | \ 61 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCECNT) 62 63 #define FM_EREPORT_GENAMD_PAYLOAD_FLAGS_MEM_UE \ 64 (FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYND | \ 65 FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYNDTYPE | \ 66 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCE | \ 67 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCECNT) 68 69 #define FM_EREPORT_GENAMD_PAYLOAD_FLAGS_CKMEM_CE \ 70 (FM_EREPORT_GENAMD_PAYLOAD_FLAG_CKSYND | \ 71 FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYNDTYPE | \ 72 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCE | \ 73 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCECNT) 74 75 #define FM_EREPORT_GENAMD_PAYLOAD_FLAGS_CKMEM_UE \ 76 (FM_EREPORT_GENAMD_PAYLOAD_FLAG_CKSYND | \ 77 FM_EREPORT_GENAMD_PAYLOAD_FLAG_SYNDTYPE | \ 78 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCE | \ 79 FM_EREPORT_GENAMD_PAYLOAD_FLAG_RESOURCECNT) 80 81 #ifdef __cplusplus 82 extern "C" { 83 #endif 84 85 #ifdef __cplusplus 86 } 87 #endif 88 89 #endif /* _SYS_FM_CPU_GENAMD_H */ 90