vram_module
union vram_module *vram_module;
vram_module = (union vram_module *)vram_info->v30.vram_module;
mem_vendor = (vram_module->v30.dram_vendor_id) & 0xF;
vram_module = (union vram_module *)vram_info->v23.vram_module;
vram_module = (union vram_module *)
((u8 *)vram_module + vram_module->v9.vram_module_size);
mem_type = vram_module->v9.memory_type;
mem_channel_number = vram_module->v9.channel_num;
mem_channel_width = vram_module->v9.channel_width;
mem_vendor = (vram_module->v9.vender_rev_id) & 0xF;
vram_module = (union vram_module *)vram_info->v24.vram_module;
vram_module = (union vram_module *)
((u8 *)vram_module + vram_module->v10.vram_module_size);
mem_type = vram_module->v10.memory_type;
mem_channel_number = vram_module->v10.channel_num;
mem_channel_width = vram_module->v10.channel_width;
mem_vendor = (vram_module->v10.vender_rev_id) & 0xF;
vram_module = (union vram_module *)vram_info->v25.vram_module;
vram_module = (union vram_module *)
((u8 *)vram_module + vram_module->v11.vram_module_size);
mem_type = vram_module->v11.memory_type;
mem_channel_number = vram_module->v11.channel_num;
mem_channel_width = vram_module->v11.channel_width;
mem_vendor = (vram_module->v11.vender_rev_id) & 0xF;
vram_module = (union vram_module *)vram_info->v26.vram_module;
vram_module = (union vram_module *)
((u8 *)vram_module + vram_module->v9.vram_module_size);
mem_type = vram_module->v9.memory_type;
mem_channel_number = vram_module->v9.channel_num;
mem_channel_width = vram_module->v9.channel_width;
mem_vendor = (vram_module->v9.vender_rev_id) & 0xF;
info->num_chans = info_v23->vram_module[0].channel_num;
info->dram_channel_width_bytes = (1 << info_v23->vram_module[0].channel_width) / 8;
info->num_chans = info_v24->vram_module[0].channel_num;
info->dram_channel_width_bytes = (1 << info_v24->vram_module[0].channel_width) / 8;
info->num_chans = info_v25->vram_module[0].channel_num;
info->dram_channel_width_bytes = (1 << info_v25->vram_module[0].channel_width) / 8;
struct atom_vram_module_v9 vram_module[16]; // just for allocation, real number of blocks is in ucNumOfVRAMModule;
struct atom_vram_module_v3_0 vram_module[8];
struct atom_vram_module_v10 vram_module[16]; // just for allocation, real number of blocks is in ucNumOfVRAMModule;
struct atom_vram_module_v11 vram_module[16]; // just for allocation, real number of blocks is in ucNumOfVRAMModule;
struct atom_vram_module_v9 vram_module[16];
ATOM_VRAM_MODULE_V3 *vram_module =
if (le16_to_cpu(vram_module->usSize) == 0)
vram_module = (ATOM_VRAM_MODULE_V3 *)
((u8 *)vram_module + le16_to_cpu(vram_module->usSize));
mem_info->mem_vendor = vram_module->asMemory.ucMemoryVenderID & 0xf;
mem_info->mem_type = vram_module->asMemory.ucMemoryType & 0xf0;
ATOM_VRAM_MODULE_V4 *vram_module =
if (le16_to_cpu(vram_module->usModuleSize) == 0)
vram_module = (ATOM_VRAM_MODULE_V4 *)
((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize));
mem_info->mem_vendor = vram_module->ucMemoryVenderID & 0xf;
mem_info->mem_type = vram_module->ucMemoryType & 0xf0;
ATOM_VRAM_MODULE_V7 *vram_module =
if (le16_to_cpu(vram_module->usModuleSize) == 0)
vram_module = (ATOM_VRAM_MODULE_V7 *)
((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize));
mem_info->mem_vendor = vram_module->ucMemoryVenderID & 0xf;
mem_info->mem_type = vram_module->ucMemoryType & 0xf0;
ATOM_VRAM_MODULE_V4 *vram_module =
if (le16_to_cpu(vram_module->usModuleSize) == 0)
vram_module = (ATOM_VRAM_MODULE_V4 *)
((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize));
((le16_to_cpu(vram_module->usModuleSize) - offsetof(ATOM_VRAM_MODULE_V4, asMemTiming)) /
format = &vram_module->asMemTiming[0];