Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This program is free software; you can redistribute it and/or modify
0004  * it under the terms of the GNU General Public License, version 2, as
0005  * published by the Free Software Foundation.
0006  *
0007  * This program is distributed in the hope that it will be useful,
0008  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0010  * GNU General Public License for more details.
0011  *
0012  * You should have received a copy of the GNU General Public License
0013  * along with this program; if not, write to the Free Software
0014  * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0015  *
0016  * Copyright IBM Corp. 2015
0017  *
0018  * Authors: Gavin Shan <gwshan@linux.vnet.ibm.com>
0019  */
0020 
0021 #ifndef _ASM_POWERPC_EEH_H
0022 #define _ASM_POWERPC_EEH_H
0023 
0024 /* PE states */
0025 #define EEH_PE_STATE_NORMAL     0   /* Normal state     */
0026 #define EEH_PE_STATE_RESET      1   /* PE reset asserted    */
0027 #define EEH_PE_STATE_STOPPED_IO_DMA 2   /* Frozen PE        */
0028 #define EEH_PE_STATE_STOPPED_DMA    4   /* Stopped DMA only */
0029 #define EEH_PE_STATE_UNAVAIL        5   /* Unavailable      */
0030 
0031 /* EEH error types and functions */
0032 #define EEH_ERR_TYPE_32         0       /* 32-bits error    */
0033 #define EEH_ERR_TYPE_64         1       /* 64-bits error    */
0034 #define EEH_ERR_FUNC_MIN        0
0035 #define EEH_ERR_FUNC_LD_MEM_ADDR    0   /* Memory load  */
0036 #define EEH_ERR_FUNC_LD_MEM_DATA    1
0037 #define EEH_ERR_FUNC_LD_IO_ADDR     2   /* IO load  */
0038 #define EEH_ERR_FUNC_LD_IO_DATA     3
0039 #define EEH_ERR_FUNC_LD_CFG_ADDR    4   /* Config load  */
0040 #define EEH_ERR_FUNC_LD_CFG_DATA    5
0041 #define EEH_ERR_FUNC_ST_MEM_ADDR    6   /* Memory store */
0042 #define EEH_ERR_FUNC_ST_MEM_DATA    7
0043 #define EEH_ERR_FUNC_ST_IO_ADDR     8   /* IO store */
0044 #define EEH_ERR_FUNC_ST_IO_DATA     9
0045 #define EEH_ERR_FUNC_ST_CFG_ADDR    10  /* Config store */
0046 #define EEH_ERR_FUNC_ST_CFG_DATA    11
0047 #define EEH_ERR_FUNC_DMA_RD_ADDR    12  /* DMA read */
0048 #define EEH_ERR_FUNC_DMA_RD_DATA    13
0049 #define EEH_ERR_FUNC_DMA_RD_MASTER  14
0050 #define EEH_ERR_FUNC_DMA_RD_TARGET  15
0051 #define EEH_ERR_FUNC_DMA_WR_ADDR    16  /* DMA write    */
0052 #define EEH_ERR_FUNC_DMA_WR_DATA    17
0053 #define EEH_ERR_FUNC_DMA_WR_MASTER  18
0054 #define EEH_ERR_FUNC_DMA_WR_TARGET  19
0055 #define EEH_ERR_FUNC_MAX        19
0056 
0057 #endif /* _ASM_POWERPC_EEH_H */