On Wed, 2015-09-23 at 23:41 +0200, Lukas Wunner wrote:
> Hi,
>
> On Wed, Sep 23, 2015 at 08:37:48PM +, Steven Newbury wrote:
> > I can't figure out how to get a pointer to the radeon_device struct
> > for a specific card, or the parent drm_device from an external
> > device
> > driver.
>
>
Hi,
On Wed, Sep 23, 2015 at 08:37:48PM +, Steven Newbury wrote:
> I can't figure out how to get a pointer to the radeon_device struct
> for a specific card, or the parent drm_device from an external device
> driver.
struct device -> struct drm_device: dev_get_drvdata()
struct pci_dev ->
I've been reading up on the device model and studying kernel sources for the
last couple of days, but I can't figure out how to get a pointer to the
radeon_device struct for a specific card, or the parent drm_device from an
external device driver.
I imagine I somehow need to take a reference