␉{␊ |
␉␉vbios_map * map;␊ |
␉␉␊ |
␉␉map = open_vbios(CT_UNKWN);␊ |
␉␉map = open_vbios(CT_UNKNOWN);␊ |
␉␉if(map)␊ |
␉␉{␊ |
␉␉␉unlock_vbios(map);␊ |
|
␉␉␉{␊ |
␉␉␉␉//printf("Unknown chipset 0x%llX, please email id to meklort@gmail.com", id);␊ |
␉␉␉␉//getc();␊ |
␉␉␉␉//type = CT_UNKWN_INTEL;␊ |
␉␉␉␉type = CT_UNKWN;␊ |
␉␉␉␉type = CT_UNKNOWN_INTEL;␊ |
␉␉␉␉//type = CT_UNKNOWN;␊ |
␊ |
␉␉␉}␊ |
␉␉␉type = CT_UNKWN;␊ |
␉␉␉else␊ |
␉␉␉{␊ |
␉␉␉␉type = CT_UNKNOWN;␊ |
␉␉␉}␊ |
␉␉␉break;␊ |
␉}␊ |
␉return type;␊ |
|
␉ * Determine chipset␊ |
␉ */␊ |
␉␊ |
␉if (forced_chipset == CT_UNKWN)␊ |
␉if (forced_chipset == CT_UNKNOWN)␊ |
␉{␊ |
␉␉map->chipset_id = get_chipset_id();␊ |
␉␉map->chipset = get_chipset(map->chipset_id);␊ |
␉}␊ |
␉else if (forced_chipset != CT_UNKWN)␊ |
␉else if (forced_chipset != CT_UNKNOWN)␊ |
␉{␊ |
␉␉map->chipset = forced_chipset;␊ |
␉}␊ |
␉␊ |
␉␊ |
␉if (map->chipset == CT_UNKWN)␊ |
␉if (map->chipset == CT_UNKNOWN)␊ |
␉{␊ |
␉␉//verbose("Unknown chipset type.\n");␊ |
␉␉//verbose("915resolution only works with Intel 800/900 series graphic chipsets.\n");␊ |
|
␉ * check if we have Intel␊ |
␉ */␊ |
␉␊ |
␉/*if (map->chipset == CT_UNKWN && memmem(map->bios_ptr, VBIOS_SIZE, INTEL_SIGNATURE, strlen(INTEL_SIGNATURE))) {␊ |
␉/*if (map->chipset == CT_UNKNOWN && memmem(map->bios_ptr, VBIOS_SIZE, INTEL_SIGNATURE, strlen(INTEL_SIGNATURE))) {␊ |
␉ printf( "Intel chipset detected. However, 915resolution was unable to determine the chipset type.\n");␊ |
␉ ␊ |
␉ printf("Chipset Id: %x\n", map->chipset_id);␊ |
|
␉map->unlocked = TRUE;␊ |
␊ |
␉switch (map->chipset) {␊ |
␉␉case CT_UNKWN:␊ |
␉␉case CT_UNKNOWN:␊ |
␉␉␉break;␊ |
␉␉case CT_830:␊ |
␉␉case CT_855GM:␊ |
|
␉␉case CT_G31:␊ |
␉␉case CT_500:␊ |
␉␉case CT_3150:␊ |
␉␉case CT_UNKWN_INTEL:␉// Assume newer intel chipset is the same as before␊ |
␉␉case CT_UNKNOWN_INTEL:␉// Assume newer intel chipset is the same as before␊ |
␉␉␉outl(CONFIG_MECH_ONE_ADDR, 0x80000090);␊ |
␉␉␉map->b1 = inb(CONFIG_MECH_ONE_DATA + 1);␊ |
␉␉␉map->b2 = inb(CONFIG_MECH_ONE_DATA + 2);␊ |
|
␉␊ |
␉switch (map->chipset)␊ |
␉{␊ |
␉␉case CT_UNKWN:␊ |
␉␉case CT_UNKNOWN:␊ |
␉␉␉break;␊ |
␉␉case CT_830:␊ |
␉␉case CT_855GM:␊ |
|
␉␉case CT_G31:␊ |
␉␉case CT_500:␊ |
␉␉case CT_3150:␊ |
␉␉case CT_UNKWN_INTEL:␊ |
␉␉case CT_UNKNOWN_INTEL:␊ |
␉␉␉outl(CONFIG_MECH_ONE_ADDR, 0x80000090);␊ |
␉␉␉outb(CONFIG_MECH_ONE_DATA + 1, map->b1);␊ |
␉␉␉outb(CONFIG_MECH_ONE_DATA + 2, map->b2);␊ |
|
␉␉␉ }*/␊ |
␉␉␉break;␊ |
␉␉}␊ |
␉␉case BT_UNKWN:␊ |
␉␉case BT_UNKNOWN:␊ |
␉␉{␊ |
␉␉␉break;␊ |
␉␉}␊ |