search for: pci_device_to_of_nod

Displaying 4 results from an estimated 4 matches for "pci_device_to_of_nod".

Did you mean: pci_device_to_of_node
2010 Mar 23
1
[PATCH] drm/nouveau: fix vbios load and check functions on PowerPC
...L; +#endif + if (!(data[0] == 0x55 && data[1] == 0xAA)) { NV_TRACEWARN(dev, "... BIOS signature not found\n"); return 0; } +#if defined(__powerpc__) + /* + * The Bios signature reports a wrong lenght of rom. + * The correct size is read from Open Firmware. + */ + dn = pci_device_to_OF_node(dev->pdev); + of_find_property(dn, "NVDA,BMP", &bios_size); + /* added checksum byte */ + bios_size++; +#else + bios_size = (data[2] * 512); +#endif - if (nv_cksum(data, data[2] * 512)) { + if (nv_cksum(data, bios_size)) { NV_TRACEWARN(dev, "... BIOS checksum invalid\n&q...
2015 Oct 02
2
[PATCH] bios: fix OF loading
...oid * of_init(struct nvkm_bios *bios, const char *name) { - struct pci_dev *pdev = bios->subdev.device->pdev; + struct nvkm_device *device = bios->subdev.device; + struct pci_dev *pdev = device->func->pci(device)->pdev; struct device_node *dn; struct priv *priv; if (!(dn = pci_device_to_OF_node(pdev))) @@ -62,7 +73,10 @@ nvbios_of = { .init = of_init, .fini = (void(*)(void *))kfree, .read = of_read, + .size = of_size, .rw = false, + .ignore_checksum = true, + .no_pcir = true, }; #else const struct nvbios_source -- 2.4.9
2012 Nov 11
0
[PATCH] drm/nouveau: remove unused variable from nouveau_bios_shadow_of
...ivers/gpu/drm/nouveau/core/subdev/bios/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c @@ -63,7 +63,7 @@ nouveau_bios_shadow_of(struct nouveau_bios *bios) struct pci_dev *pdev = nv_device(bios)->pdev; struct device_node *dn; const u32 *data; - int size, i; + int size; dn = pci_device_to_OF_node(pdev); if (!dn) { -- 1.7.12
2015 Oct 02
2
[PATCH] bios: fix OF loading
...v *pdev = bios->subdev.device->pdev; >> + struct nvkm_device *device = bios->subdev.device; >> + struct pci_dev *pdev = device->func->pci(device)->pdev; >> struct device_node *dn; >> struct priv *priv; >> if (!(dn = pci_device_to_OF_node(pdev))) >> @@ -62,7 +73,10 @@ nvbios_of = { >> .init = of_init, >> .fini = (void(*)(void *))kfree, >> .read = of_read, >> + .size = of_size, >> .rw = false, >> + .ignore_checksum = true, >> + .no_pcir...