The bulk SPDX addition made all these files into GPL-2.0 licensed files. However the remainder of the project is MIT-licensed, these files (primarily header files) were simply missing the boiler plate and got caught up in the global update. Fixes: b24413180f5 (License cleanup: add SPDX GPL-2.0 license identifier to files with no license) Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Acked-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Karol Herbst <kherbst@redhat.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
39 lines
800 B
C
39 lines
800 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVBIOS_BMP_H__
|
|
#define __NVBIOS_BMP_H__
|
|
static inline u16
|
|
bmp_version(struct nvkm_bios *bios)
|
|
{
|
|
if (bios->bmp_offset) {
|
|
return nvbios_rd08(bios, bios->bmp_offset + 5) << 8 |
|
|
nvbios_rd08(bios, bios->bmp_offset + 6);
|
|
}
|
|
|
|
return 0x0000;
|
|
}
|
|
|
|
static inline u16
|
|
bmp_mem_init_table(struct nvkm_bios *bios)
|
|
{
|
|
if (bmp_version(bios) >= 0x0300)
|
|
return nvbios_rd16(bios, bios->bmp_offset + 24);
|
|
return 0x0000;
|
|
}
|
|
|
|
static inline u16
|
|
bmp_sdr_seq_table(struct nvkm_bios *bios)
|
|
{
|
|
if (bmp_version(bios) >= 0x0300)
|
|
return nvbios_rd16(bios, bios->bmp_offset + 26);
|
|
return 0x0000;
|
|
}
|
|
|
|
static inline u16
|
|
bmp_ddr_seq_table(struct nvkm_bios *bios)
|
|
{
|
|
if (bmp_version(bios) >= 0x0300)
|
|
return nvbios_rd16(bios, bios->bmp_offset + 28);
|
|
return 0x0000;
|
|
}
|
|
#endif
|