Lines Matching +full:0 +full:xf100

65 	for (i = 0; i < NUMOBUFS; i++) {  in sisusb_free_buffers()
77 for (i = 0; i < NUMOBUFS; i++) { in sisusb_free_urbs()
85 /* Level 0: USB transport layer */
91 /* Return 1 if all free, 0 otherwise */
96 for (i = 0; i < sisusb->numobufs; i++) { in sisusb_all_free()
99 return 0; in sisusb_all_free()
114 for (i = 0; i < sisusb->numobufs; i++) { in sisusb_kill_all_busy()
122 /* Return 1 if ok, 0 if error (not all complete within timeout) */
137 for (i = 0; i < sisusb->numobufs; i++) { in sisusb_outurb_available()
139 if ((sisusb->urbstatus[i] & (SU_URB_BUSY|SU_URB_ALLOC)) == 0) in sisusb_outurb_available()
152 ((i = sisusb_outurb_available(sisusb)) >= 0), timeout); in sisusb_get_free_outbuf()
163 if (i >= 0) in sisusb_alloc_outbuf()
171 if ((index >= 0) && (index < sisusb->numobufs)) in sisusb_free_outbuf()
204 int retval, byteswritten = 0; in sisusb_bulkout_msg()
207 urb->transfer_flags = 0; in sisusb_bulkout_msg()
214 urb->actual_length = 0; in sisusb_bulkout_msg()
226 /* If OK, and if timeout > 0, wait for completion */ in sisusb_bulkout_msg()
227 if ((retval == 0) && timeout) { in sisusb_bulkout_msg()
268 int retval, readbytes = 0; in sisusb_bulkin_msg()
270 urb->transfer_flags = 0; in sisusb_bulkin_msg()
276 urb->actual_length = 0; in sisusb_bulkin_msg()
278 sisusb->completein = 0; in sisusb_bulkin_msg()
280 if (retval == 0) { in sisusb_bulkin_msg()
312 * (return 0 on success)
319 int result = 0, retry, count = len; in sisusb_send_bulk_msg()
320 int passsize, thispass, transferred_len = 0; in sisusb_send_bulk_msg()
321 int fromuser = (userbuffer != NULL) ? 1 : 0; in sisusb_send_bulk_msg()
322 int fromkern = (kernbuffer != NULL) ? 1 : 0; in sisusb_send_bulk_msg()
326 (*bytes_written) = 0; in sisusb_send_bulk_msg()
343 async = 0; in sisusb_send_bulk_msg()
351 if (index < 0) in sisusb_send_bulk_msg()
354 if (index < 0) in sisusb_send_bulk_msg()
381 async ? 0 : 5 * HZ, tflags); in sisusb_send_bulk_msg()
392 if ((result == 0) && !async && transferred_len) { in sisusb_send_bulk_msg()
411 } while (count > 0); in sisusb_send_bulk_msg()
424 return ((*bytes_written) == len) ? 0 : -EIO; in sisusb_send_bulk_msg()
440 int result = 0, retry, count = len; in sisusb_recv_bulk_msg()
445 (*bytes_read) = 0; in sisusb_recv_bulk_msg()
462 while (count > 0) { in sisusb_recv_bulk_msg()
509 return ((*bytes_read) == len) ? 0 : -EIO; in sisusb_recv_bulk_msg()
516 ssize_t bytes_transferred = 0; in sisusb_send_packet()
520 packet->data = 0; in sisusb_send_packet()
532 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
534 if ((ret == 0) && (len == 6)) { in sisusb_send_packet()
540 (char *)&tmp, NULL, &bytes_transferred, 0); in sisusb_send_packet()
552 ssize_t bytes_transferred = 0; in sisusb_send_bridge_packet()
556 packet->data = 0; in sisusb_send_bridge_packet()
568 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet()
570 if ((ret == 0) && (len == 6)) { in sisusb_send_bridge_packet()
576 (char *)&tmp, NULL, &bytes_transferred, 0); in sisusb_send_bridge_packet()
584 /* access video memory and mmio (return 0 on success) */
611 int ret = 0; in sisusb_write_memio_word()
616 case 0: in sisusb_write_memio_word()
617 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_word()
622 packet.header = (type << 6) | 0x0006; in sisusb_write_memio_word()
627 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_word()
632 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_word()
635 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_word()
648 int ret = 0; in sisusb_write_memio_24bit()
653 case 0: in sisusb_write_memio_24bit()
654 packet.header = (type << 6) | 0x0007; in sisusb_write_memio_24bit()
655 packet.data = data & 0x00ffffff; in sisusb_write_memio_24bit()
659 packet.header = (type << 6) | 0x000e; in sisusb_write_memio_24bit()
664 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_24bit()
667 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_24bit()
669 packet.data = (data >> 16) & 0x00ff; in sisusb_write_memio_24bit()
673 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_24bit()
676 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_24bit()
678 packet.data = (data >> 8) & 0xffff; in sisusb_write_memio_24bit()
689 int ret = 0; in sisusb_write_memio_long()
694 case 0: in sisusb_write_memio_long()
695 packet.header = (type << 6) | 0x000f; in sisusb_write_memio_long()
700 packet.header = (type << 6) | 0x000e; in sisusb_write_memio_long()
703 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_long()
709 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_long()
712 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_long()
718 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_long()
721 packet.header = (type << 6) | 0x0007; in sisusb_write_memio_long()
745 int ret = 0; in sisusb_write_mem_bulk()
747 u8 swap8, fromkern = kernbuffer ? 1 : 0; in sisusb_write_mem_bulk()
758 (*bytes_written = 0); in sisusb_write_mem_bulk()
760 length &= 0x00ffffff; in sisusb_write_mem_bulk()
769 swap8 = kernbuffer[0]; in sisusb_write_mem_bulk()
799 swap32 = (buf[0] << 16) | in sisusb_write_mem_bulk()
805 buf[0]; in sisusb_write_mem_bulk()
809 swap32 = (kernbuffer[0] << 16) | in sisusb_write_mem_bulk()
815 kernbuffer[0]; in sisusb_write_mem_bulk()
841 if ((length & ~3) > 0x10000) { in sisusb_write_mem_bulk()
843 packet.header = 0x001f; in sisusb_write_mem_bulk()
844 packet.address = 0x000001d4; in sisusb_write_mem_bulk()
847 &packet, 0); in sisusb_write_mem_bulk()
848 packet.header = 0x001f; in sisusb_write_mem_bulk()
849 packet.address = 0x000001d0; in sisusb_write_mem_bulk()
852 &packet, 0); in sisusb_write_mem_bulk()
853 packet.header = 0x001f; in sisusb_write_mem_bulk()
854 packet.address = 0x000001c0; in sisusb_write_mem_bulk()
855 packet.data = flag | 0x16; in sisusb_write_mem_bulk()
857 &packet, 0); in sisusb_write_mem_bulk()
862 NULL, userbuffer, 0, in sisusb_write_mem_bulk()
863 bytes_written, 0, 1); in sisusb_write_mem_bulk()
869 kernbuffer, NULL, 0, in sisusb_write_mem_bulk()
870 bytes_written, 0, 1); in sisusb_write_mem_bulk()
877 bytes_written, 0, 1); in sisusb_write_mem_bulk()
884 packet.header = 0x001f; in sisusb_write_mem_bulk()
885 packet.address = 0x00000194; in sisusb_write_mem_bulk()
888 &packet, 0); in sisusb_write_mem_bulk()
889 packet.header = 0x001f; in sisusb_write_mem_bulk()
890 packet.address = 0x00000190; in sisusb_write_mem_bulk()
893 &packet, 0); in sisusb_write_mem_bulk()
894 if (sisusb->flagb0 != 0x16) { in sisusb_write_mem_bulk()
895 packet.header = 0x001f; in sisusb_write_mem_bulk()
896 packet.address = 0x00000180; in sisusb_write_mem_bulk()
897 packet.data = flag | 0x16; in sisusb_write_mem_bulk()
899 10, &packet, 0); in sisusb_write_mem_bulk()
900 sisusb->flagb0 = 0x16; in sisusb_write_mem_bulk()
906 NULL, userbuffer, 0, in sisusb_write_mem_bulk()
907 bytes_written, 0, 1); in sisusb_write_mem_bulk()
913 kernbuffer, NULL, 0, in sisusb_write_mem_bulk()
914 bytes_written, 0, 1); in sisusb_write_mem_bulk()
921 bytes_written, 0, 1); in sisusb_write_mem_bulk()
946 return ret ? -EIO : 0; in sisusb_write_mem_bulk()
971 int ret = 0; in sisusb_read_memio_word()
978 case 0: in sisusb_read_memio_word()
979 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_word()
984 packet.header = (type << 6) | 0x0006; in sisusb_read_memio_word()
989 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_word()
994 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_word()
997 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_word()
1010 int ret = 0; in sisusb_read_memio_24bit()
1015 case 0: in sisusb_read_memio_24bit()
1016 packet.header = (type << 6) | 0x0007; in sisusb_read_memio_24bit()
1018 *data = packet.data & 0x00ffffff; in sisusb_read_memio_24bit()
1021 packet.header = (type << 6) | 0x000e; in sisusb_read_memio_24bit()
1026 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_24bit()
1029 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_24bit()
1032 *data |= ((packet.data & 0xff) << 16); in sisusb_read_memio_24bit()
1035 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_24bit()
1038 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_24bit()
1041 *data |= ((packet.data & 0xffff) << 8); in sisusb_read_memio_24bit()
1051 int ret = 0; in sisusb_read_memio_long()
1056 case 0: in sisusb_read_memio_long()
1057 packet.header = (type << 6) | 0x000f; in sisusb_read_memio_long()
1062 packet.header = (type << 6) | 0x000e; in sisusb_read_memio_long()
1065 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_long()
1071 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_long()
1074 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_long()
1080 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_long()
1083 packet.header = (type << 6) | 0x0007; in sisusb_read_memio_long()
1096 int ret = 0; in sisusb_read_mem_bulk()
1101 (*bytes_read = 0); in sisusb_read_mem_bulk()
1103 length &= 0x00ffffff; in sisusb_read_mem_bulk()
1109 addr, &buf[0]); in sisusb_read_mem_bulk()
1113 if (put_user(buf[0], (u8 __user *)userbuffer)) in sisusb_read_mem_bulk()
1116 kernbuffer[0] = buf[0]; in sisusb_read_mem_bulk()
1140 buf[0] = (swap32 >> 16) & 0xff; in sisusb_read_mem_bulk()
1141 buf[1] = (swap32 >> 8) & 0xff; in sisusb_read_mem_bulk()
1142 buf[2] = swap32 & 0xff; in sisusb_read_mem_bulk()
1144 buf[2] = (swap32 >> 16) & 0xff; in sisusb_read_mem_bulk()
1145 buf[1] = (swap32 >> 8) & 0xff; in sisusb_read_mem_bulk()
1146 buf[0] = swap32 & 0xff; in sisusb_read_mem_bulk()
1150 &buf[0], 3)) in sisusb_read_mem_bulk()
1153 kernbuffer[0] = buf[0]; in sisusb_read_mem_bulk()
1238 return sisusb_setidxregandor(sisusb, port, index, 0xff, myor); in sisusb_setidxregor()
1244 return sisusb_setidxregandor(sisusb, port, idx, myand, 0x00); in sisusb_setidxregand()
1252 static u8 srcbuffer[] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; in sisusb_testreadwrite()
1262 for (j = 0; j < i; j++) { in sisusb_testreadwrite()
1271 /* access pci config registers (reg numbers 0, 4, 8, etc) */
1278 packet.header = 0x008f; in sisusb_write_pci_config()
1279 packet.address = regnum | 0x10000; in sisusb_write_pci_config()
1290 packet.header = 0x008f; in sisusb_read_pci_config()
1291 packet.address = (u32)regnum | 0x10000; in sisusb_read_pci_config()
1314 if (length <= 0) in sisusb_clear_vram()
1315 return 0; in sisusb_clear_vram()
1319 if (i < 0) in sisusb_clear_vram()
1322 memset(sisusb->obuf[i], 0, sisusb->obufsize); in sisusb_clear_vram()
1335 /* Initialize the graphics core (return 0 on success)
1357 ret = GETIREG(SISSR, 0x16, &tmp8); in sisusb_triggersr16()
1359 tmp8 &= 0x3f; in sisusb_triggersr16()
1360 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1361 tmp8 |= 0x80; in sisusb_triggersr16()
1362 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1364 tmp8 |= 0xc0; in sisusb_triggersr16()
1365 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1366 tmp8 &= 0x0f; in sisusb_triggersr16()
1367 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1368 tmp8 |= 0x80; in sisusb_triggersr16()
1369 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1370 tmp8 &= 0x0f; in sisusb_triggersr16()
1371 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1372 tmp8 |= 0xd0; in sisusb_triggersr16()
1373 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1374 tmp8 &= 0x0f; in sisusb_triggersr16()
1375 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1376 tmp8 |= 0xa0; in sisusb_triggersr16()
1377 ret |= SETIREG(SISSR, 0x16, tmp8); in sisusb_triggersr16()
1386 u8 ramtype, done = 0; in sisusb_getbuswidth()
1390 ret = GETIREG(SISSR, 0x3a, &ramtype); in sisusb_getbuswidth()
1393 ret |= SETIREG(SISSR, 0x13, 0x00); in sisusb_getbuswidth()
1396 ret |= SETIREG(SISSR, 0x14, 0x12); in sisusb_getbuswidth()
1397 ret |= SETIREGAND(SISSR, 0x15, 0xef); in sisusb_getbuswidth()
1399 ret |= SETIREG(SISSR, 0x14, 0x02); in sisusb_getbuswidth()
1403 ret |= WRITEL(ramptr + 0, 0x01234567); in sisusb_getbuswidth()
1404 ret |= WRITEL(ramptr + 4, 0x456789ab); in sisusb_getbuswidth()
1405 ret |= WRITEL(ramptr + 8, 0x89abcdef); in sisusb_getbuswidth()
1406 ret |= WRITEL(ramptr + 12, 0xcdef0123); in sisusb_getbuswidth()
1407 ret |= WRITEL(ramptr + 16, 0x55555555); in sisusb_getbuswidth()
1408 ret |= WRITEL(ramptr + 20, 0x55555555); in sisusb_getbuswidth()
1409 ret |= WRITEL(ramptr + 24, 0xffffffff); in sisusb_getbuswidth()
1410 ret |= WRITEL(ramptr + 28, 0xffffffff); in sisusb_getbuswidth()
1411 ret |= READL(ramptr + 0, &t0); in sisusb_getbuswidth()
1418 *chab = 0; *bw = 64; in sisusb_getbuswidth()
1420 if ((t3 != 0xcdef0123) || (t2 != 0x89abcdef)) { in sisusb_getbuswidth()
1421 if ((t1 == 0x456789ab) && (t0 == 0x01234567)) { in sisusb_getbuswidth()
1422 *chab = 0; *bw = 64; in sisusb_getbuswidth()
1423 ret |= SETIREGAND(SISSR, 0x14, 0xfd); in sisusb_getbuswidth()
1426 if ((t1 != 0x456789ab) || (t0 != 0x01234567)) { in sisusb_getbuswidth()
1428 ret |= SETIREGANDOR(SISSR, 0x14, 0xfc, 0x01); in sisusb_getbuswidth()
1431 ret |= WRITEL(ramptr + 0, 0x89abcdef); in sisusb_getbuswidth()
1432 ret |= WRITEL(ramptr + 4, 0xcdef0123); in sisusb_getbuswidth()
1433 ret |= WRITEL(ramptr + 8, 0x55555555); in sisusb_getbuswidth()
1434 ret |= WRITEL(ramptr + 12, 0x55555555); in sisusb_getbuswidth()
1435 ret |= WRITEL(ramptr + 16, 0xaaaaaaaa); in sisusb_getbuswidth()
1436 ret |= WRITEL(ramptr + 20, 0xaaaaaaaa); in sisusb_getbuswidth()
1439 if (t1 != 0xcdef0123) { in sisusb_getbuswidth()
1441 ret |= SETIREGOR(SISSR, 0x15, 0x10); in sisusb_getbuswidth()
1447 *chab = 0; *bw = 64; /* default: cha, bw = 64 */ in sisusb_getbuswidth()
1449 done = 0; in sisusb_getbuswidth()
1451 if (t1 == 0x456789ab) { in sisusb_getbuswidth()
1452 if (t0 == 0x01234567) { in sisusb_getbuswidth()
1453 *chab = 0; *bw = 64; in sisusb_getbuswidth()
1457 if (t0 == 0x01234567) { in sisusb_getbuswidth()
1458 *chab = 0; *bw = 32; in sisusb_getbuswidth()
1459 ret |= SETIREG(SISSR, 0x14, 0x00); in sisusb_getbuswidth()
1465 ret |= SETIREG(SISSR, 0x14, 0x03); in sisusb_getbuswidth()
1468 ret |= WRITEL(ramptr + 0, 0x01234567); in sisusb_getbuswidth()
1469 ret |= WRITEL(ramptr + 4, 0x456789ab); in sisusb_getbuswidth()
1470 ret |= WRITEL(ramptr + 8, 0x89abcdef); in sisusb_getbuswidth()
1471 ret |= WRITEL(ramptr + 12, 0xcdef0123); in sisusb_getbuswidth()
1472 ret |= WRITEL(ramptr + 16, 0x55555555); in sisusb_getbuswidth()
1473 ret |= WRITEL(ramptr + 20, 0x55555555); in sisusb_getbuswidth()
1474 ret |= WRITEL(ramptr + 24, 0xffffffff); in sisusb_getbuswidth()
1475 ret |= WRITEL(ramptr + 28, 0xffffffff); in sisusb_getbuswidth()
1476 ret |= READL(ramptr + 0, &t0); in sisusb_getbuswidth()
1479 if (t1 == 0x456789ab) { in sisusb_getbuswidth()
1480 if (t0 == 0x01234567) { in sisusb_getbuswidth()
1485 if (t0 == 0x01234567) { in sisusb_getbuswidth()
1487 ret |= SETIREG(SISSR, 0x14, 0x01); in sisusb_getbuswidth()
1497 int ret = 0; in sisusb_verify_mclk()
1501 ret |= WRITEB(ramptr, 0xaa); in sisusb_verify_mclk()
1502 ret |= WRITEB(ramptr + 16, 0x55); in sisusb_verify_mclk()
1505 if ((tmp1 != 0xaa) || (tmp2 != 0x55)) { in sisusb_verify_mclk()
1506 for (i = 0, j = 16; i < 2; i++, j += 16) { in sisusb_verify_mclk()
1507 ret |= GETIREG(SISSR, 0x21, &tmp1); in sisusb_verify_mclk()
1508 ret |= SETIREGAND(SISSR, 0x21, (tmp1 & 0xfb)); in sisusb_verify_mclk()
1509 ret |= SETIREGOR(SISSR, 0x3c, 0x01); /* not on 330 */ in sisusb_verify_mclk()
1510 ret |= SETIREGAND(SISSR, 0x3c, 0xfe); /* not on 330 */ in sisusb_verify_mclk()
1511 ret |= SETIREG(SISSR, 0x21, tmp1); in sisusb_verify_mclk()
1526 int ret = 0, ranksize; in sisusb_set_rank()
1529 *iret = 0; in sisusb_set_rank()
1531 if ((rankno == 2) && (dramtype[index][0] == 2)) in sisusb_set_rank()
1539 tmp = 0; in sisusb_set_rank()
1540 while ((ranksize >>= 1) > 0) in sisusb_set_rank()
1541 tmp += 0x10; in sisusb_set_rank()
1544 tmp |= ((bw / 64) & 0x02); in sisusb_set_rank()
1545 tmp |= (chab & 0x01); in sisusb_set_rank()
1547 ret = SETIREG(SISSR, 0x14, tmp); in sisusb_set_rank()
1548 ret |= sisusb_triggersr16(sisusb, 0); /* sic! */ in sisusb_set_rank()
1558 int ret = 0, i; in sisusb_check_rbc()
1561 *iret = 0; in sisusb_check_rbc()
1563 for (i = 0, j = 0; i < testn; i++) { in sisusb_check_rbc()
1568 for (i = 0, j = 0; i < testn; i++) { in sisusb_check_rbc()
1583 int ret = 0, i, i2ret; in sisusb_check_ranks()
1586 *iret = 0; in sisusb_check_ranks()
1589 inc = 1 << (rtype[idx][2] + rtype[idx][1] + rtype[idx][0] + in sisusb_check_ranks()
1613 int ret = 0, i2ret = 0, i, j; in sisusb_get_sdram_size()
1615 { 2, 12, 9, 64, 0x35 }, in sisusb_get_sdram_size()
1616 { 1, 13, 9, 64, 0x44 }, in sisusb_get_sdram_size()
1617 { 2, 12, 8, 32, 0x31 }, in sisusb_get_sdram_size()
1618 { 2, 11, 9, 32, 0x25 }, in sisusb_get_sdram_size()
1619 { 1, 12, 9, 32, 0x34 }, in sisusb_get_sdram_size()
1620 { 1, 13, 8, 32, 0x40 }, in sisusb_get_sdram_size()
1621 { 2, 11, 8, 16, 0x21 }, in sisusb_get_sdram_size()
1622 { 1, 12, 8, 16, 0x30 }, in sisusb_get_sdram_size()
1623 { 1, 11, 9, 16, 0x24 }, in sisusb_get_sdram_size()
1624 { 1, 11, 8, 8, 0x20 }, in sisusb_get_sdram_size()
1625 { 2, 9, 8, 4, 0x01 }, in sisusb_get_sdram_size()
1626 { 1, 10, 8, 4, 0x10 }, in sisusb_get_sdram_size()
1627 { 1, 9, 8, 2, 0x00 } in sisusb_get_sdram_size()
1632 for (i = 0; i < 13; i++) { in sisusb_get_sdram_size()
1633 ret |= SETIREGANDOR(SISSR, 0x13, 0x80, sdramtype[i][4]); in sisusb_get_sdram_size()
1634 for (j = 2; j > 0; j--) { in sisusb_get_sdram_size()
1643 *iret = 0; /* ram size found */ in sisusb_get_sdram_size()
1655 int ret = 0; in sisusb_setup_screen()
1671 for (i = 0; i < modex; i++) { in sisusb_setup_screen()
1674 address, 0xf100); in sisusb_setup_screen()
1677 address, 0xf100); in sisusb_setup_screen()
1679 for (i = 0; i < modey; i++) { in sisusb_setup_screen()
1682 address, 0xf100); in sisusb_setup_screen()
1685 address, 0xf100); in sisusb_setup_screen()
1698 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in sisusb_set_default_mode()
1699 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, in sisusb_set_default_mode()
1700 0x01, 0x00, 0x00, 0x00 in sisusb_set_default_mode()
1703 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0x0b, 0x3e, in sisusb_set_default_mode()
1704 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in sisusb_set_default_mode()
1705 0xea, 0x8c, 0xdf, 0x28, 0x40, 0xe7, 0x04, 0xa3, in sisusb_set_default_mode()
1706 0xff in sisusb_set_default_mode()
1709 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0f, in sisusb_set_default_mode()
1710 0xff in sisusb_set_default_mode()
1713 0x5f, 0x4f, 0x4f, 0x83, 0x55, 0x81, 0x0b, 0x3e, in sisusb_set_default_mode()
1714 0xe9, 0x8b, 0xdf, 0xe8, 0x0c, 0x00, 0x00, 0x05, in sisusb_set_default_mode()
1715 0x00 in sisusb_set_default_mode()
1720 GETIREG(SISSR, 0x31, &sr31); in sisusb_set_default_mode()
1721 GETIREG(SISCR, 0x63, &cr63); in sisusb_set_default_mode()
1722 SETIREGOR(SISSR, 0x01, 0x20); in sisusb_set_default_mode()
1723 SETIREG(SISCR, 0x63, cr63 & 0xbf); in sisusb_set_default_mode()
1724 SETIREGOR(SISCR, 0x17, 0x80); in sisusb_set_default_mode()
1725 SETIREGOR(SISSR, 0x1f, 0x04); in sisusb_set_default_mode()
1726 SETIREGAND(SISSR, 0x07, 0xfb); in sisusb_set_default_mode()
1727 SETIREG(SISSR, 0x00, 0x03); /* seq */ in sisusb_set_default_mode()
1728 SETIREG(SISSR, 0x01, 0x21); in sisusb_set_default_mode()
1729 SETIREG(SISSR, 0x02, 0x0f); in sisusb_set_default_mode()
1730 SETIREG(SISSR, 0x03, 0x00); in sisusb_set_default_mode()
1731 SETIREG(SISSR, 0x04, 0x0e); in sisusb_set_default_mode()
1732 SETREG(SISMISCW, 0x23); /* misc */ in sisusb_set_default_mode()
1733 for (i = 0; i <= 0x18; i++) { /* crtc */ in sisusb_set_default_mode()
1736 for (i = 0; i <= 0x13; i++) { /* att */ in sisusb_set_default_mode()
1742 SETREG(SISAR, 0x14); in sisusb_set_default_mode()
1743 SETREG(SISAR, 0x00); in sisusb_set_default_mode()
1745 SETREG(SISAR, 0x20); in sisusb_set_default_mode()
1747 for (i = 0; i <= 0x08; i++) { /* grc */ in sisusb_set_default_mode()
1750 SETIREGAND(SISGR, 0x05, 0xbf); in sisusb_set_default_mode()
1751 for (i = 0x0A; i <= 0x0E; i++) { /* clr ext */ in sisusb_set_default_mode()
1752 SETIREG(SISSR, i, 0x00); in sisusb_set_default_mode()
1754 SETIREGAND(SISSR, 0x37, 0xfe); in sisusb_set_default_mode()
1755 SETREG(SISMISCW, 0xef); /* sync */ in sisusb_set_default_mode()
1756 SETIREG(SISCR, 0x11, 0x00); /* crtc */ in sisusb_set_default_mode()
1757 for (j = 0x00, i = 0; i <= 7; i++, j++) in sisusb_set_default_mode()
1760 for (j = 0x10; i <= 10; i++, j++) in sisusb_set_default_mode()
1763 for (j = 0x15; i <= 12; i++, j++) in sisusb_set_default_mode()
1766 for (j = 0x0A; i <= 15; i++, j++) in sisusb_set_default_mode()
1769 SETIREG(SISSR, 0x0E, (crtcdata[16] & 0xE0)); in sisusb_set_default_mode()
1770 SETIREGANDOR(SISCR, 0x09, 0x5f, ((crtcdata[16] & 0x01) << 5)); in sisusb_set_default_mode()
1771 SETIREG(SISCR, 0x14, 0x4f); in sisusb_set_default_mode()
1773 SETIREGANDOR(SISSR, 0x0e, 0xf0, ((du >> 8) & 0x0f)); in sisusb_set_default_mode()
1774 SETIREG(SISCR, 0x13, (du & 0xff)); in sisusb_set_default_mode()
1777 SETIREG(SISSR, 0x10, tmp8); in sisusb_set_default_mode()
1778 SETIREG(SISSR, 0x31, 0x00); /* VCLK */ in sisusb_set_default_mode()
1779 SETIREG(SISSR, 0x2b, 0x1b); in sisusb_set_default_mode()
1780 SETIREG(SISSR, 0x2c, 0xe1); in sisusb_set_default_mode()
1781 SETIREG(SISSR, 0x2d, 0x01); in sisusb_set_default_mode()
1782 SETIREGAND(SISSR, 0x3d, 0xfe); /* FIFO */ in sisusb_set_default_mode()
1783 SETIREG(SISSR, 0x08, 0xae); in sisusb_set_default_mode()
1784 SETIREGAND(SISSR, 0x09, 0xf0); in sisusb_set_default_mode()
1785 SETIREG(SISSR, 0x08, 0x34); in sisusb_set_default_mode()
1786 SETIREGOR(SISSR, 0x3d, 0x01); in sisusb_set_default_mode()
1787 SETIREGAND(SISSR, 0x1f, 0x3f); /* mode regs */ in sisusb_set_default_mode()
1788 SETIREGANDOR(SISSR, 0x06, 0xc0, 0x0a); in sisusb_set_default_mode()
1789 SETIREG(SISCR, 0x19, 0x00); in sisusb_set_default_mode()
1790 SETIREGAND(SISCR, 0x1a, 0xfc); in sisusb_set_default_mode()
1791 SETIREGAND(SISSR, 0x0f, 0xb7); in sisusb_set_default_mode()
1792 SETIREGAND(SISSR, 0x31, 0xfb); in sisusb_set_default_mode()
1793 SETIREGANDOR(SISSR, 0x21, 0x1f, 0xa0); in sisusb_set_default_mode()
1794 SETIREGAND(SISSR, 0x32, 0xf3); in sisusb_set_default_mode()
1795 SETIREGANDOR(SISSR, 0x07, 0xf8, 0x03); in sisusb_set_default_mode()
1796 SETIREG(SISCR, 0x52, 0x6c); in sisusb_set_default_mode()
1798 SETIREG(SISCR, 0x0d, 0x00); /* adjust frame */ in sisusb_set_default_mode()
1799 SETIREG(SISCR, 0x0c, 0x00); in sisusb_set_default_mode()
1800 SETIREG(SISSR, 0x0d, 0x00); in sisusb_set_default_mode()
1801 SETIREGAND(SISSR, 0x37, 0xfe); in sisusb_set_default_mode()
1803 SETIREG(SISCR, 0x32, 0x20); in sisusb_set_default_mode()
1804 SETIREGAND(SISSR, 0x01, 0xdf); /* enable display */ in sisusb_set_default_mode()
1805 SETIREG(SISCR, 0x63, (cr63 & 0xbf)); in sisusb_set_default_mode()
1806 SETIREG(SISSR, 0x31, (sr31 & 0xfb)); in sisusb_set_default_mode()
1809 SETIREG(SISSR, 0x20, 0xa1); /* enable engines */ in sisusb_set_default_mode()
1810 SETIREGOR(SISSR, 0x1e, 0x5a); in sisusb_set_default_mode()
1812 SETIREG(SISSR, 0x26, 0x01); /* disable cmdqueue */ in sisusb_set_default_mode()
1813 SETIREG(SISSR, 0x27, 0x1f); in sisusb_set_default_mode()
1814 SETIREG(SISSR, 0x26, 0x00); in sisusb_set_default_mode()
1817 SETIREG(SISCR, 0x34, 0x44); /* we just set std mode #44 */ in sisusb_set_default_mode()
1822 int ret = 0, i, j, bw, chab, iret, retry = 3; in sisusb_init_gfxcore()
1826 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1827 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1828 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1829 0x3b, 0x22, 0x01, 143 in sisusb_init_gfxcore()
1832 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1833 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1834 0x3b, 0x22, 0x01, 143, in sisusb_init_gfxcore()
1835 0x3b, 0x22, 0x01, 143 in sisusb_init_gfxcore()
1838 0x00, 0x04, 0x60, 0x60, in sisusb_init_gfxcore()
1839 0x0f, 0x0f, 0x1f, 0x1f, in sisusb_init_gfxcore()
1840 0xba, 0xba, 0xba, 0xba, in sisusb_init_gfxcore()
1841 0xa9, 0xa9, 0xac, 0xac, in sisusb_init_gfxcore()
1842 0xa0, 0xa0, 0xa0, 0xa8, in sisusb_init_gfxcore()
1843 0x00, 0x00, 0x02, 0x02, in sisusb_init_gfxcore()
1844 0x30, 0x30, 0x40, 0x40 in sisusb_init_gfxcore()
1847 0x77, 0x77, 0x44, 0x44, in sisusb_init_gfxcore()
1848 0x77, 0x77, 0x44, 0x44, in sisusb_init_gfxcore()
1849 0x00, 0x00, 0x00, 0x00, in sisusb_init_gfxcore()
1850 0x5b, 0x5b, 0xab, 0xab, in sisusb_init_gfxcore()
1851 0x00, 0x00, 0xf0, 0xf8 in sisusb_init_gfxcore()
1858 ret |= SETREG(SISVGAEN, (tmp8 | 0x01)); in sisusb_init_gfxcore()
1862 ret |= SETREG(SISMISCW, (tmp8 | 0x01)); in sisusb_init_gfxcore()
1868 ret |= SETIREGAND(SISCR, 0x5b, 0xdf); in sisusb_init_gfxcore()
1869 ret |= SETIREG(SISSR, 0x05, 0x86); in sisusb_init_gfxcore()
1870 ret |= SETIREGOR(SISSR, 0x20, 0x01); in sisusb_init_gfxcore()
1872 ret |= SETREG(SISMISCW, 0x67); in sisusb_init_gfxcore()
1874 for (i = 0x06; i <= 0x1f; i++) in sisusb_init_gfxcore()
1875 ret |= SETIREG(SISSR, i, 0x00); in sisusb_init_gfxcore()
1877 for (i = 0x21; i <= 0x27; i++) in sisusb_init_gfxcore()
1878 ret |= SETIREG(SISSR, i, 0x00); in sisusb_init_gfxcore()
1880 for (i = 0x31; i <= 0x3d; i++) in sisusb_init_gfxcore()
1881 ret |= SETIREG(SISSR, i, 0x00); in sisusb_init_gfxcore()
1883 for (i = 0x12; i <= 0x1b; i++) in sisusb_init_gfxcore()
1884 ret |= SETIREG(SISSR, i, 0x00); in sisusb_init_gfxcore()
1886 for (i = 0x79; i <= 0x7c; i++) in sisusb_init_gfxcore()
1887 ret |= SETIREG(SISCR, i, 0x00); in sisusb_init_gfxcore()
1892 ret |= SETIREG(SISCR, 0x63, 0x80); in sisusb_init_gfxcore()
1894 ret |= GETIREG(SISSR, 0x3a, &ramtype); in sisusb_init_gfxcore()
1895 ramtype &= 0x03; in sisusb_init_gfxcore()
1897 ret |= SETIREG(SISSR, 0x28, mclktable[ramtype * 4]); in sisusb_init_gfxcore()
1898 ret |= SETIREG(SISSR, 0x29, mclktable[(ramtype * 4) + 1]); in sisusb_init_gfxcore()
1899 ret |= SETIREG(SISSR, 0x2a, mclktable[(ramtype * 4) + 2]); in sisusb_init_gfxcore()
1901 ret |= SETIREG(SISSR, 0x2e, eclktable[ramtype * 4]); in sisusb_init_gfxcore()
1902 ret |= SETIREG(SISSR, 0x2f, eclktable[(ramtype * 4) + 1]); in sisusb_init_gfxcore()
1903 ret |= SETIREG(SISSR, 0x30, eclktable[(ramtype * 4) + 2]); in sisusb_init_gfxcore()
1905 ret |= SETIREG(SISSR, 0x07, 0x18); in sisusb_init_gfxcore()
1906 ret |= SETIREG(SISSR, 0x11, 0x0f); in sisusb_init_gfxcore()
1911 for (i = 0x15, j = 0; i <= 0x1b; i++, j++) { in sisusb_init_gfxcore()
1915 for (i = 0x40, j = 0; i <= 0x44; i++, j++) { in sisusb_init_gfxcore()
1920 ret |= SETIREG(SISCR, 0x49, 0xaa); in sisusb_init_gfxcore()
1922 ret |= SETIREG(SISSR, 0x1f, 0x00); in sisusb_init_gfxcore()
1923 ret |= SETIREG(SISSR, 0x20, 0xa0); in sisusb_init_gfxcore()
1924 ret |= SETIREG(SISSR, 0x23, 0xf6); in sisusb_init_gfxcore()
1925 ret |= SETIREG(SISSR, 0x24, 0x0d); in sisusb_init_gfxcore()
1926 ret |= SETIREG(SISSR, 0x25, 0x33); in sisusb_init_gfxcore()
1928 ret |= SETIREG(SISSR, 0x11, 0x0f); in sisusb_init_gfxcore()
1930 ret |= SETIREGOR(SISPART1, 0x2f, 0x01); in sisusb_init_gfxcore()
1932 ret |= SETIREGAND(SISCAP, 0x3f, 0xef); in sisusb_init_gfxcore()
1937 ret |= SETIREG(SISPART1, 0x00, 0x00); in sisusb_init_gfxcore()
1939 ret |= GETIREG(SISSR, 0x13, &tmp8); in sisusb_init_gfxcore()
1942 ret |= SETIREG(SISPART1, 0x02, 0x00); in sisusb_init_gfxcore()
1943 ret |= SETIREG(SISPART1, 0x2e, 0x08); in sisusb_init_gfxcore()
1945 ret |= sisusb_read_pci_config(sisusb, 0x50, &tmp32); in sisusb_init_gfxcore()
1946 tmp32 &= 0x00f00000; in sisusb_init_gfxcore()
1947 tmp8 = (tmp32 == 0x100000) ? 0x33 : 0x03; in sisusb_init_gfxcore()
1948 ret |= SETIREG(SISSR, 0x25, tmp8); in sisusb_init_gfxcore()
1949 tmp8 = (tmp32 == 0x100000) ? 0xaa : 0x88; in sisusb_init_gfxcore()
1950 ret |= SETIREG(SISCR, 0x49, tmp8); in sisusb_init_gfxcore()
1952 ret |= SETIREG(SISSR, 0x27, 0x1f); in sisusb_init_gfxcore()
1953 ret |= SETIREG(SISSR, 0x31, 0x00); in sisusb_init_gfxcore()
1954 ret |= SETIREG(SISSR, 0x32, 0x11); in sisusb_init_gfxcore()
1955 ret |= SETIREG(SISSR, 0x33, 0x00); in sisusb_init_gfxcore()
1960 ret |= SETIREG(SISCR, 0x83, 0x00); in sisusb_init_gfxcore()
1962 sisusb_set_default_mode(sisusb, 0); in sisusb_init_gfxcore()
1964 ret |= SETIREGAND(SISSR, 0x21, 0xdf); in sisusb_init_gfxcore()
1965 ret |= SETIREGOR(SISSR, 0x01, 0x20); in sisusb_init_gfxcore()
1966 ret |= SETIREGOR(SISSR, 0x16, 0x0f); in sisusb_init_gfxcore()
1971 ret |= SETIREGAND(SISSR, 0x17, 0xf8); in sisusb_init_gfxcore()
1972 ret |= SETIREGOR(SISSR, 0x19, 0x03); in sisusb_init_gfxcore()
1982 ret |= SETIREG(SISSR, 0x14, 0x31); in sisusb_init_gfxcore()
1988 ret |= SETIREG(SISSR, 0x14, 0x31); in sisusb_init_gfxcore()
1993 ret |= SETIREG(SISSR, 0x16, ramtypetable1[4 + ramtype]); in sisusb_init_gfxcore()
1994 ret |= SETIREG(SISSR, 0x17, ramtypetable1[8 + ramtype]); in sisusb_init_gfxcore()
1995 ret |= SETIREG(SISSR, 0x19, ramtypetable1[16 + ramtype]); in sisusb_init_gfxcore()
1997 ret |= SETIREGOR(SISSR, 0x21, 0x20); in sisusb_init_gfxcore()
1999 ret |= SETIREG(SISSR, 0x22, 0xfb); in sisusb_init_gfxcore()
2000 ret |= SETIREG(SISSR, 0x21, 0xa5); in sisusb_init_gfxcore()
2002 if (ret == 0) in sisusb_init_gfxcore()
2022 int bw = 0; in sisusb_get_ramconfig()
2030 sisusb_getidxreg(sisusb, SISSR, 0x14, &tmp8); in sisusb_get_ramconfig()
2031 sisusb_getidxreg(sisusb, SISSR, 0x15, &tmp82); in sisusb_get_ramconfig()
2032 sisusb_getidxreg(sisusb, SISSR, 0x3a, &ramtype); in sisusb_get_ramconfig()
2033 sisusb->vramsize = (1 << ((tmp8 & 0xf0) >> 4)) * 1024 * 1024; in sisusb_get_ramconfig()
2034 ramtype &= 0x03; in sisusb_get_ramconfig()
2035 switch ((tmp8 >> 2) & 0x03) { in sisusb_get_ramconfig()
2036 case 0: in sisusb_get_ramconfig()
2038 if (tmp82 & 0x10) in sisusb_get_ramconfig()
2041 bw = busSDR[(tmp8 & 0x03)]; in sisusb_get_ramconfig()
2047 bw = busSDR[(tmp8 & 0x03)]; in sisusb_get_ramconfig()
2052 bw = busDDRA[(tmp8 & 0x03)]; in sisusb_get_ramconfig()
2057 bw = busDDR[(tmp8 & 0x03)]; in sisusb_get_ramconfig()
2074 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2075 packet.address = 0x00000324; in sisusb_do_init_gfxdevice()
2076 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2077 ret = sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2079 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2080 packet.address = 0x00000364; in sisusb_do_init_gfxdevice()
2081 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2082 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2084 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2085 packet.address = 0x00000384; in sisusb_do_init_gfxdevice()
2086 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2087 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2089 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2090 packet.address = 0x00000100; in sisusb_do_init_gfxdevice()
2091 packet.data = 0x00000700; in sisusb_do_init_gfxdevice()
2092 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2094 packet.header = 0x000f; in sisusb_do_init_gfxdevice()
2095 packet.address = 0x00000004; in sisusb_do_init_gfxdevice()
2096 ret |= sisusb_send_bridge_packet(sisusb, 6, &packet, 0); in sisusb_do_init_gfxdevice()
2097 packet.data |= 0x17; in sisusb_do_init_gfxdevice()
2098 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2100 /* Init BAR 0 (VRAM) */ in sisusb_do_init_gfxdevice()
2101 ret |= sisusb_read_pci_config(sisusb, 0x10, &tmp32); in sisusb_do_init_gfxdevice()
2102 ret |= sisusb_write_pci_config(sisusb, 0x10, 0xfffffff0); in sisusb_do_init_gfxdevice()
2103 ret |= sisusb_read_pci_config(sisusb, 0x10, &tmp32); in sisusb_do_init_gfxdevice()
2104 tmp32 &= 0x0f; in sisusb_do_init_gfxdevice()
2106 ret |= sisusb_write_pci_config(sisusb, 0x10, tmp32); in sisusb_do_init_gfxdevice()
2109 ret |= sisusb_read_pci_config(sisusb, 0x14, &tmp32); in sisusb_do_init_gfxdevice()
2110 ret |= sisusb_write_pci_config(sisusb, 0x14, 0xfffffff0); in sisusb_do_init_gfxdevice()
2111 ret |= sisusb_read_pci_config(sisusb, 0x14, &tmp32); in sisusb_do_init_gfxdevice()
2112 tmp32 &= 0x0f; in sisusb_do_init_gfxdevice()
2114 ret |= sisusb_write_pci_config(sisusb, 0x14, tmp32); in sisusb_do_init_gfxdevice()
2117 ret |= sisusb_read_pci_config(sisusb, 0x18, &tmp32); in sisusb_do_init_gfxdevice()
2118 ret |= sisusb_write_pci_config(sisusb, 0x18, 0xfffffff0); in sisusb_do_init_gfxdevice()
2119 ret |= sisusb_read_pci_config(sisusb, 0x18, &tmp32); in sisusb_do_init_gfxdevice()
2120 tmp32 &= 0x0f; in sisusb_do_init_gfxdevice()
2122 ret |= sisusb_write_pci_config(sisusb, 0x18, tmp32); in sisusb_do_init_gfxdevice()
2125 ret |= sisusb_read_pci_config(sisusb, 0x04, &tmp32); in sisusb_do_init_gfxdevice()
2126 tmp32 |= 0x3; in sisusb_do_init_gfxdevice()
2127 ret |= sisusb_write_pci_config(sisusb, 0x04, tmp32); in sisusb_do_init_gfxdevice()
2129 if (ret == 0) { in sisusb_do_init_gfxdevice()
2131 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2132 packet.address = 0x00000050; in sisusb_do_init_gfxdevice()
2133 packet.data = 0x000000ff; in sisusb_do_init_gfxdevice()
2134 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2140 /* Initialize the graphics device (return 0 on success)
2147 int ret = 0, test = 0; in sisusb_init_gfxdevice()
2152 ret |= sisusb_read_pci_config(sisusb, 0x10, &tmp32); in sisusb_init_gfxdevice()
2156 if ((tmp32 & 0xfffffff0) == SISUSB_PCI_MEMBASE) in sisusb_init_gfxdevice()
2159 ret |= sisusb_read_pci_config(sisusb, 0x14, &tmp32); in sisusb_init_gfxdevice()
2163 if ((tmp32 & 0xfffffff0) == SISUSB_PCI_MMIOBASE) in sisusb_init_gfxdevice()
2166 ret |= sisusb_read_pci_config(sisusb, 0x18, &tmp32); in sisusb_init_gfxdevice()
2170 if ((tmp32 & 0xfffffff0) == SISUSB_PCI_IOPORTBASE) in sisusb_init_gfxdevice()
2175 if ((sisusb->devinit == 0) || (test != 3)) { in sisusb_init_gfxdevice()
2179 if (ret == 0) in sisusb_init_gfxdevice()
2186 if (sisusb_init_gfxcore(sisusb) == 0) { in sisusb_init_gfxdevice()
2228 if (sisusb_init_gfxdevice(sisusb, 0)) { in sisusb_open()
2251 return 0; in sisusb_open()
2285 sisusb->isopen = 0; in sisusb_release()
2293 return 0; in sisusb_release()
2300 ssize_t bytes_read = 0; in sisusb_read()
2301 int errno = 0; in sisusb_read()
2400 (*ppos) <= SISUSB_PCI_PSEUDO_PCIBASE + 0x5c) { in sisusb_read()
2436 int errno = 0; in sisusb_write()
2437 ssize_t bytes_written = 0; in sisusb_write()
2517 count, buffer, 0, &bytes_written); in sisusb_write()
2535 count, buffer, 0, &bytes_written); in sisusb_write()
2658 retval = 0; in sisusb_handle_command()
2665 if (retval > 0) in sisusb_handle_command()
2676 long retval = 0; in sisusb_ioctl()
2712 x.sisusb_fbdevactive = 0; in sisusb_ioctl()
2713 x.sisusb_conactive = 0; in sisusb_ioctl()
2714 memset(x.sisusb_reserved, 0, sizeof(x.sisusb_reserved)); in sisusb_ioctl()
2780 int retval = 0, i; in sisusb_probe()
2788 0}; in sisusb_probe()
2835 sisusb->numobufs = 0; in sisusb_probe()
2837 for (i = 0; i < NUMOBUFS; i++) { in sisusb_probe()
2840 if (i == 0) { in sisusb_probe()
2850 sisusb->sisurbin = usb_alloc_urb(0, GFP_KERNEL); in sisusb_probe()
2857 for (i = 0; i < sisusb->numobufs; i++) { in sisusb_probe()
2858 sisusb->sisurbout[i] = usb_alloc_urb(0, GFP_KERNEL); in sisusb_probe()
2865 sisusb->urbstatus[i] = 0; in sisusb_probe()
2899 return 0; in sisusb_probe()
2931 sisusb->present = 0; in sisusb_disconnect()
2932 sisusb->ready = 0; in sisusb_disconnect()
2941 { USB_DEVICE(0x0711, 0x0550) },
2942 { USB_DEVICE(0x0711, 0x0900) },
2943 { USB_DEVICE(0x0711, 0x0901) },
2944 { USB_DEVICE(0x0711, 0x0902) },
2945 { USB_DEVICE(0x0711, 0x0903) },
2946 { USB_DEVICE(0x0711, 0x0918) },
2947 { USB_DEVICE(0x0711, 0x0920) },
2948 { USB_DEVICE(0x0711, 0x0950) },
2949 { USB_DEVICE(0x0711, 0x5200) },
2950 { USB_DEVICE(0x182d, 0x021c) },
2951 { USB_DEVICE(0x182d, 0x0269) },