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ł
--