kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for hs2p backend
rodzic
e0bc8e9ba7
commit
9a6ef1ceb0
|
@ -609,7 +609,7 @@ sense_handler (int __sane_unused__ scsi_fd, u_char * sense_buffer, void *sd)
|
||||||
case 0x2C02: /* Invalid combination of windows specified */
|
case 0x2C02: /* Invalid combination of windows specified */
|
||||||
status = SANE_STATUS_INVAL;
|
status = SANE_STATUS_INVAL;
|
||||||
break;
|
break;
|
||||||
case 0x3700: /* (Rounded paramter) */
|
case 0x3700: /* (Rounded parameter) */
|
||||||
status = SANE_STATUS_INVAL;
|
status = SANE_STATUS_INVAL;
|
||||||
break;
|
break;
|
||||||
case 0x3900: /* (Saving parameters not supported) */
|
case 0x3900: /* (Saving parameters not supported) */
|
||||||
|
@ -928,7 +928,7 @@ mode_sense (int fd, MP * buf, SANE_Byte page_code)
|
||||||
cmd.dbd &= ~(1 << 3); /* Disable Block Description (bit3) is set to 0 */
|
cmd.dbd &= ~(1 << 3); /* Disable Block Description (bit3) is set to 0 */
|
||||||
cmd.pc = (page_code & 0x3F); /* bits 5-0 */
|
cmd.pc = (page_code & 0x3F); /* bits 5-0 */
|
||||||
cmd.pc &= ~(0x03 << 6); /* unset PC Field (bits7-6)
|
cmd.pc &= ~(0x03 << 6); /* unset PC Field (bits7-6)
|
||||||
* 00 Curent Value is the only effective value
|
* 00 Current Value is the only effective value
|
||||||
* 01 Changeable Value
|
* 01 Changeable Value
|
||||||
* 10 Default Value
|
* 10 Default Value
|
||||||
* 11 Saved Value */
|
* 11 Saved Value */
|
||||||
|
@ -1014,7 +1014,7 @@ set_window (int fd, SWD * swd)
|
||||||
DBG (DBG_error, "set_window: error with memcpy\n");
|
DBG (DBG_error, "set_window: error with memcpy\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set Window Data Header: 0-5:reserved; 6-7:Window Descriptor Lenght=640 */
|
/* Set Window Data Header: 0-5:reserved; 6-7:Window Descriptor Length=640 */
|
||||||
wdl = sizeof (win.swd) - sizeof (win.swd.hdr);
|
wdl = sizeof (win.swd) - sizeof (win.swd.hdr);
|
||||||
_lto2b (wdl, &win.swd.hdr.len[0]);
|
_lto2b (wdl, &win.swd.hdr.len[0]);
|
||||||
DBG (DBG_info,
|
DBG (DBG_info,
|
||||||
|
|
|
@ -623,7 +623,7 @@ typedef struct mode_page_service
|
||||||
typedef struct scsi_mode_sense_cmd
|
typedef struct scsi_mode_sense_cmd
|
||||||
{
|
{
|
||||||
SANE_Byte opcode; /* 1AH */
|
SANE_Byte opcode; /* 1AH */
|
||||||
SANE_Byte dbd; /* 7-5:LUN; 4:Reserved; 3:DBD (Disable Block Desciption) set to "0"; 2-0:Reserved */
|
SANE_Byte dbd; /* 7-5:LUN; 4:Reserved; 3:DBD (Disable Block Description) set to "0"; 2-0:Reserved */
|
||||||
SANE_Byte pc; /* 7-6:PC; 5-0:Page Code
|
SANE_Byte pc; /* 7-6:PC; 5-0:Page Code
|
||||||
* PC field indicates the type of data to be returned (bit7,bit6):
|
* PC field indicates the type of data to be returned (bit7,bit6):
|
||||||
* 00 Current Value (THIS IS THE ONLY VALUE WHICH WORKS!)
|
* 00 Current Value (THIS IS THE ONLY VALUE WHICH WORKS!)
|
||||||
|
@ -919,7 +919,7 @@ struct hs2p_window_data
|
||||||
* 0: 0=>output from bit0 of each byte; 1=>output from bit7
|
* 0: 0=>output from bit0 of each byte; 1=>output from bit7
|
||||||
* 1: 0=>output from LSB; 1=>output from MSB
|
* 1: 0=>output from LSB; 1=>output from MSB
|
||||||
* 2: 0=>unpacked 4 bits gray; 1=>Packed 4 bits gray
|
* 2: 0=>unpacked 4 bits gray; 1=>Packed 4 bits gray
|
||||||
* 3: 1=>Bits arrangment from LSB in grayscale; 0=>from MSB
|
* 3: 1=>Bits arrangement from LSB in grayscale; 0=>from MSB
|
||||||
* 4-6: reserved
|
* 4-6: reserved
|
||||||
* 7: 1=>Mirroring; 0=>Normal output
|
* 7: 1=>Mirroring; 0=>Normal output
|
||||||
* 8-15: reserved
|
* 8-15: reserved
|
||||||
|
|
|
@ -51,10 +51,10 @@
|
||||||
. . . init_options : initialize SANE_OPTIONS array
|
. . . init_options : initialize SANE_OPTIONS array
|
||||||
. . - sane_set_io_mode : set blocking-mode
|
. . - sane_set_io_mode : set blocking-mode
|
||||||
. . - sane_get_select_fd : get scanner-fd
|
. . - sane_get_select_fd : get scanner-fd
|
||||||
. . - sane_get_option_descriptor() : get option informations
|
. . - sane_get_option_descriptor() : get option information
|
||||||
. . - sane_control_option() : change option values
|
. . - sane_control_option() : change option values
|
||||||
. .
|
. .
|
||||||
. . - sane_start() : start image aquisition
|
. . - sane_start() : start image acquisition
|
||||||
. . - sane_get_parameters() : returns actual scan-parameters
|
. . - sane_get_parameters() : returns actual scan-parameters
|
||||||
. . - sane_read() : read image-data (from pipe)
|
. . - sane_read() : read image-data (from pipe)
|
||||||
. .
|
. .
|
||||||
|
@ -1535,7 +1535,7 @@ do_cancel (HS2P_Scanner * s)
|
||||||
object_position (s->fd,
|
object_position (s->fd,
|
||||||
OBJECT_POSITION_UNLOAD)) != SANE_STATUS_GOOD)
|
OBJECT_POSITION_UNLOAD)) != SANE_STATUS_GOOD)
|
||||||
{
|
{
|
||||||
DBG (DBG_error, "cancel: OBJECT POSTITION failed\n");
|
DBG (DBG_error, "cancel: OBJECT POSITION failed\n");
|
||||||
}
|
}
|
||||||
sanei_scsi_req_flush_all ();
|
sanei_scsi_req_flush_all ();
|
||||||
release_unit (s->fd);
|
release_unit (s->fd);
|
||||||
|
@ -1588,7 +1588,7 @@ sane_init (SANE_Int * version_code,
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* avision.c: search for all supported scanners on all scsi busses & channels */
|
/* avision.c: search for all supported scanners on all scsi buses & channels */
|
||||||
for (hw = &HS2P_Device_List[0]; hw->mfg != NULL; hw++)
|
for (hw = &HS2P_Device_List[0]; hw->mfg != NULL; hw++)
|
||||||
{
|
{
|
||||||
sanei_scsi_find_devices (hw->mfg, /*vendor */
|
sanei_scsi_find_devices (hw->mfg, /*vendor */
|
||||||
|
@ -3252,7 +3252,7 @@ pad:
|
||||||
/*
|
/*
|
||||||
* If status != SANE_STATUS_GOOD, then sense_handler() has already
|
* If status != SANE_STATUS_GOOD, then sense_handler() has already
|
||||||
* been called and the sanei_* functions have already gotten the
|
* been called and the sanei_* functions have already gotten the
|
||||||
* sense data buffer (which apparently clears the error conditionn)
|
* sense data buffer (which apparently clears the error condition)
|
||||||
* so the following doesn't work:
|
* so the following doesn't work:
|
||||||
get_sense_data (s->fd, &(s->hw->sense_data));
|
get_sense_data (s->fd, &(s->hw->sense_data));
|
||||||
print_sense_data (&(s->hw->sense_data));
|
print_sense_data (&(s->hw->sense_data));
|
||||||
|
|
|
@ -342,7 +342,7 @@ static const HS2P_Paper paper_sizes[] = { /* Name, Width, Height in mm */
|
||||||
{"Full", 0.0, 0.0},
|
{"Full", 0.0, 0.0},
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PORTRAIT "Portait"
|
#define PORTRAIT "Portrait"
|
||||||
#define LANDSCAPE "Landscape"
|
#define LANDSCAPE "Landscape"
|
||||||
static SANE_String_Const orientation_list[] = {
|
static SANE_String_Const orientation_list[] = {
|
||||||
PORTRAIT,
|
PORTRAIT,
|
||||||
|
|
Ładowanie…
Reference in New Issue