mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
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: b24413180f (License cleanup: add SPDX GPL-2.0 license identifier to files with no license)
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Karol Herbst <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
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
|