mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
drm/nouveau/bios: recognise nv-specific rom/pcir signatures
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
7205875d09
commit
a1a86aabd0
2 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image)
|
|||
|
||||
switch ((data = nv_ro16(bios, image->base + 0x00))) {
|
||||
case 0xaa55:
|
||||
case 0x4e56: /* NV */
|
||||
break;
|
||||
default:
|
||||
nv_debug(bios, "%08x: ROM signature (%04x) unknown\n",
|
||||
|
|
|
@ -33,6 +33,7 @@ nvbios_pcirTe(struct nouveau_bios *bios, u32 base, u8 *ver, u16 *hdr)
|
|||
data += base;
|
||||
switch (nv_ro32(bios, data + 0x00)) {
|
||||
case 0x52494350: /* PCIR */
|
||||
case 0x5344504e: /* NPDS */
|
||||
*hdr = nv_ro16(bios, data + 0x0a);
|
||||
*ver = nv_ro08(bios, data + 0x0c);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue