Lines Matching refs:DBG
89 DBG (int level, const char *msg, ...)
155 DBG (DBG_FNC, " -> cph->p1 = %f\n", cph->p1);
156 DBG (DBG_FNC, " -> cph->p2 = %f\n", cph->p2);
157 DBG (DBG_FNC, " -> cph->ps = %i\n", cph->ps);
158 DBG (DBG_FNC, " -> cph->ge = %i\n", cph->ge);
159 DBG (DBG_FNC, " -> cph->go = %i\n", cph->go);
162 DBG (DBG_FNC, " -> cph is NULL\n");
170 DBG (DBG_FNC, " -> mt->cdss[0] = %i\n", _B0 (mt->cdss[0]));
171 DBG (DBG_FNC, " -> mt->cdsc[0] = %i\n", _B0 (mt->cdsc[0]));
172 DBG (DBG_FNC, " -> mt->cdss[1] = %i\n", _B0 (mt->cdss[1]));
173 DBG (DBG_FNC, " -> mt->cdsc[1] = %i\n", _B0 (mt->cdsc[1]));
174 DBG (DBG_FNC, " -> mt->cnpp = %i\n", _B0 (mt->cnpp));
175 DBG (DBG_FNC, " -> mt->cvtrp0 = %i\n", _B0 (mt->cvtrp[0]));
176 DBG (DBG_FNC, " -> mt->cvtrp1 = %i\n", _B0 (mt->cvtrp[1]));
177 DBG (DBG_FNC, " -> mt->cvtrp2 = %i\n", _B0 (mt->cvtrp[2]));
178 DBG (DBG_FNC, " -> mt->cvtrfpw = %i\n", _B0 (mt->cvtrfpw));
179 DBG (DBG_FNC, " -> mt->cvtrbpw = %i\n", _B0 (mt->cvtrbpw));
180 DBG (DBG_FNC, " -> mt->cvtrw = %i\n", _B0 (mt->cvtrw));
181 DBG (DBG_FNC, " -> mt->clamps = 0x%08x\n", mt->clamps);
182 DBG (DBG_FNC, " -> mt->clampe = 0x%08x\n", mt->clampe);
183 DBG (DBG_FNC, " -> mt->adcclkp0 = %f\n", mt->adcclkp[0]);
184 DBG (DBG_FNC, " -> mt->adcclkp1 = %f\n", mt->adcclkp[1]);
185 DBG (DBG_FNC, " -> mt->adcclkp2e = %i\n", mt->adcclkp2e);
186 DBG (DBG_FNC, " -> mt->cphbp2s = %i\n", mt->cphbp2s);
187 DBG (DBG_FNC, " -> mt->cphbp2e = %i\n", mt->cphbp2e);
190 DBG (DBG_FNC, " -> mt is NULL\n");
198 DBG (DBG_FNC,
200 DBG (DBG_FNC,
202 DBG (DBG_FNC,
212 DBG (DBG_FNC, " -> sensor is NULL\n");
220 DBG (DBG_FNC, " -> count, btn1, btn2, btn3, btn4, btn5, btn6\n");
221 DBG (DBG_FNC, " -> -----, ----, ----, ----, ----, ----, ----\n");
222 DBG (DBG_FNC, " -> %5i, %4i, %4i, %4i, %4i, %4i, %4i\n",
228 DBG (DBG_FNC, " -> buttons is NULL\n");
239 DBG (DBG_FNC,
241 DBG (DBG_FNC,
248 DBG (DBG_FNC,
275 DBG (DBG_FNC, " -> Motorcurve %2i: ", a);
279 DBG (DBG_FNC, "mri=%i msi=%i skip=%i bckstp=%i\n", mtc->mri,
292 DBG (DBG_FNC,
294 DBG (DBG_FNC,
371 DBG (DBG_FNC, "%s", sline);
383 DBG (DBG_FNC, "NULL\n");
397 DBG (DBG_FNC, " -> ##, CLK, CTPC, STT, CV\n");
398 DBG (DBG_FNC, " -> --, ---, ----, ---, --\n");
404 DBG (DBG_FNC, " -> %2i, %3i, %4i, %3i, %2i\n",
417 DBG (DBG_FNC, " -> Low level config:\n");
418 DBG (DBG_FNC, " -> startpos = %i\n", params->startpos);
419 DBG (DBG_FNC, " -> arrangeline = %s\n",
424 DBG (DBG_FNC, " -> scantype = %s\n",
426 DBG (DBG_FNC, " -> compression = %i\n", params->compression);
427 DBG (DBG_FNC, " -> use_gamma_tables = %i\n",
429 DBG (DBG_FNC, " -> gamma_tablesize = %i\n",
431 DBG (DBG_FNC, " -> white_shading = %i\n",
433 DBG (DBG_FNC, " -> black_shading = %i\n",
435 DBG (DBG_FNC, " -> unk3 = %i\n", params->unk3);
436 DBG (DBG_FNC, " -> motorplus = %i\n", params->motorplus);
437 DBG (DBG_FNC, " -> static_head = %i\n", params->static_head);
438 DBG (DBG_FNC, " -> motor_direction = %s\n",
440 DBG (DBG_FNC, " -> dummy_scan = %i\n", params->dummy_scan);
441 DBG (DBG_FNC, " -> highresolution = %i\n",
443 DBG (DBG_FNC, " -> sensorevenodddistance = %i\n",
445 DBG (DBG_FNC, " -> calibrate = %i\n", params->calibrate);
454 DBG (DBG_FNC, " -> Scan params:\n");
455 DBG (DBG_FNC, " -> colormode = %s\n",
457 DBG (DBG_FNC, " -> depth = %i\n", params->depth);
458 DBG (DBG_FNC, " -> samplerate = %i\n", params->samplerate);
459 DBG (DBG_FNC, " -> timing = %i\n", params->timing);
460 DBG (DBG_FNC, " -> channel = %i\n", params->channel);
461 DBG (DBG_FNC, " -> sensorresolution = %i\n", params->sensorresolution);
462 DBG (DBG_FNC, " -> resolution_x = %i\n", params->resolution_x);
463 DBG (DBG_FNC, " -> resolution_y = %i\n", params->resolution_y);
464 DBG (DBG_FNC, " -> left = %i\n", params->coord.left);
465 DBG (DBG_FNC, " -> width = %i\n", params->coord.width);
466 DBG (DBG_FNC, " -> top = %i\n", params->coord.top);
467 DBG (DBG_FNC, " -> height = %i\n", params->coord.height);
468 DBG (DBG_FNC, " -> shadinglength = %i\n", params->shadinglength);
469 DBG (DBG_FNC, " -> v157c = %i\n", params->v157c);
470 DBG (DBG_FNC, " -> bytesperline = %i\n", params->bytesperline);
471 DBG (DBG_FNC, " -> expt = %i\n", params->expt);
472 DBG (DBG_FNC, " *> startpos = %i\n", params->startpos);
473 DBG (DBG_FNC, " *> leftleading = %i\n", params->leftleading);
474 DBG (DBG_FNC, " *> ser = %i\n", params->ser);
475 DBG (DBG_FNC, " *> ler = %i\n", params->ler);
476 DBG (DBG_FNC, " *> scantype = %s\n",
486 DBG (DBG_FNC, " -> Calib table:\n");
487 DBG (DBG_FNC, " -> type R G B\n");
488 DBG (DBG_FNC, " -> ----- --- --- ---B\n");
489 DBG (DBG_FNC, " -> edcg1 = %3i , %3i , %3i\n", params->edcg1[0],
491 DBG (DBG_FNC, " -> edcg2 = %3i , %3i , %3i\n", params->edcg2[0],
493 DBG (DBG_FNC, " -> odcg1 = %3i , %3i , %3i\n", params->odcg1[0],
495 DBG (DBG_FNC, " -> odcg2 = %3i , %3i , %3i\n", params->odcg2[0],
497 DBG (DBG_FNC, " -> pag = %3i , %3i , %3i\n", params->pag[0],
499 DBG (DBG_FNC, " -> vgag1 = %3i , %3i , %3i\n", params->vgag1[0],
501 DBG (DBG_FNC, " -> vgag2 = %3i , %3i , %3i\n", params->vgag2[0],
531 DBG (DBG_FNC,
533 DBG (DBG_FNC,
535 DBG (DBG_FNC, " -> %4i, %4i, %4i, %5i, %4i, %4i, %4i, %6i\n",
595 DBG (DBG_ERR, "- dbg_tiff_save: Error generating filename\n");
598 DBG (DBG_ERR,
613 DBG (DBG_ERR, "- dbg_tiff_save: tiffio not supported\n");
740 DBG (level, "%s ", title);
777 DBG (level, "%s", sline);
792 DBG (level, "%s", sline);
801 DBG (level, " BF: Empty buffer\n");
812 DBG(DBG_FNC, "\n----------------------------------------------------\n");
813 DBG(DBG_FNC, """RTS8822 Control Registers Info""\nAddress Info\n------- ----\n");
815 DBG(DBG_FNC, "\n0x0000");
816 DBG(DBG_FNC, " bit[0..3] = systemclock: 0x%02x\n", iValue & 0x0f);
817 DBG(DBG_FNC, " bit[4] = 0x%02x : MLOCK\n", (iValue >> 4) & 1);
818 DBG(DBG_FNC, " bit[5] = 0x%02x : Bit to reset scanner\n", (iValue >> 5) & 1);
819 DBG(DBG_FNC, " bit[6] = 0x%02x : ?\n", (iValue >> 6) & 1);
820 DBG(DBG_FNC, " bit[7] = 0x%02x : RTS_IsExecuting\n", (iValue >> 7) & 1);
823 DBG(DBG_FNC, "0x0001 bit[0] = 0x%02x : ?\n", iValue & 1);
824 DBG(DBG_FNC, " bit[1] = 0x%02x : (is 1 if has motorcurves)\n", (iValue >> 1) & 1);
825 DBG(DBG_FNC, " bit[2] = 0x%02x : ?\n", (iValue >> 2) & 1);
826 DBG(DBG_FNC, " bit[3] = 0x%02x : ?\n", (iValue >> 3) & 1);
827 DBG(DBG_FNC, " bit[4] = 0x%02x : dummy scan\n", (iValue >> 4) & 1);
828 DBG(DBG_FNC, " bit[5..7] = 0x%02x : ?\n", (iValue >> 5) & 7);
833 DBG(DBG_FNC, "\n0x0010 bit[0..4] = 0x%02x : cvrs\n", iValue & 0x1f);
834 DBG(DBG_FNC, " bit[5] = 0x%02x : Enable CCD\n", ((iValue >> 5) & 1));
835 DBG(DBG_FNC, " bit[6] = 0x%02x : Enable CCD channel 1\n", ((iValue >> 6) & 1));
836 DBG(DBG_FNC, " bit[7] = 0x%02x : Enable CCD channel 2\n", ((iValue >> 7) & 1));
839 DBG(DBG_FNC, "\n0x0011 bit[0..6] = ?: 0x%02x\n", iValue & 0x3f);
840 DBG(DBG_FNC, " bit[7] = 0x%02x : sensor type (CCD=0|CIS=1)\n", (iValue >> 7) & 1);
843 DBG(DBG_FNC, "0x0012 bit[0..5] = 0x%02x [0x%02x,0x%02x,0x%02x] rgb channel order\n", (iValue & 0x3f), (iValue >> 4) & 3, (iValue >> 2) & 3, iValue & 3);
844 DBG(DBG_FNC, " bit[6..7] = channels_per_dot : 0x%02x\n", (iValue >> 6) & 3);
847 DBG(DBG_FNC, "\n0x0013");
848 DBG(DBG_FNC, " bit[0..1] = Pre-Amplifier Gain[RED] : 0x%02x\n", iValue & 3);
849 DBG(DBG_FNC, " bit[2..3] = Pre-Amplifier Gain[GREEN] : 0x%02x\n", (iValue >> 2) & 3);
850 DBG(DBG_FNC, " bit[4..5] = Pre-Amplifier Gain[BLUE] : 0x%02x\n", (iValue >> 4) & 3);
851 DBG(DBG_FNC, " bit[6] = ? : 0x%02x\n", (iValue >> 6) & 1);
852 DBG(DBG_FNC, " bit[7] = Enable CCD channel 3: : 0x%02x\n", (iValue >> 7) & 1);
855 DBG(DBG_FNC, "\n0x0014");
856 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 1 [RED] : 0x%02x\n", iValue & 0x1f);
857 DBG(DBG_FNC, " bit[5..7] = Top Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
860 DBG(DBG_FNC, "0x0015");
861 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 1 [GREEN] : 0x%02x\n", iValue & 0x1f);
862 DBG(DBG_FNC, " bit[5..7] = Middle Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
865 DBG(DBG_FNC, "0x0016");
866 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 1 [BLUE] : 0x%02x\n", iValue & 0x1f);
867 DBG(DBG_FNC, " bit[5..7] = Bottom Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
870 DBG(DBG_FNC, "0x0017");
871 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 2 [RED] : 0x%02x\n", iValue & 0x1f);
872 DBG(DBG_FNC, " bit[5..7] = Top Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
875 DBG(DBG_FNC, "0x0018");
876 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 2 [GREEN] : 0x%02x\n", iValue & 0x1f);
877 DBG(DBG_FNC, " bit[5..7] = Middle Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
880 DBG(DBG_FNC, "0x0019");
881 DBG(DBG_FNC, " bit[0..4] = Variable Gain Amplifier 2 [BLUE] : 0x%02x\n", iValue & 0x1f);
882 DBG(DBG_FNC, " bit[5..7] = Bottom Reference Voltage: 0x%02x\n", (iValue >> 5) & 3);
886 DBG(DBG_FNC, "\n0x001a-0x001b\n");
887 DBG(DBG_FNC, " Red Even offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
888 DBG(DBG_FNC, " Red Even offset 2: 0x%02x\n", iValue2 & 0x3f);
892 DBG(DBG_FNC, "0x001c-0x001d\n");
893 DBG(DBG_FNC, " Red Odd offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
894 DBG(DBG_FNC, " Red Odd offset 2: 0x%02x\n", iValue2 & 0x3f);
898 DBG(DBG_FNC, "0x001e-0x001f\n");
899 DBG(DBG_FNC, " Green Even offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
900 DBG(DBG_FNC, " Green Even offset 2: 0x%02x\n", iValue2 & 0x3f);
904 DBG(DBG_FNC, "0x0020-0x0021\n");
905 DBG(DBG_FNC, " Green Odd offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
906 DBG(DBG_FNC, " Green Odd offset 2: 0x%02x\n", iValue2 & 0x3f);
910 DBG(DBG_FNC, "0x0022-0x0023\n");
911 DBG(DBG_FNC, " Blue Even offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
912 DBG(DBG_FNC, " Blue Even offset 2: 0x%02x\n", iValue2 & 0x3f);
916 DBG(DBG_FNC, "0x0024-0x0025\n");
917 DBG(DBG_FNC, " Blue Odd offset 1: 0x%02x\n", ((iValue2 & 0x80) << 1) | iValue);
918 DBG(DBG_FNC, " Blue Odd offset 2: 0x%02x\n", iValue2 & 0x3f);
923 DBG(DBG_FNC, "\n0x0029");
924 DBG(DBG_FNC, " First connection to scanner? : 0x%02x\n", iValue);
928 DBG(DBG_FNC, "\nExposure times:\n");
930 DBG(DBG_FNC, "0x0030 Line exposure time : %i us\n", iValue);
933 DBG(DBG_FNC, "\n0x0033 mexpts[RED] : %i us\n", iValue);
936 DBG(DBG_FNC, "0x0036 expts[RED] : %i us\n", iValue);
939 DBG(DBG_FNC, "0x0039 mexpts[GREEN]: %i us\n", iValue);
942 DBG(DBG_FNC, "0x003c expts[GREEN]: %i us\n", iValue);
945 DBG(DBG_FNC, "0x003f mexpts[BLUE] : %i us\n", iValue);
948 DBG(DBG_FNC, "0x0042 expts[BLUE] : %i us\n", iValue);
951 DBG(DBG_FNC, "\n0x0045 bit[0..4] = timing.cvtrfpw: 0x%02x\n", iValue & 0x1f);
952 DBG(DBG_FNC, " bit[5] = timing.cvtrp[2]: 0x%02x\n", (iValue >> 5) & 1);
953 DBG(DBG_FNC, " bit[6] = timing.cvtrp[1]: 0x%02x\n", (iValue >> 6) & 1);
954 DBG(DBG_FNC, " bit[7] = timing.cvtrp[0]: 0x%02x\n", (iValue >> 7) & 1);
957 DBG(DBG_FNC, "0x0046");
958 DBG(DBG_FNC, " bit[0..4] = timing.cvtrbpw: 0x%02x\n", iValue & 0x1f);
959 DBG(DBG_FNC, " bit[5..7] = ?: 0x%02x\n", (iValue >> 5) & 3);
962 DBG(DBG_FNC, "0x0047");
963 DBG(DBG_FNC, " timing.cvtrw: 0x%02x\n", iValue);
969 DBG(DBG_FNC, "\n0x0048 Linear image sensor clock 1\n");
970 DBG(DBG_FNC, " bit[0..35] = timing.cph0p1: %.0f.\n", dValue);
972 DBG(DBG_FNC, " bit[36] = timing.cph0go: 0x%02x\n", (iValue >> 4) & 1);
973 DBG(DBG_FNC, " bit[37] = timing.cph0ge: 0x%02x\n", (iValue >> 5) & 1);
974 DBG(DBG_FNC, " bit[38] = timing.cph0ps: 0x%02x\n", (iValue >> 6) & 1);
975 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 7) & 1);
981 DBG(DBG_FNC, "0x004d");
982 DBG(DBG_FNC, " bit[0..35] = timing.cph0p2: %.0f.\n", dValue);
988 DBG(DBG_FNC, "\n0x0052 Linear image sensor clock 2\n");
989 DBG(DBG_FNC, " bit[0..35] = timing.cph1p1: %.0f.\n", dValue);
991 DBG(DBG_FNC, " bit[36] = timing.cph1go: 0x%02x\n", (iValue >> 4) & 1);
992 DBG(DBG_FNC, " bit[37] = timing.cph1ge: 0x%02x\n", (iValue >> 5) & 1);
993 DBG(DBG_FNC, " bit[38] = timing.cph1ps: 0x%02x\n", (iValue >> 6) & 1);
994 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 7) & 1);
1001 DBG(DBG_FNC, "0x0057");
1002 DBG(DBG_FNC, " bit[0..35] = timing.cph1p2: %.0f.\n", dValue);
1004 DBG(DBG_FNC, " bits[36..39] = %02x\n", (iValue >> 0x04) & 0x0f);
1005 DBG(DBG_FNC, " bit[36] = ?: %02x\n", (iValue >> 0x04) & 0x01);
1006 DBG(DBG_FNC, " bit[37] = ?: %02x\n", (iValue >> 0x05) & 0x01);
1007 DBG(DBG_FNC, " bit[38] = ?: %02x\n", (iValue >> 0x06) & 0x01);
1008 DBG(DBG_FNC, " bit[39] = ?: %02x\n", (iValue >> 0x07) & 0x01);
1014 DBG(DBG_FNC, "\n0x005c Linear Image Sensor Clock 3\n");
1015 DBG(DBG_FNC, " bit[0..35] = timing.cph2p1: %.0f.\n", dValue);
1017 DBG(DBG_FNC, " bit[36] = timing.cph2go: 0x%02x\n", (iValue >> 0x04) & 0x01);
1018 DBG(DBG_FNC, " bit[37] = timing.cph2ge: 0x%02x\n", (iValue >> 0x05) & 0x01);
1019 DBG(DBG_FNC, " bit[38] = timing.cph2ps: 0x%02x\n", (iValue >> 0x06) & 0x01);
1020 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1026 DBG(DBG_FNC, "0x0061");
1027 DBG(DBG_FNC, " bit[0..35] = timing.cph2p2: %.0f.\n", dValue);
1029 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1030 DBG(DBG_FNC, " bit[36] = ?: 0x%02x\n", (iValue >> 0x04) & 0x01);
1031 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1032 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1033 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1039 DBG(DBG_FNC, "\n0x0066 Linear Image Sensor Clock 4\n");
1040 DBG(DBG_FNC, " bit[0..35] = timing.cph3p1: %.0f.\n", dValue);
1042 DBG(DBG_FNC, " bit[36] = timing.cph3go: 0x%02x\n", (iValue >> 0x04) & 0x01);
1043 DBG(DBG_FNC, " bit[37] = timing.cph3ge: 0x%02x\n", (iValue >> 0x05) & 0x01);
1044 DBG(DBG_FNC, " bit[38] = timing.cph3ps: 0x%02x\n", (iValue >> 0x06) & 0x01);
1045 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1051 DBG(DBG_FNC, "0x006b");
1052 DBG(DBG_FNC, " bit[0..35] = timing.cph3p2: %.0f.\n", dValue);
1054 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1055 DBG(DBG_FNC, " bit[36] = ?: 0x%02x\n", (iValue >> 0x04) & 0x01);
1056 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1057 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1058 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1064 DBG(DBG_FNC, "\n0x0070 Linear Image Sensor Clock 5\n");
1065 DBG(DBG_FNC, " bit[0..35] = timing.cph4p1: %.0f.\n", dValue);
1067 DBG(DBG_FNC, " bit[36] = timing.cph4go: 0x%02x\n", (iValue >> 0x04) & 0x01);
1068 DBG(DBG_FNC, " bit[37] = timing.cph4ge: 0x%02x\n", (iValue >> 0x05) & 0x01);
1069 DBG(DBG_FNC, " bit[38] = timing.cph4ps: 0x%02x\n", (iValue >> 0x06) & 0x01);
1070 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1076 DBG(DBG_FNC, "0x0075");
1077 DBG(DBG_FNC, " bit[0..35] = timing.cph4p2: %.0f.\n", dValue);
1079 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1080 DBG(DBG_FNC, " bit[36] = ?: 0x%02x\n", (iValue >> 0x04) & 0x01);
1081 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1082 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1083 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1089 DBG(DBG_FNC, "\n0x007a Linear Image Sensor Clock 6\n");
1090 DBG(DBG_FNC, " bit[0..35] = timing.cph5p1: %.0f.\n", dValue);
1092 DBG(DBG_FNC, " bit[36] = timing.cph5go: 0x%02x\n", (iValue >> 0x04) & 0x01);
1093 DBG(DBG_FNC, " bit[37] = timing.cph5ge: 0x%02x\n", (iValue >> 0x05) & 0x01);
1094 DBG(DBG_FNC, " bit[38] = timing.cph5ps: 0x%02x\n", (iValue >> 0x06) & 0x01);
1095 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1101 DBG(DBG_FNC, "0x007f");
1102 DBG(DBG_FNC, " bit[0..35] = timing.cph5p2: %.0f.\n", dValue);
1104 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1105 DBG(DBG_FNC, " bit[36] = ?: 0x%02x\n", (iValue >> 0x04) & 0x01);
1106 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1107 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1108 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1111 DBG(DBG_FNC, "\n0x0084");
1112 DBG(DBG_FNC, " timing.cphbp2s : 0x%06x\n", iValue);
1115 DBG(DBG_FNC, "0x0087");
1116 DBG(DBG_FNC, " timing.cphbp2e : 0x%06x\n", iValue);
1119 DBG(DBG_FNC, "0x008a");
1120 DBG(DBG_FNC, " timing.clamps : 0x%08x\n", iValue);
1123 DBG(DBG_FNC, "0x008d");
1124 DBG(DBG_FNC, " timing.clampe or cphbp2e : 0x%08x\n", iValue);
1127 DBG(DBG_FNC, "\n0x0092 Correlated-Double-Sample 1\n");
1128 DBG(DBG_FNC, " bit[0..5] = timing.cdss[0]: 0x%02x\n", iValue & 0x3f);
1129 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1132 DBG(DBG_FNC, "0x0093");
1133 DBG(DBG_FNC, " bit[0..5] = timing.cdsc[0]: 0x%02x\n", iValue & 0x3f);
1134 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1137 DBG(DBG_FNC, "\n0x0094 Correlated-Double-Sample 2\n");
1138 DBG(DBG_FNC, " bit[0..5] = timing.cdss[1]: 0x%02x\n", iValue & 0x3f);
1139 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1142 DBG(DBG_FNC, "0x0095");
1143 DBG(DBG_FNC, " bit[0..5] = timing.cdsc[1]: 0x%02x\n", iValue & 0x3f);
1144 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1147 DBG(DBG_FNC, "0x0096");
1148 DBG(DBG_FNC, " bit[0..5] = timing.cnpp: 0x%02x\n", iValue & 0x3f);
1149 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1155 DBG(DBG_FNC, "\n0x0097 Analog to Digital Converter clock 1\n");
1156 DBG(DBG_FNC, " bit[0..35] = timing.adcclkp[0]: %.0f.\n", dValue);
1158 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1159 DBG(DBG_FNC, " bit[36] = ?: 0x%02x\n", (iValue >> 0x04) & 0x01);
1160 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1161 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1162 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1169 DBG(DBG_FNC, "\n0x00ae");
1170 DBG(DBG_FNC, " bit[0..5] = ?: 0x%02x\n", iValue & 0x3f);
1171 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1174 DBG(DBG_FNC, "0x00af");
1175 DBG(DBG_FNC, " bit[0..2] = ?: 0x%02x\n", iValue & 7);
1176 DBG(DBG_FNC, " bit[3..7] = ?: 0x%02x\n", (iValue >> 3) & 0x1f);
1179 DBG(DBG_FNC, "\n0x00b0");
1180 DBG(DBG_FNC, " Left : 0x%04x\n", iValue);
1183 DBG(DBG_FNC, "0x00b2");
1184 DBG(DBG_FNC, " Right: 0x%04x\n", iValue);
1189 DBG(DBG_FNC, "\n0x00c0");
1190 DBG(DBG_FNC, " bit[0..4] = resolution ratio: 0x%02x\n", iValue & 0x1f);
1191 DBG(DBG_FNC, " bit[5..7] = ?: 0x%02x\n", (iValue >> 5) & 7);
1197 DBG(DBG_FNC, "\n0x00c1 Analog to Digital Converter clock 2\n");
1198 DBG(DBG_FNC, " bit[0..35] = timing.adcclkp[1]: %.0f.\n", dValue);
1200 DBG(DBG_FNC, " bits[36..39] = 0x%02x\n", (iValue >> 0x04) & 0x0f);
1201 DBG(DBG_FNC, " bit[36] = ?: 0x%02x (equal to bit[32])\n", (iValue >> 0x04) & 0x01);
1202 DBG(DBG_FNC, " bit[37] = ?: 0x%02x\n", (iValue >> 0x05) & 0x01);
1203 DBG(DBG_FNC, " bit[38] = ?: 0x%02x\n", (iValue >> 0x06) & 0x01);
1204 DBG(DBG_FNC, " bit[39] = ?: 0x%02x\n", (iValue >> 0x07) & 0x01);
1209 DBG(DBG_FNC, "\n0x00d0");
1210 DBG(DBG_FNC, " Top : 0x%04x\n", iValue);
1213 DBG(DBG_FNC, "x00d2");
1214 DBG(DBG_FNC, " Down: 0x%04x\n", iValue);
1217 DBG(DBG_FNC, "0x00d5");
1218 DBG(DBG_FNC, " ?: 0x%04x\n", iValue);
1221 DBG(DBG_FNC, "\n0x00d6");
1222 DBG(DBG_FNC, " bit[0..3] = ? : 0x%02x\n", iValue & 0xf);
1223 DBG(DBG_FNC, " bit[4..7] = dummyline: 0x%02x\n", (iValue >> 4) & 0xf);
1226 DBG(DBG_FNC, "\n0x00d7");
1227 DBG(DBG_FNC, " bit[0..5] = motor pwm frequency: 0x%02x\n", iValue & 0x3f);
1228 DBG(DBG_FNC, " bit[6] = ?: 0x%02x\n", (iValue >> 6) & 1);
1229 DBG(DBG_FNC, " bit[7] = motor type: 0x%02x ", (iValue >> 7) & 1);
1231 DBG(DBG_FNC, ": Output state machine\n");
1232 else DBG(DBG_FNC, "On-Chip PWM\n");
1235 DBG(DBG_FNC, "\n0x00d8");
1236 DBG(DBG_FNC, " bit[0..5] = ?: 0x%02x\n", iValue & 0x3f);
1237 DBG(DBG_FNC, " bit[6] = scantype (0=Normal|1=TMA) : 0x%02x\n", (iValue >> 6) & 1);
1238 DBG(DBG_FNC, " bit[7] = enable head movement : 0x%02x :", (iValue >> 7) & 1);
1241 DBG(DBG_FNC, "\n0x00d9");
1242 DBG(DBG_FNC, " bit[0..2] = ?: 0x%02x\n", iValue & 7);
1243 DBG(DBG_FNC, " bit[3] = ?: 0x%02x\n", (iValue >> 3) & 1);
1244 DBG(DBG_FNC, " bit[4..6] = motor step type: 0x%02x: ", (iValue >> 4) & 7);
1247 case 0: DBG(DBG_FNC, "full (1)\n"); break;
1248 case 1: DBG(DBG_FNC, "half (1/2)\n"); break;
1249 case 2: DBG(DBG_FNC, "quart (1/4)\n"); break;
1250 case 3: DBG(DBG_FNC, "(1/8)\n"); break;
1251 default: DBG(DBG_FNC, "unknown\n"); break;
1253 DBG(DBG_FNC, " bit[7] = Motor direction: 0x%02x = ", (iValue >> 7) & 1);
1255 DBG(DBG_FNC, "Backward\n");
1256 else DBG(DBG_FNC, "Forward\n");
1259 DBG(DBG_FNC, "\n0x00da");
1260 DBG(DBG_FNC, " msi = 0x%03x\n", ((iValue & 3) << 8) + data_lsb_get(&buffer[0x0da], 1));
1262 DBG(DBG_FNC, "0x00db");
1263 DBG(DBG_FNC, " motorbackstep1 = 0x%03x\n", ((iValue & 0x0c) << 6) + data_lsb_get(&buffer[0x0db], 1));
1265 DBG(DBG_FNC, "0x00dc");
1266 DBG(DBG_FNC, " motorbackstep2 = 0x%03x\n", ((iValue & 0x30) << 4) + data_lsb_get(&buffer[0x0dc], 1));
1269 DBG(DBG_FNC, "0x00dd");
1270 DBG(DBG_FNC, " bit[7] = Motor enabled?: 0x%02x = ", (iValue >> 7) & 1);
1272 DBG(DBG_FNC, "Yes\n");
1273 else DBG(DBG_FNC, "No\n");
1276 DBG(DBG_FNC, "\n0x00de");
1277 DBG(DBG_FNC, " bit[00..11] = ?: 0x%02x\n", iValue & 0xfff);
1278 DBG(DBG_FNC, " bit[12..15] = ?: 0x%02x\n", (iValue >> 12) & 0x0f);
1281 DBG(DBG_FNC, "\n0x00df");
1282 DBG(DBG_FNC, " bit[0..3] = ?: 0x%02x\n", iValue & 0x0f);
1283 DBG(DBG_FNC, " bit[4] = has_motorcurves?: 0x%02x\n", (iValue >> 4) & 0x01);
1284 DBG(DBG_FNC, " bit[5..7] = ?: 0x%02x\n", (iValue >> 5) & 7);
1287 DBG(DBG_FNC, "\n0x00e0 step size - 1 : 0x%02x\n", iValue);
1290 DBG(DBG_FNC, "\n0x00e1 0x%06x : last step of accurve.normalscan table\n", iValue);
1293 DBG(DBG_FNC, "0x00e4 0x%06x : last step of accurve.smearing table\n", iValue);
1296 DBG(DBG_FNC, "0x00e7 0x%06x : last step of accurve.parkhome table\n", iValue);
1299 DBG(DBG_FNC, "0x00ea 0x%06x : last step of deccurve.scanbufferfull table\n", iValue);
1302 DBG(DBG_FNC, "0x00ed 0x%06x : last step of deccurve.normalscan table\n", iValue);
1305 DBG(DBG_FNC, "0x00f0 0x%06x : last step of deccurve.smearing table\n", iValue);
1308 DBG(DBG_FNC, "0x00f3 0x%06x : last step of deccurve.parkhome table\n", iValue);
1311 DBG(DBG_FNC, "\n0x00f6 bit[00..13] = 0x%04x : ptr to accurve.normalscan step table\n", iValue & 0x3fff);
1312 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1315 DBG(DBG_FNC, "0x00f8");
1316 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to deccurve.scanbufferfull step table\n", iValue & 0x3fff);
1317 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1320 DBG(DBG_FNC, "0x00fa");
1321 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to accurve.smearing step table\n", iValue & 0x3fff);
1322 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1325 DBG(DBG_FNC, "0x00fc");
1326 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to deccurve.smearing step table\n", iValue & 0x3fff);
1327 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1330 DBG(DBG_FNC, "0x00fe");
1331 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to deccurve.normalscan step table\n", iValue & 0x3fff);
1332 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1335 DBG(DBG_FNC, "0x0100");
1336 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to accurve.parkhome step table\n", iValue & 0x3fff);
1337 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1340 DBG(DBG_FNC, "0x0102");
1341 DBG(DBG_FNC, " bit[00..13] = 0x%04x : ptr to deccurve.parkhome step table\n", iValue & 0x3fff);
1342 DBG(DBG_FNC, " bit[14..15] = 0x%04x : ?\n",(iValue >> 14) & 3);
1349 DBG(DBG_FNC, "\n0x0146");
1350 DBG(DBG_FNC, " bit[0..3] = Lamp pulse-width modulation frequency : 0x%02x\n", iValue & 0xf);
1351 DBG(DBG_FNC, " bit[4] = timer enabled? : 0x%02x\n", (iValue >> 4) & 1);
1352 DBG(DBG_FNC, " bit[5] = ? : 0x%02x\n", (iValue >> 5) & 1);
1353 DBG(DBG_FNC, " bit[6] = lamp turned on? : 0x%02x\n", (iValue >> 6) & 1);
1354 DBG(DBG_FNC, " bit[7] = sensor type : 0x%02x ", (iValue >> 7) & 1);
1356 DBG(DBG_FNC, "CCD\n");
1357 else DBG(DBG_FNC, "CIS\n");
1360 DBG(DBG_FNC, "\n0x0147");
1361 DBG(DBG_FNC, " time to turn off lamp = 0x%02x (minutes * 2.682163611980331)\n", iValue);
1364 DBG(DBG_FNC, "\n0x0148");
1365 DBG(DBG_FNC, " bit[0..5] = Lamp pulse-width modulation duty cycle : 0x%02x\n", iValue & 0x3f);
1366 DBG(DBG_FNC, " bit[6..7] = ? : 0x%02x\n",(iValue >> 6) & 3);
1369 DBG(DBG_FNC, "\n0x0149");
1370 DBG(DBG_FNC, " bit[0..5] = even_odd_distance : 0x%02x\n", iValue & 0x3f);
1371 DBG(DBG_FNC, " bit[6..7] = ? : 0x%02x\n",(iValue >> 6) & 3);
1374 DBG(DBG_FNC, "0x014a");
1375 DBG(DBG_FNC, " bit[0..5] = sensor line distance : 0x%02x\n", iValue & 0x3f);
1376 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n",(iValue >> 6) & 3);
1379 DBG(DBG_FNC, "0x014b");
1380 DBG(DBG_FNC, " bit[0..5] = sensor line distance + even_odd_distance: 0x%02x\n", iValue & 0x3f);
1381 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n",(iValue >> 6) & 3);
1384 DBG(DBG_FNC, "0x014c");
1385 DBG(DBG_FNC, " bit[0..5] = sensor line distance * 2: 0x%02x\n", iValue & 0x3f);
1386 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1389 DBG(DBG_FNC, "0x014d");
1390 DBG(DBG_FNC, " bit[0..5] = (sensor line distance * 2) + even_odd_distance: 0x%02x\n", iValue & 0x3f);
1391 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 3);
1394 DBG(DBG_FNC, "\n0x014e");
1395 DBG(DBG_FNC, " bit[0..3] = ?: 0x%02x\n", iValue & 0xf);
1396 DBG(DBG_FNC, " bit[4] = ?: 0x%02x\n", (iValue >> 4) & 1);
1397 DBG(DBG_FNC, " bit[5..7] = ?: 0x%02x\n", (iValue >> 5) & 7);
1402 DBG(DBG_FNC, "\n0x0154");
1403 DBG(DBG_FNC, " bit[0..3] = ?: 0x%02x\n", iValue & 0xf);
1404 DBG(DBG_FNC, " bit[4..5] = ?: 0x%02x\n", (iValue >> 4) & 3);
1405 DBG(DBG_FNC, " bit[6..7] = ?: 0x%02x\n", (iValue >> 6) & 7);
1408 DBG(DBG_FNC, "\n0x0155");
1409 DBG(DBG_FNC, " bit[0..3] = ?: 0x%02x\n", iValue & 0x0f);
1410 DBG(DBG_FNC, " bit[4] = 0x%02x : ", (iValue >> 4) & 1);
1412 DBG(DBG_FNC, "flb lamp\n");
1413 else DBG(DBG_FNC, "tma lamp\n");
1414 DBG(DBG_FNC, " bit[5..7] = ? : 0x%02x\n", (iValue >> 5) & 7);
1419 DBG(DBG_FNC, "\n0x0158");
1420 DBG(DBG_FNC, " bit[0..3] = %02x : Scanner buttons ", iValue & 0x0f);
1422 DBG(DBG_FNC, "enabled\n");
1423 else DBG(DBG_FNC, "disabled\n");
1424 DBG(DBG_FNC, " bit[4..7] = ? : 0x%02x\n", (iValue >> 4) & 0x0f);
1429 DBG(DBG_FNC, "\n0x0164");
1430 DBG(DBG_FNC, " bit[0..6] = ?: 0x%02x\n", iValue & 0x3f);
1431 DBG(DBG_FNC, " bit[7] = ? : 0x%02x\n", (iValue >> 7) & 1);
1436 DBG(DBG_FNC, "\n0x0168 Buttons status : 0x%02x\n", iValue);
1437 DBG(DBG_FNC, " bit[0] = button 1 : 0x%02x\n", iValue & 1);
1438 DBG(DBG_FNC, " bit[1] = button 2 : 0x%02x\n", (iValue >> 1) & 1);
1439 DBG(DBG_FNC, " bit[2] = button 4 : 0x%02x\n", (iValue >> 2) & 1);
1440 DBG(DBG_FNC, " bit[3] = button 3 : 0x%02x\n", (iValue >> 3) & 1);
1441 DBG(DBG_FNC, " bit[4] = button ? : 0x%02x\n", (iValue >> 4) & 1);
1442 DBG(DBG_FNC, " bit[5] = button ? : 0x%02x\n", (iValue >> 5) & 1);
1443 DBG(DBG_FNC, " bit[6] = ? : 0x%02x\n", (iValue >> 6) & 1);
1444 DBG(DBG_FNC, " bit[7] = ? : 0x%02x\n", (iValue >> 7) & 1);
1447 DBG(DBG_FNC, "\n0x0169", iValue);
1448 DBG(DBG_FNC, " bit[0] = ? : 0x%02x\n", iValue & 1);
1449 DBG(DBG_FNC, " bit[1] = tma attached? : 0x%02x\n", (iValue >> 1) & 1);
1450 DBG(DBG_FNC, " bit[2..7] = ? : 0x%02x\n", (iValue >> 2) & 0x3f);
1453 DBG(DBG_FNC, "\n0x016a Buttons status 2: 0x%02x\n", iValue);
1454 DBG(DBG_FNC, " bit[0] = button 1 : 0x%02x\n", iValue & 1);
1455 DBG(DBG_FNC, " bit[1] = button 2 : 0x%02x\n", (iValue >> 1) & 1);
1456 DBG(DBG_FNC, " bit[2] = button 4 : 0x%02x\n", (iValue >> 2) & 1);
1457 DBG(DBG_FNC, " bit[3] = button 3 : 0x%02x\n", (iValue >> 3) & 1);
1458 DBG(DBG_FNC, " bit[4] = button ? : 0x%02x\n", (iValue >> 4) & 1);
1459 DBG(DBG_FNC, " bit[5] = button ? : 0x%02x\n", (iValue >> 5) & 1);
1460 DBG(DBG_FNC, " bit[6] = ? : 0x%02x\n", (iValue >> 6) & 1);
1461 DBG(DBG_FNC, " bit[7] = ? : 0x%02x\n", (iValue >> 7) & 1);
1466 DBG(DBG_FNC, "\n0x016f");
1467 DBG(DBG_FNC, " bit[0..5] = ? : 0x%02x\n", iValue & 0x3f);
1468 DBG(DBG_FNC, " bit[6] = is lamp at home? : 0x%02x\n", (iValue >> 6) & 1);
1469 DBG(DBG_FNC, " bit[7] = ?: %02x\n", (iValue >> 7) & 1);
1474 DBG(DBG_FNC, "\n0x0187");
1475 DBG(DBG_FNC, " bit[0..3] = ? : 0x%02x\n", iValue & 0xf);
1476 DBG(DBG_FNC, " bit[4..7] = mclkioc : 0x%02x\n", (iValue >> 4) & 0xf);
1481 DBG(DBG_FNC, "\n0x019e");
1482 DBG(DBG_FNC, " binary threshold low : 0x%04x\n", (iValue >> 8) + ((iValue << 8) & 0xff00));
1485 DBG(DBG_FNC, "\n0x01a0");
1486 DBG(DBG_FNC, " binary threshold high : 0x%04x\n", (iValue >> 8) + ((iValue << 8) & 0xff00));
1491 DBG(DBG_FNC, "\n0x01b4");
1492 DBG(DBG_FNC, " bit[00..13] = Ptr to red gamma table (table_size * 0) : 0x%04x\n", (iValue & 0x3fff));
1493 DBG(DBG_FNC, " bit[14..15] = ? : 0x%02x\n", (iValue >> 14) & 3);
1496 DBG(DBG_FNC, "0x01b6");
1497 DBG(DBG_FNC, " bit[00..13] = Ptr to green gamma table (table_size * 1) : 0x%04x\n", (iValue & 0x3fff));
1498 DBG(DBG_FNC, " bit[14..15] = ? : 0x%02x\n", (iValue >> 14) & 3);
1501 DBG(DBG_FNC, "0x01b8");
1502 DBG(DBG_FNC, " bit[00..13] = Ptr to blue gamma table (table_size * 2) : 0x%04x\n", (iValue & 0x3fff));
1503 DBG(DBG_FNC, " bit[14..15] = ? : 0x%02x\n", (iValue >> 14) & 3);
1506 DBG(DBG_FNC, "\n0x01ba");
1507 DBG(DBG_FNC, " ? : 0x%02x\n", iValue);
1510 DBG(DBG_FNC, "0x01bb");
1511 DBG(DBG_FNC, " ? : 0x%04x\n", iValue + ((data_lsb_get(&buffer[0x1bf], 1) & 1) << 16));
1514 DBG(DBG_FNC, "0x01bd");
1515 DBG(DBG_FNC, " ? : 0x%04x\n", iValue + (((data_lsb_get(&buffer[0x1bf], 1) >> 1) & 3) << 16));
1518 DBG(DBG_FNC, "0x01c0");
1519 DBG(DBG_FNC, " bit[0..19] = ? : 0x%06x\n", iValue & 0xfffff);
1522 DBG(DBG_FNC, "\n0x01bf");
1523 DBG(DBG_FNC, " bit[3..4] = ? : 0x%02x\n", (iValue >> 3) & 3);
1524 DBG(DBG_FNC, " bit[5..7] = ? : 0x%02x\n", (iValue >> 5) & 7);
1527 DBG(DBG_FNC, "\n0x01c2");
1528 DBG(DBG_FNC, " bit[4..23] = ? : 0x%06x\n", ((iValue >> 8) & 0xffff) + (((iValue >> 4) & 0xf) << 16));
1531 DBG(DBG_FNC, "0x01c5");
1532 DBG(DBG_FNC, " bit[00..19] = ? : 0x%06x\n", iValue & 0xfffff);
1533 DBG(DBG_FNC, " bit[20..23] = ? : 0x%02x\n", (iValue >> 20) & 0xf);
1538 DBG(DBG_FNC, "\n0x01cf");
1539 DBG(DBG_FNC, " bit[0] = ? : 0x%02x\n", iValue & 1);
1540 DBG(DBG_FNC, " bit[1] = shading base (0 = 0x4000|1= 0x2000) : 0x%02x\n", (iValue >> 1) & 1);
1541 DBG(DBG_FNC, " bit[2] = white shading correction : 0x%02x\n", (iValue >> 2) & 1);
1542 DBG(DBG_FNC, " bit[3] = black shading correction : 0x%02x\n", (iValue >> 3) & 1);
1543 DBG(DBG_FNC, " bit[4..5] = 0x%02x : ", (iValue >> 4) & 3);
1546 case 0: DBG(DBG_FNC, "8 bits per channel"); break;
1547 case 1: DBG(DBG_FNC, "12 bits per channel"); break;
1548 case 2: DBG(DBG_FNC, "16 bits per channel"); break;
1549 case 3: DBG(DBG_FNC, "lineart mode"); break;
1551 DBG(DBG_FNC, "\n");
1552 DBG(DBG_FNC, " bit[6] = samplerate: 0x%02x ", (iValue >> 6) & 1);
1554 DBG(DBG_FNC, "PIXEL_RATE\n");
1555 else DBG(DBG_FNC, "LINE_RATE\n");
1556 DBG(DBG_FNC, " bit[7] = ? : 0x%02x\n", (iValue >> 7) & 1);
1559 DBG(DBG_FNC, "\n0x01d0");
1560 DBG(DBG_FNC, " bit[0] = 0x%02x\n", iValue & 1);
1561 DBG(DBG_FNC, " bit[1] = 0x%02x\n", (iValue >> 1) & 1);
1562 DBG(DBG_FNC, " bit[2..3] = gamma table size : 0x%02x ", (iValue >> 2) & 3);
1565 case 0: DBG(DBG_FNC, "bit[0] + 0x100") ;break;
1566 case 1: DBG(DBG_FNC, "bit[0] + 0x400") ;break;
1567 case 2: DBG(DBG_FNC, "bit[0] + 0x1000") ;break;
1569 DBG(DBG_FNC, "\n");
1570 DBG(DBG_FNC, " bit[4..5] = ? : 0x%02x\n", (iValue >> 4) & 3);
1571 DBG(DBG_FNC, " bit[6] = use gamma tables? : 0x%02x\n", (iValue >> 6) & 1);
1572 DBG(DBG_FNC, " bit[7] = ? : 0x%02x\n", (iValue >> 7) & 1);
1576 DBG(DBG_FNC, "----------------------------------------------------\n\n");