Displaying 3 results from an estimated 3 matches for "nouveau_device_ops".
Did you mean:
nouveau_device_open
2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
...ude/core/device.h
> @@ -65,6 +65,7 @@ struct nouveau_device {
> struct list_head head;
>
> struct pci_dev *pdev;
> + struct platform_device *platformdev;
I'm generally wondering if perhaps a better abstraction would be to
store a struct device * here, perhaps with a struct nouveau_device_ops *
or similar to abstract away the differences between PCI and platform
devices.
nouveau_device_create_() could then take a struct device * and a struct
nouveau_device_ops *, and upcasting can therefore be done within these
operations, rather than sprinkling nv_device_is_pci() code everywhere.
>...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
Upcoming mobile Kepler GPUs (such as GK20A) use the platform bus instead
of PCI to which Nouveau is tightly dependent. This patch allows Nouveau
to handle platform devices by:
- abstracting PCI-dependent functions that were typically used for
resource querying and page mapping,
- introducing a nv_device_is_pci() function that allows to make
PCI-dependent code conditional,
- providing a
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...struct nouveau_device {
>> struct list_head head;
>>
>> struct pci_dev *pdev;
>> + struct platform_device *platformdev;
>
> I'm generally wondering if perhaps a better abstraction would be to
> store a struct device * here, perhaps with a struct nouveau_device_ops *
> or similar to abstract away the differences between PCI and platform
> devices.
>
> nouveau_device_create_() could then take a struct device * and a struct
> nouveau_device_ops *, and upcasting can therefore be done within these
> operations, rather than sprinkling nv_device_i...