1ed3e81ffSGavin Shan /* 2ed3e81ffSGavin Shan * This program is free software; you can redistribute it and/or modify 3ed3e81ffSGavin Shan * it under the terms of the GNU General Public License, version 2, as 4ed3e81ffSGavin Shan * published by the Free Software Foundation. 5ed3e81ffSGavin Shan * 6ed3e81ffSGavin Shan * This program is distributed in the hope that it will be useful, 7ed3e81ffSGavin Shan * but WITHOUT ANY WARRANTY; without even the implied warranty of 8ed3e81ffSGavin Shan * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9ed3e81ffSGavin Shan * GNU General Public License for more details. 10ed3e81ffSGavin Shan * 11ed3e81ffSGavin Shan * You should have received a copy of the GNU General Public License 12ed3e81ffSGavin Shan * along with this program; if not, write to the Free Software 13ed3e81ffSGavin Shan * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14ed3e81ffSGavin Shan * 15ed3e81ffSGavin Shan * Copyright IBM Corp. 2015 16ed3e81ffSGavin Shan * 17ed3e81ffSGavin Shan * Authors: Gavin Shan <gwshan@linux.vnet.ibm.com> 18ed3e81ffSGavin Shan */ 19ed3e81ffSGavin Shan 20ed3e81ffSGavin Shan #ifndef _ASM_POWERPC_EEH_H 21ed3e81ffSGavin Shan #define _ASM_POWERPC_EEH_H 22ed3e81ffSGavin Shan 23ed3e81ffSGavin Shan /* PE states */ 24ed3e81ffSGavin Shan #define EEH_PE_STATE_NORMAL 0 /* Normal state */ 25ed3e81ffSGavin Shan #define EEH_PE_STATE_RESET 1 /* PE reset asserted */ 26ed3e81ffSGavin Shan #define EEH_PE_STATE_STOPPED_IO_DMA 2 /* Frozen PE */ 27ed3e81ffSGavin Shan #define EEH_PE_STATE_STOPPED_DMA 4 /* Stopped DMA only */ 28ed3e81ffSGavin Shan #define EEH_PE_STATE_UNAVAIL 5 /* Unavailable */ 29ed3e81ffSGavin Shan 30ed3e81ffSGavin Shan #endif /* _ASM_POWERPC_EEH_H */ 31