summaryrefslogtreecommitdiff
path: root/backend/plustek-pp_io.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 17:00:58 +0200
commitd087d778ffb62e2713cb848540bcc819470365bd (patch)
treed69692a274dd1c7d0672e6bb7155a0fc106f9d49 /backend/plustek-pp_io.c
parentc8bd2513ecba169cff44c09c8058c36987357b18 (diff)
parent3759ce55ba79b8d3b9d8ed247a252273ee7dade3 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/plustek-pp_io.c')
-rw-r--r--backend/plustek-pp_io.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/backend/plustek-pp_io.c b/backend/plustek-pp_io.c
index ba68599..d6e99b9 100644
--- a/backend/plustek-pp_io.c
+++ b/backend/plustek-pp_io.c
@@ -110,7 +110,7 @@ static Byte ioDataFromSPPFast( pScanData ps )
/* read low nibble */
tmp = _INB_STATUS( ps );
-
+
/* combine with low nibble */
bData |= (tmp >> 4);
@@ -141,7 +141,7 @@ static Byte ioDataFromSPPMiddle( pScanData ps )
/* read low nibble */
_INB_STATUS( ps );
tmp = _INB_STATUS( ps );
-
+
/* combine with low nibble */
bData |= (tmp >> 4);
@@ -174,7 +174,7 @@ static UChar ioDataFromSPPSlow( pScanData ps )
_INB_STATUS( ps );
_INB_STATUS( ps );
tmp = _INB_STATUS( ps );
-
+
/* combine with low nibble */
bData |= (tmp >> 4);
@@ -209,7 +209,7 @@ static UChar ioDataFromSPPSlowest( pScanData ps )
_INB_STATUS( ps );
_INB_STATUS( ps );
tmp = _INB_STATUS( ps );
-
+
/* combine with low nibble */
bData |= (tmp >> 4);
@@ -309,9 +309,9 @@ static Bool fnBiDirRead( pScanData ps, pUChar pBuffer, ULong ulSize )
case 0:
for( ; ulSize; ulSize--, pBuffer++ ) {
- _OUTB_CTRL( ps, start );
+ _OUTB_CTRL( ps, start );
*pBuffer = _INB_DATA( ps );
- _OUTB_CTRL( ps, end );
+ _OUTB_CTRL( ps, end );
}
break;
@@ -327,7 +327,7 @@ static Bool fnBiDirRead( pScanData ps, pUChar pBuffer, ULong ulSize )
_DO_UDELAY( 1 );
}
break;
-
+
default:
_DO_UDELAY( 2 );
for(; ulSize; ulSize--, pBuffer++ ) {
@@ -466,7 +466,7 @@ static Bool ioP98OpenScanPath( pScanData ps )
#endif
} else {
ioP98003EstablishScannerConnection( ps, dw );
- }
+ }
_INB_STATUS( ps );
tmp = _INB_STATUS( ps );
@@ -524,7 +524,7 @@ static void ioCloseScanPath( pScanData ps )
* (ASIC 9800x only)
*/
static int ioP98ReadWriteTest( pScanData ps )
-{
+{
UChar tmp;
ULong ul;
pUChar buffer;
@@ -539,10 +539,10 @@ static int ioP98ReadWriteTest( pScanData ps )
/* prepare content */
for( ul = 0; ul < _MEMTEST_SIZE; ul++ )
- buffer[ul] = (UChar)ul;
+ buffer[ul] = (UChar)ul;
ps->OpenScanPath(ps);
-
+
/* avoid switching to Lamp0, when previously scanned in transp./neg mode */
tmp = ps->bLastLampStatus + _SCAN_BYTEMODE;
IODataToRegister( ps, ps->RegScanControl, tmp );
@@ -595,7 +595,7 @@ static void ioSPPWrite( pScanData ps, pUChar pBuffer, ULong size )
DBG( DBG_IO , "Moving %u bytes to scanner, IODELAY = %u...\n",
size, ps->IO.delay );
switch( ps->IO.delay ) {
-
+
case 0:
for (; size; size--, pBuffer++) {
_OUTB_DATA( ps, *pBuffer );
@@ -603,7 +603,7 @@ static void ioSPPWrite( pScanData ps, pUChar pBuffer, ULong size )
_OUTB_CTRL( ps, _CTRL_END_DATAWRITE );
}
break;
-
+
case 1:
case 2:
for (; size; size--, pBuffer++) {
@@ -647,7 +647,7 @@ static void ioEnterReadMode( pScanData ps )
ps->IO.bOldControlValue = _INB_CTRL( ps );
/* ask ASIC to enter read mode */
- IORegisterToScanner( ps, ps->RegReadDataMode );
+ IORegisterToScanner( ps, ps->RegReadDataMode );
}
/************************ exported functions *********************************/
@@ -750,7 +750,7 @@ _LOC void IODataToScanner( pScanData ps, Byte bValue )
/* notify asic there is data */
_OUTB_CTRL( ps, _CTRL_START_DATAWRITE );
_DO_UDELAY( deltime );
-
+
/* end write cycle */
_OUTB_CTRL( ps, _CTRL_END_DATAWRITE );
_DO_UDELAY( deltime-1 );
@@ -767,7 +767,7 @@ _LOC void IODataToRegister( pScanData ps, Byte bReg, Byte bData )
#endif
/* specify register */
- IORegisterToScanner( ps, bReg );
+ IORegisterToScanner( ps, bReg );
/* then write the content */
IODataToScanner( ps, bData );