Lines Matching refs:pins
386 static void get_pins(unsigned char __iomem* pins, struct matrox_bios* bd) { in get_pins() argument
387 unsigned int b0 = readb(pins); in get_pins()
389 if (b0 == 0x2E && readb(pins+1) == 0x41) { in get_pins()
390 unsigned int pins_len = readb(pins+2); in get_pins()
393 unsigned char* dst = bd->pins; in get_pins()
403 cksum += *dst++ = readb(pins+i); in get_pins()
409 } else if (b0 == 0x40 && readb(pins+1) == 0x00) { in get_pins()
411 unsigned char* dst = bd->pins; in get_pins()
416 *dst++ = readb(pins+i); in get_pins()
528 switch (bd->pins[22]) { in parse_pins1()
533 if (get_unaligned_le16(bd->pins + 24)) { in parse_pins1()
534 maxdac = get_unaligned_le16(bd->pins + 24) * 10; in parse_pins1()
537 MINFO->values.pll.system = get_unaligned_le16(bd->pins + 28) ? in parse_pins1()
538 get_unaligned_le16(bd->pins + 28) * 10 : 50000; in parse_pins1()
555 MINFO->limits.system.vcomax = (bd->pins[41] == 0xFF) ? 230000 : ((bd->pins[41] + 100) * 1000); in parse_pins2()
556 MINFO->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) | in parse_pins2()
557 ((bd->pins[51] & 0x02) ? 0x00000100 : 0) | in parse_pins2()
558 ((bd->pins[51] & 0x04) ? 0x00010000 : 0) | in parse_pins2()
559 ((bd->pins[51] & 0x08) ? 0x00020000 : 0); in parse_pins2()
560 MINFO->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); in parse_pins2()
576 MINFO->limits.system.vcomax = (bd->pins[36] == 0xFF) ? 230000 : ((bd->pins[36] + 100) * 1000); in parse_pins3()
577 MINFO->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ? in parse_pins3()
578 0x01250A21 : get_unaligned_le32(bd->pins + 48); in parse_pins3()
580 MINFO->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) | in parse_pins3()
581 ((bd->pins[57] << 22) & 0x00C00000) | in parse_pins3()
582 ((bd->pins[56] << 1) & 0x000001E0) | in parse_pins3()
583 ( bd->pins[56] & 0x0000000F); in parse_pins3()
584 MINFO->values.reg.opt = (bd->pins[54] & 7) << 10; in parse_pins3()
585 MINFO->values.reg.opt2 = bd->pins[58] << 12; in parse_pins3()
586 MINFO->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; in parse_pins3()
602 MINFO->limits.pixel.vcomax = (bd->pins[ 39] == 0xFF) ? 230000 : bd->pins[ 39] * 4000; in parse_pins4()
603 …MINFO->limits.system.vcomax = (bd->pins[ 38] == 0xFF) ? MINFO->limits.pixel.vcomax : bd->pins[ 38]… in parse_pins4()
604 MINFO->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 71); in parse_pins4()
605 MINFO->values.reg.memrdbk = ((bd->pins[87] << 21) & 0x1E000000) | in parse_pins4()
606 ((bd->pins[87] << 22) & 0x00C00000) | in parse_pins4()
607 ((bd->pins[86] << 1) & 0x000001E0) | in parse_pins4()
608 ( bd->pins[86] & 0x0000000F); in parse_pins4()
609 MINFO->values.reg.opt = ((bd->pins[53] << 15) & 0x00400000) | in parse_pins4()
610 ((bd->pins[53] << 22) & 0x10000000) | in parse_pins4()
611 ((bd->pins[53] << 7) & 0x00001C00); in parse_pins4()
612 MINFO->values.reg.opt3 = get_unaligned_le32(bd->pins + 67); in parse_pins4()
613 MINFO->values.pll.system = (bd->pins[ 65] == 0xFF) ? 200000 : bd->pins[ 65] * 4000; in parse_pins4()
614 MINFO->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; in parse_pins4()
633 mult = bd->pins[4]?8000:6000; in parse_pins5()
635 MINFO->limits.pixel.vcomax = (bd->pins[ 38] == 0xFF) ? 600000 : bd->pins[ 38] * mult; in parse_pins5()
636 …MINFO->limits.system.vcomax = (bd->pins[ 36] == 0xFF) ? MINFO->limits.pixel.vcomax : bd->pins[ 36]… in parse_pins5()
637 …MINFO->limits.video.vcomax = (bd->pins[ 37] == 0xFF) ? MINFO->limits.system.vcomax : bd->pins[ 37]… in parse_pins5()
638 MINFO->limits.pixel.vcomin = (bd->pins[123] == 0xFF) ? 256000 : bd->pins[123] * mult; in parse_pins5()
639 …MINFO->limits.system.vcomin = (bd->pins[121] == 0xFF) ? MINFO->limits.pixel.vcomin : bd->pins[121]… in parse_pins5()
640 …MINFO->limits.video.vcomin = (bd->pins[122] == 0xFF) ? MINFO->limits.system.vcomin : bd->pins[122]… in parse_pins5()
642 MINFO->values.pll.video = (bd->pins[ 92] == 0xFF) ? 284000 : bd->pins[ 92] * 4000; in parse_pins5()
643 MINFO->values.reg.opt = get_unaligned_le32(bd->pins + 48); in parse_pins5()
644 MINFO->values.reg.opt2 = get_unaligned_le32(bd->pins + 52); in parse_pins5()
645 MINFO->values.reg.opt3 = get_unaligned_le32(bd->pins + 94); in parse_pins5()
646 MINFO->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 98); in parse_pins5()
647 MINFO->values.reg.memmisc = get_unaligned_le32(bd->pins + 102); in parse_pins5()
648 MINFO->values.reg.memrdbk = get_unaligned_le32(bd->pins + 106); in parse_pins5()
649 MINFO->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000; in parse_pins5()
650 MINFO->values.memory.ddr = (bd->pins[114] & 0x60) == 0x20; in parse_pins5()
651 MINFO->values.memory.dll = (bd->pins[115] & 0x02) != 0; in parse_pins5()
652 MINFO->values.memory.emrswen = (bd->pins[115] & 0x01) != 0; in parse_pins5()
654 if (bd->pins[115] & 4) { in parse_pins5()
661 MINFO->max_pixel_clock_panellink = bd->pins[47] * 4000; in parse_pins5()
712 if (bd->pins[0] == 0x2E && bd->pins[1] == 0x41) { in matroxfb_set_limits()
713 pins_version = bd->pins[5]; in matroxfb_set_limits()