[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <q2xb170af451004060047t7b661f63p903d4bd7452a1e45@mail.gmail.com>
Date: Tue, 6 Apr 2010 09:47:50 +0200
From: Rafał Miłecki <zajec5@...il.com>
To: Matthew Garrett <mjg59@...f.ucam.org>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
Pauli Nieminen <suokkos@...il.com>,
Paul Mundt <lethal@...ux-sh.org>,
Luca Tettamanti <kronos.it@...il.com>,
Linux PCI <linux-pci@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
pm list <linux-pm@...ts.linux-foundation.org>,
dri-devel@...ts.sourceforge.net
Subject: Re: [Q] How to tell we're using the KMS (during suspend/resume)
outside the graphics driver
2010/3/10 Matthew Garrett <mjg59@...f.ucam.org>:
> On Wed, Mar 10, 2010 at 10:15:26PM +0100, Rafael J. Wysocki wrote:
>> On Wednesday 10 March 2010, Matthew Garrett wrote:
>> > As far as the ACPI video driver goes, acpi_get_physical_pci_device()
>> > will give you something to work with.
>>
>> Hmm. Did you mean acpi_get_physical_device()?
>
> Ah, no, acpi_get_pci_dev.
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ł
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists