0,
DeviceExtension->InterruptLevel);
- return Status ? NO_ERROR : ERROR_INVALID_ACCESS;
+ return Status ? NO_ERROR : ERROR_INVALID_PARAMETER;
}
/*
DeviceExtension->InterruptVector,
0);
- return Status ? NO_ERROR : ERROR_INVALID_ACCESS;
+ return Status ? NO_ERROR : ERROR_INVALID_PARAMETER;
}
{
TRACE_(VIDEOPRT, "VideoPortMapBankedMemory\n");
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ return ERROR_INVALID_FUNCTION;
}
if (ReturnedLength != sizeof(PCI_COMMON_CONFIG))
{
- return ERROR_NO_SYSTEM_RESOURCES;
+ return ERROR_NOT_ENOUGH_MEMORY;
}
}
else
DeviceExtension->AllocatedResources = AllocatedResources;
}
if (AllocatedResources == NULL)
- return ERROR_NO_SYSTEM_RESOURCES;
+ return ERROR_NOT_ENOUGH_MEMORY;
AssignedCount = 0;
for (FullList = AllocatedResources->List;
AssignedCount >= NumAccessRanges)
{
WARN_(VIDEOPRT, "Too many access ranges found\n");
- return ERROR_NO_SYSTEM_RESOURCES;
+ return ERROR_NOT_ENOUGH_MEMORY;
}
if (Descriptor->Type == CmResourceTypeMemory)
{
if (NumAccessRanges <= AssignedCount)
{
WARN_(VIDEOPRT, "Too many access ranges found\n");
- return ERROR_NO_SYSTEM_RESOURCES;
+ return ERROR_NOT_ENOUGH_MEMORY;
}
INFO_(VIDEOPRT, "Memory range starting at 0x%08x length 0x%08x\n",
Descriptor->u.Memory.Start.u.LowPart, Descriptor->u.Memory.Length);
{
TRACE_(VIDEOPRT, "VideoPortGetDeviceData\n");
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ return ERROR_INVALID_FUNCTION;
}
/*
case VideoPortServicesI2C:
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ return ERROR_INVALID_FUNCTION;
case VideoPortServicesHeadless:
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ return ERROR_INVALID_FUNCTION;
default:
break;