Re: [Q] How to tell we're using the KMS (during suspend/resume) outside the graphics driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?=
Date: Tuesday, April 6, 2010 - 12:47 am

2010/3/10 Matthew Garrett <mjg59@srcf.ucam.org>:

So, AFAIU acpi_get_pci_dev will give me pointer to struct pci_dev of
video card, yes?

There is some path I could use then:

struct pci_dev {
    .....
    struct pci_driver *driver;	/* which driver has allocated this device */
    .....
}

struct pci_driver {
    .....
    struct device_driver	driver;
    .....
}

Finally, struct device_driver is defined in device.h. Should I add flag
bool is_kms
to this struct then?

AFAIK we can not do anything with struct driver_private *p... Or is
there unified struct for video card drivers? We could then add flag
is_kms to some struct pointed by struct driver_private *p.

-- 
Rafał
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Q] How to tell we're using the KMS (during suspend/re ..., =?UTF-8?B?UmFmYcWCIE ..., (Tue Mar 9, 4:38 am)
Re: [Q] How to tell we're using the KMS (during suspend/re ..., Rafael J. Wysocki, (Wed Mar 10, 2:15 pm)
Re: [Q] How to tell we're using the KMS (during suspend/re ..., =?UTF-8?B?UmFmYcWCIE ..., (Tue Apr 6, 12:47 am)