aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-02-17 04:01:55 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-16 03:50:16 -0400
commitb887f9e324629125fd20ce29d6a768d280572118 (patch)
treec22f6caef8d904d7f59fb1a47e01ae1f9ff94095
parentd7cf83fcaf1b1668201eae4cdd6e6fe7a2448654 (diff)
powerpc/powernv: Remove unused definitions in opal-api.h
This removes definitions in opal-api.h that are completely unused in Linux. For each of these I see three possibilities, 1) we *should* be using them in Linux and patches will arrive to do that, 2) they are not used but should stay in the header to document the API for some important reason, 3) they are not used and needn't be part of the API. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--arch/powerpc/include/asm/opal-api.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/arch/powerpc/include/asm/opal-api.h b/arch/powerpc/include/asm/opal-api.h
index 2984f486f3ba..e8a6baf55e82 100644
--- a/arch/powerpc/include/asm/opal-api.h
+++ b/arch/powerpc/include/asm/opal-api.h
@@ -165,10 +165,6 @@
165#ifndef __ASSEMBLY__ 165#ifndef __ASSEMBLY__
166 166
167/* Other enums */ 167/* Other enums */
168enum OpalVendorApiTokens {
169 OPAL_START_VENDOR_API_RANGE = 1000, OPAL_END_VENDOR_API_RANGE = 1999
170};
171
172enum OpalFreezeState { 168enum OpalFreezeState {
173 OPAL_EEH_STOPPED_NOT_FROZEN = 0, 169 OPAL_EEH_STOPPED_NOT_FROZEN = 0,
174 OPAL_EEH_STOPPED_MMIO_FREEZE = 1, 170 OPAL_EEH_STOPPED_MMIO_FREEZE = 1,
@@ -236,27 +232,12 @@ enum OpalErrinjectFunc {
236 OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_TARGET = 19, 232 OPAL_ERR_INJECT_FUNC_IOA_DMA_WR_TARGET = 19,
237}; 233};
238 234
239enum OpalShpcAction {
240 OPAL_SHPC_GET_LINK_STATE = 0,
241 OPAL_SHPC_GET_SLOT_STATE = 1
242};
243
244enum OpalShpcLinkState {
245 OPAL_SHPC_LINK_DOWN = 0,
246 OPAL_SHPC_LINK_UP = 1
247};
248
249enum OpalMmioWindowType { 235enum OpalMmioWindowType {
250 OPAL_M32_WINDOW_TYPE = 1, 236 OPAL_M32_WINDOW_TYPE = 1,
251 OPAL_M64_WINDOW_TYPE = 2, 237 OPAL_M64_WINDOW_TYPE = 2,
252 OPAL_IO_WINDOW_TYPE = 3 238 OPAL_IO_WINDOW_TYPE = 3
253}; 239};
254 240
255enum OpalShpcSlotState {
256 OPAL_SHPC_DEV_NOT_PRESENT = 0,
257 OPAL_SHPC_DEV_PRESENT = 1
258};
259
260enum OpalExceptionHandler { 241enum OpalExceptionHandler {
261 OPAL_MACHINE_CHECK_HANDLER = 1, 242 OPAL_MACHINE_CHECK_HANDLER = 1,
262 OPAL_HYPERVISOR_MAINTENANCE_HANDLER = 2, 243 OPAL_HYPERVISOR_MAINTENANCE_HANDLER = 2,
@@ -348,29 +329,6 @@ enum OpalPciResetState {
348 OPAL_ASSERT_RESET = 1 329 OPAL_ASSERT_RESET = 1
349}; 330};
350 331
351enum OpalPciMaskAction {
352 OPAL_UNMASK_ERROR_TYPE = 0,
353 OPAL_MASK_ERROR_TYPE = 1
354};
355
356enum OpalSlotLedType {
357 OPAL_SLOT_LED_ID_TYPE = 0,
358 OPAL_SLOT_LED_FAULT_TYPE = 1
359};
360
361enum OpalLedAction {
362 OPAL_TURN_OFF_LED = 0,
363 OPAL_TURN_ON_LED = 1,
364 OPAL_QUERY_LED_STATE_AFTER_BUSY = 2
365};
366
367enum OpalEpowStatus {
368 OPAL_EPOW_NONE = 0,
369 OPAL_EPOW_UPS = 1,
370 OPAL_EPOW_OVER_AMBIENT_TEMP = 2,
371 OPAL_EPOW_OVER_INTERNAL_TEMP = 3
372};
373
374/* 332/*
375 * Address cycle types for LPC accesses. These also correspond 333 * Address cycle types for LPC accesses. These also correspond
376 * to the content of the first cell of the "reg" property for 334 * to the content of the first cell of the "reg" property for
@@ -440,11 +398,6 @@ enum OpalMemErr_DynErrType {
440 OPAL_MEM_DYNAMIC_DEALLOC = 0, 398 OPAL_MEM_DYNAMIC_DEALLOC = 0,
441}; 399};
442 400
443/* OpalMemoryErrorData->flags */
444#define OPAL_MEM_CORRECTED_ERROR 0x0001
445#define OPAL_MEM_THRESHOLD_EXCEEDED 0x0002
446#define OPAL_MEM_ACK_REQUIRED 0x8000
447
448struct OpalMemoryErrorData { 401struct OpalMemoryErrorData {
449 enum OpalMemErr_Version version:8; /* 0x00 */ 402 enum OpalMemErr_Version version:8; /* 0x00 */
450 enum OpalMemErrType type:8; /* 0x01 */ 403 enum OpalMemErrType type:8; /* 0x01 */