static int
mach64_attach(device_t nbdev)
{
	drm_device_t *dev = device_get_softc(nbdev);

	bzero(dev, sizeof(drm_device_t));
	mach64_configure(dev);
	return drm_attach(nbdev, mach64_pciidlist);
}
Beispiel #2
0
static void
mach64drm_attach(struct device *parent, struct device *self, void *aux)
{
    struct pci_attach_args *pa = aux;
    drm_device_t *dev = device_private(self);

    mach64_configure(dev);
    return drm_attach(self, pa, mach64_pciidlist);
}
Beispiel #3
0
static int
mach64_attach(device_t kdev)
{
	struct drm_device *dev = device_get_softc(kdev);

	dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
	    M_WAITOK | M_ZERO);

	mach64_configure(dev);

	return drm_attach(kdev, mach64_pciidlist);
}