Fixed misspelling
Fixed misspelling: HwDeviceInterface Fixed misspelling: GetDxgkInterface Based on a patch by Sandy Stutsman <sstutsma@redhat.com> Signed-off-by: Sameeh Jubran <sameeh@daynix.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
72875ff529
commit
ed816593b6
@ -3192,7 +3192,7 @@ NTSTATUS QxlDevice::SetPowerState(_In_ DEVICE_POWER_STATE DevicePowerState, DXGK
|
|||||||
NTSTATUS QxlDevice::HWInit(PCM_RESOURCE_LIST pResList, DXGK_DISPLAY_INFORMATION* pDispInfo)
|
NTSTATUS QxlDevice::HWInit(PCM_RESOURCE_LIST pResList, DXGK_DISPLAY_INFORMATION* pDispInfo)
|
||||||
{
|
{
|
||||||
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
|
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
|
||||||
PDXGKRNL_INTERFACE pDxgkInterface = m_pQxlDod->GetDxgkInterrface();
|
PDXGKRNL_INTERFACE pDxgkInterface = m_pQxlDod->GetDxgkInterface();
|
||||||
UINT pci_range = QXL_RAM_RANGE_INDEX;
|
UINT pci_range = QXL_RAM_RANGE_INDEX;
|
||||||
for (ULONG i = 0; i < pResList->Count; ++i)
|
for (ULONG i = 0; i < pResList->Count; ++i)
|
||||||
{
|
{
|
||||||
@ -3369,7 +3369,7 @@ void QxlDevice::QxlClose()
|
|||||||
|
|
||||||
void QxlDevice::UnmapMemory(void)
|
void QxlDevice::UnmapMemory(void)
|
||||||
{
|
{
|
||||||
PDXGKRNL_INTERFACE pDxgkInterface = m_pQxlDod->GetDxgkInterrface();
|
PDXGKRNL_INTERFACE pDxgkInterface = m_pQxlDod->GetDxgkInterface();
|
||||||
if (m_IoMapped && m_IoBase)
|
if (m_IoMapped && m_IoBase)
|
||||||
{
|
{
|
||||||
pDxgkInterface->DxgkCbUnmapMemory( pDxgkInterface->DeviceHandle, &m_IoBase);
|
pDxgkInterface->DxgkCbUnmapMemory( pDxgkInterface->DeviceHandle, &m_IoBase);
|
||||||
|
@ -212,9 +212,9 @@ typedef struct _CURRENT_BDD_MODE
|
|||||||
|
|
||||||
class QxlDod;
|
class QxlDod;
|
||||||
|
|
||||||
class HwDeviceIntrface {
|
class HwDeviceInterface {
|
||||||
public:
|
public:
|
||||||
virtual ~HwDeviceIntrface() {;}
|
virtual ~HwDeviceInterface() {;}
|
||||||
virtual NTSTATUS QueryCurrentMode(PVIDEO_MODE RequestedMode) = 0;
|
virtual NTSTATUS QueryCurrentMode(PVIDEO_MODE RequestedMode) = 0;
|
||||||
virtual NTSTATUS SetCurrentMode(ULONG Mode) = 0;
|
virtual NTSTATUS SetCurrentMode(ULONG Mode) = 0;
|
||||||
virtual NTSTATUS GetCurrentMode(ULONG* Mode) = 0;
|
virtual NTSTATUS GetCurrentMode(ULONG* Mode) = 0;
|
||||||
@ -261,7 +261,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class VgaDevice :
|
class VgaDevice :
|
||||||
public HwDeviceIntrface
|
public HwDeviceInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VgaDevice(_In_ QxlDod* pQxlDod);
|
VgaDevice(_In_ QxlDod* pQxlDod);
|
||||||
@ -434,7 +434,7 @@ typedef struct DpcCbContext {
|
|||||||
#define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1))
|
#define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1))
|
||||||
|
|
||||||
class QxlDevice :
|
class QxlDevice :
|
||||||
public HwDeviceIntrface
|
public HwDeviceInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QxlDevice(_In_ QxlDod* pQxlDod);
|
QxlDevice(_In_ QxlDod* pQxlDod);
|
||||||
@ -592,7 +592,8 @@ private:
|
|||||||
|
|
||||||
D3DDDI_VIDEO_PRESENT_SOURCE_ID m_SystemDisplaySourceId;
|
D3DDDI_VIDEO_PRESENT_SOURCE_ID m_SystemDisplaySourceId;
|
||||||
DXGKARG_SETPOINTERSHAPE m_PointerShape;
|
DXGKARG_SETPOINTERSHAPE m_PointerShape;
|
||||||
HwDeviceIntrface* m_pHWDevice;
|
|
||||||
|
HwDeviceInterface* m_pHWDevice;
|
||||||
DWORD m_VgaCompatible;
|
DWORD m_VgaCompatible;
|
||||||
DWORD m_PointerCaps;
|
DWORD m_PointerCaps;
|
||||||
public:
|
public:
|
||||||
@ -687,7 +688,7 @@ public:
|
|||||||
_In_ UINT SourceStride,
|
_In_ UINT SourceStride,
|
||||||
_In_ INT PositionX,
|
_In_ INT PositionX,
|
||||||
_In_ INT PositionY);
|
_In_ INT PositionY);
|
||||||
PDXGKRNL_INTERFACE GetDxgkInterrface(void) { return &m_DxgkInterface;}
|
PDXGKRNL_INTERFACE GetDxgkInterface(void) { return &m_DxgkInterface;}
|
||||||
private:
|
private:
|
||||||
VOID CleanUp(VOID);
|
VOID CleanUp(VOID);
|
||||||
NTSTATUS CheckHardware();
|
NTSTATUS CheckHardware();
|
||||||
|
Loading…
Reference in New Issue
Block a user