format_stop = UART_FORMAT_STOP_1;
}
-#ifdef VIZZINI_IWA
- if (format_size == UART_FORMAT_SIZE_8) {
- acm->iwa = format_parity;
- if (portdata->iwa != UART_FORMAT_PARITY_NONE) {
- format_size = UART_FORMAT_SIZE_9;
- format_parity = UART_FORMAT_PARITY_NONE;
- }
- } else {
- acm->iwa = UART_FORMAT_PARITY_NONE;
- }
-#endif
vizzini_set_reg(acm, block, UART_FORMAT, format_size | format_parity | format_stop);
if (cflag & CRTSCTS) {
if (acm->trans9) {
/* Turn on wide mode if we're 9-bit transparent. */
vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 1);
-#ifdef VIZZINI_IWA
- } else if (acm->iwa != UART_FORMAT_PARITY_NONE) {
- vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 1);
-#endif
} else if (!acm->preciseflags) {
/* Turn off wide mode unless we have precise flags. */
vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 0);
int preciseflags; /* USB: wide mode, TTY: flags per character */
int trans9; /* USB: wide mode, serial 9N1 */
-#ifdef VIZZINI_IWA
- int iwa;
-#endif
-
};
#define CDC_DATA_INTERFACE_TYPE 0x0a