Lines Matching defs:pciconfig
388 unsigned int config, pciconfig, sr3a, ramtype;
413 pciconfig = sis_pci_read_host_bridge_u8(0x63);
414 if(pciconfig & 0x80) {
415 pScrn->videoRam = (1 << (((pciconfig & 0x70) >> 4) + 21)) / 1024;
417 pciconfig = sis_pci_read_host_bridge_u8(0x64);
418 if((pciconfig & 0x30) == 0x30) {
676 CARD8 pciconfig, temp;
692 pciconfig = sis_pci_read_host_bridge_u8(0x4c);
693 if(pciconfig & 0xe0) {
694 pScrn->videoRam = (1 << (((pciconfig & 0xe0) >> 5) - 2)) * 32768;
705 pciconfig = sis_pci_read_device_u8(1, 0xcd);
706 pciconfig = (pciconfig >> 1) & 0x03;
708 if(pciconfig == 0x01) i = 32768;
709 else if(pciconfig == 0x03) i = 65536;
756 pciconfig = sis_pci_read_host_bridge_u8(0x64);
757 if(pciconfig & 0x80) {
758 pScrn->videoRam = (1 << (((pciconfig & 0x70) >> 4) - 1)) * 32768;
767 if(pciconfig & (1 << i)) {
777 pciconfig = sis_pci_read_host_bridge_u8(0x7c);
778 ramtype = (pciconfig & 0x02) ? 8 : 4;
787 pciconfig = sis_pci_read_host_bridge_u8(0x64);
788 if(pciconfig & 0x80) {
789 pScrn->videoRam = (1 << (((pciconfig & 0x70) >> 4) + 22)) / 1024;
793 if(pciconfig & (1 << i)) {
803 pciconfig = sis_pci_read_host_bridge_u8(0x7c);
804 if(pciconfig & 0x02) ramtype = 8;
810 pciconfig = sis_pci_read_host_bridge_u8(0x63);
811 if(pciconfig & 0x80) {
812 pScrn->videoRam = (1 << (((pciconfig & 0x70) >> 4) + 21)) / 1024;