mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-03-02 03:39:50 +00:00
525.60.11
This commit is contained in:
@@ -203,6 +203,8 @@ namespace DisplayPort
|
||||
|
||||
virtual bool getSDPExtnForColorimetrySupported() = 0;
|
||||
|
||||
virtual bool getPanelFwRevision(NvU16 *revision) = 0;
|
||||
|
||||
virtual bool getIgnoreMSACap() = 0;
|
||||
|
||||
virtual AuxRetry::status setIgnoreMSAEnable(bool msaTimingParamIgnoreEn) = 0;
|
||||
|
||||
@@ -381,6 +381,8 @@ namespace DisplayPort
|
||||
|
||||
virtual bool getSDPExtnForColorimetrySupported();
|
||||
|
||||
virtual bool getPanelFwRevision(NvU16 *revision);
|
||||
|
||||
virtual bool isPowerSuspended();
|
||||
|
||||
virtual void setPanelPowerParams(bool bSinkPowerStateD0, bool bPanelPowerStateOn);
|
||||
|
||||
@@ -1043,6 +1043,46 @@ bool DeviceImpl::getSDPExtnForColorimetrySupported()
|
||||
return (this->bSdpExtCapable == True);
|
||||
}
|
||||
|
||||
bool DeviceImpl::getPanelFwRevision(NvU16 *revision)
|
||||
{
|
||||
NvU8 fwRevisionMajor = 0;
|
||||
NvU8 fwRevisionMinor = 0;
|
||||
unsigned size = 0;
|
||||
unsigned nakReason = NakUndefined;
|
||||
|
||||
if (!revision)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
*revision = 0;
|
||||
|
||||
//
|
||||
// On faked mux devices, we cannot check if the device has
|
||||
// the capability as we don't have access to aux.
|
||||
//
|
||||
if (this->isFakedMuxDevice())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (AuxBus::success != this->getDpcdData(NV_DPCD14_FW_SW_REVISION_MAJOR,
|
||||
&fwRevisionMajor, sizeof(fwRevisionMajor), &size, &nakReason))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (AuxBus::success != this->getDpcdData(NV_DPCD14_FW_SW_REVISION_MINOR,
|
||||
&fwRevisionMinor, sizeof(fwRevisionMinor), &size, &nakReason))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
*revision = (fwRevisionMajor << 8) | fwRevisionMinor;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DeviceImpl::isPowerSuspended()
|
||||
{
|
||||
bool bPanelPowerOn, bDPCDPowerStateD0;
|
||||
|
||||
Reference in New Issue
Block a user