Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348061
b: refs/heads/master
c: 0dd660d
h: refs/heads/master
i:
  348059: d9ca91f
v: v3
  • Loading branch information
Ben Skeggs committed Dec 23, 2012
1 parent d0f2ce2 commit f353019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ed731668d011d0ee894d949b80dc3d11fc9ef75
refs/heads/master: 0dd660d4ab9ceb48f24f4df2ebab3e73d908a1e8
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/nouveau/core/include/subdev/bios.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct nouveau_bios {
u8 chip;
u8 minor;
u8 micro;
u8 patch;
} version;
};

Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/bios/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ nouveau_bios_ctor(struct nouveau_object *parent,
bios->version.chip = nv_ro08(bios, bit_i.offset + 2);
bios->version.minor = nv_ro08(bios, bit_i.offset + 1);
bios->version.micro = nv_ro08(bios, bit_i.offset + 0);
bios->version.patch = nv_ro08(bios, bit_i.offset + 4);
} else
if (bmp_version(bios)) {
bios->version.major = nv_ro08(bios, bios->bmp_offset + 13);
Expand All @@ -455,9 +456,9 @@ nouveau_bios_ctor(struct nouveau_object *parent,
bios->version.micro = nv_ro08(bios, bios->bmp_offset + 10);
}

nv_info(bios, "version %02x.%02x.%02x.%02x\n",
nv_info(bios, "version %02x.%02x.%02x.%02x.%02x\n",
bios->version.major, bios->version.chip,
bios->version.minor, bios->version.micro);
bios->version.minor, bios->version.micro, bios->version.patch);

return 0;
}
Expand Down

0 comments on commit f353019

Please sign in to comment.