MCPcopy Create free account
hub / github.com/acidanthera/BrcmPatchRAM / stringFromReturn

Method stringFromReturn

BrcmPatchRAM/BrcmPatchRAM3.cpp:935–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933#endif //DEBUG
934
935const char* BrcmPatchRAM::stringFromReturn(IOReturn rtn)
936{
937 static const IONamedValue IOReturn_values[] = {
938 {kIOReturnIsoTooOld, "Isochronous I/O request for distant past" },
939 {kIOReturnIsoTooNew, "Isochronous I/O request for distant future" },
940 {kIOReturnNotFound, "Data was not found" },
941 //REVIEW: new error identifiers?
942#ifndef TARGET_ELCAPITAN
943 {kIOUSBUnknownPipeErr, "Pipe ref not recognized" },
944 {kIOUSBTooManyPipesErr, "Too many pipes" },
945 {kIOUSBNoAsyncPortErr, "No async port" },
946 {kIOUSBNotEnoughPowerErr, "Not enough power for selected configuration" },
947 {kIOUSBEndpointNotFound, "Endpoint not found" },
948 {kIOUSBConfigNotFound, "Configuration not found" },
949 {kIOUSBTransactionTimeout, "Transaction timed out" },
950 {kIOUSBTransactionReturned, "Transaction has been returned to the caller" },
951 {kIOUSBPipeStalled, "Pipe has stalled, error needs to be cleared" },
952 {kIOUSBInterfaceNotFound, "Interface reference not recognized" },
953 {kIOUSBLowLatencyBufferNotPreviouslyAllocated,
954 "Attempted to user land low latency isoc calls w/out calling PrepareBuffer" },
955 {kIOUSBLowLatencyFrameListNotPreviouslyAllocated,
956 "Attempted to user land low latency isoc calls w/out calling PrepareBuffer" },
957 {kIOUSBHighSpeedSplitError, "Error on hi-speed bus doing split transaction"},
958 {kIOUSBSyncRequestOnWLThread, "Synchronous USB request on workloop thread." },
959 {kIOUSBDeviceNotHighSpeed, "The device is not a high speed device." },
960 {kIOUSBClearPipeStallNotRecursive,
961 "IOUSBPipe::ClearPipeStall should not be called rescursively" },
962 {kIOUSBLinkErr, "USB link error" },
963 {kIOUSBNotSent2Err, "Transaction not sent" },
964 {kIOUSBNotSent1Err, "Transaction not sent" },
965 {kIOUSBNotEnoughPipesErr, "Not enough pipes in interface" },
966 {kIOUSBBufferUnderrunErr, "Buffer Underrun (Host hardware failure)" },
967 {kIOUSBBufferOverrunErr, "Buffer Overrun (Host hardware failure" },
968 {kIOUSBReserved2Err, "Reserved" },
969 {kIOUSBReserved1Err, "Reserved" },
970 {kIOUSBWrongPIDErr, "Pipe stall, Bad or wrong PID" },
971 {kIOUSBPIDCheckErr, "Pipe stall, PID CRC error" },
972 {kIOUSBDataToggleErr, "Pipe stall, Bad data toggle" },
973 {kIOUSBBitstufErr, "Pipe stall, bitstuffing" },
974 {kIOUSBCRCErr, "Pipe stall, bad CRC" },
975#endif
976 {0, NULL }
977 };
978
979 const char* result = IOFindNameForValue(rtn, IOReturn_values);
980
981 if (result)
982 return result;
983
984 return super::stringFromReturn(rtn);
985}
986
987#endif /* TARGET_CATALINA */
988

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected