| 1428 | #endif |
| 1429 | |
| 1430 | const char* BrcmPatchRAM::stringFromReturn(IOReturn rtn) |
| 1431 | { |
| 1432 | static const IONamedValue IOReturn_values[] = { |
| 1433 | {kIOReturnIsoTooOld, "Isochronous I/O request for distant past" }, |
| 1434 | {kIOReturnIsoTooNew, "Isochronous I/O request for distant future" }, |
| 1435 | {kIOReturnNotFound, "Data was not found" }, |
| 1436 | //REVIEW: new error identifiers? |
| 1437 | #ifndef TARGET_ELCAPITAN |
| 1438 | {kIOUSBUnknownPipeErr, "Pipe ref not recognized" }, |
| 1439 | {kIOUSBTooManyPipesErr, "Too many pipes" }, |
| 1440 | {kIOUSBNoAsyncPortErr, "No async port" }, |
| 1441 | {kIOUSBNotEnoughPowerErr, "Not enough power for selected configuration" }, |
| 1442 | {kIOUSBEndpointNotFound, "Endpoint not found" }, |
| 1443 | {kIOUSBConfigNotFound, "Configuration not found" }, |
| 1444 | {kIOUSBTransactionTimeout, "Transaction timed out" }, |
| 1445 | {kIOUSBTransactionReturned, "Transaction has been returned to the caller" }, |
| 1446 | {kIOUSBPipeStalled, "Pipe has stalled, error needs to be cleared" }, |
| 1447 | {kIOUSBInterfaceNotFound, "Interface reference not recognized" }, |
| 1448 | {kIOUSBLowLatencyBufferNotPreviouslyAllocated, |
| 1449 | "Attempted to user land low latency isoc calls w/out calling PrepareBuffer" }, |
| 1450 | {kIOUSBLowLatencyFrameListNotPreviouslyAllocated, |
| 1451 | "Attempted to user land low latency isoc calls w/out calling PrepareBuffer" }, |
| 1452 | {kIOUSBHighSpeedSplitError, "Error on hi-speed bus doing split transaction"}, |
| 1453 | {kIOUSBSyncRequestOnWLThread, "Synchronous USB request on workloop thread." }, |
| 1454 | {kIOUSBDeviceNotHighSpeed, "The device is not a high speed device." }, |
| 1455 | {kIOUSBClearPipeStallNotRecursive, |
| 1456 | "IOUSBPipe::ClearPipeStall should not be called rescursively" }, |
| 1457 | {kIOUSBLinkErr, "USB link error" }, |
| 1458 | {kIOUSBNotSent2Err, "Transaction not sent" }, |
| 1459 | {kIOUSBNotSent1Err, "Transaction not sent" }, |
| 1460 | {kIOUSBNotEnoughPipesErr, "Not enough pipes in interface" }, |
| 1461 | {kIOUSBBufferUnderrunErr, "Buffer Underrun (Host hardware failure)" }, |
| 1462 | {kIOUSBBufferOverrunErr, "Buffer Overrun (Host hardware failure" }, |
| 1463 | {kIOUSBReserved2Err, "Reserved" }, |
| 1464 | {kIOUSBReserved1Err, "Reserved" }, |
| 1465 | {kIOUSBWrongPIDErr, "Pipe stall, Bad or wrong PID" }, |
| 1466 | {kIOUSBPIDCheckErr, "Pipe stall, PID CRC error" }, |
| 1467 | {kIOUSBDataToggleErr, "Pipe stall, Bad data toggle" }, |
| 1468 | {kIOUSBBitstufErr, "Pipe stall, bitstuffing" }, |
| 1469 | {kIOUSBCRCErr, "Pipe stall, bad CRC" }, |
| 1470 | #endif |
| 1471 | {0, NULL } |
| 1472 | }; |
| 1473 | |
| 1474 | const char* result = IOFindNameForValue(rtn, IOReturn_values); |
| 1475 | |
| 1476 | if (result) |
| 1477 | return result; |
| 1478 | |
| 1479 | return super::stringFromReturn(rtn); |
| 1480 | } |
| 1481 | |
| 1482 | |
| 1483 | #ifdef NON_RESIDENT |