Lines Matching refs:baseio
291 static void mxser_enable_must_enchance_mode(unsigned long baseio) in mxser_enable_must_enchance_mode() argument
296 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_enchance_mode()
297 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_enchance_mode()
299 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode()
302 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode()
303 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_enchance_mode()
307 static void mxser_disable_must_enchance_mode(unsigned long baseio) in mxser_disable_must_enchance_mode() argument
312 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_enchance_mode()
313 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_enchance_mode()
315 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode()
318 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode()
319 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_enchance_mode()
323 static void mxser_set_must_xon1_value(unsigned long baseio, u8 value) in mxser_set_must_xon1_value() argument
328 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xon1_value()
329 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_xon1_value()
331 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value()
335 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value()
336 outb(value, baseio + MOXA_MUST_XON1_REGISTER); in mxser_set_must_xon1_value()
337 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xon1_value()
340 static void mxser_set_must_xoff1_value(unsigned long baseio, u8 value) in mxser_set_must_xoff1_value() argument
345 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xoff1_value()
346 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_xoff1_value()
348 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value()
352 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value()
353 outb(value, baseio + MOXA_MUST_XOFF1_REGISTER); in mxser_set_must_xoff1_value()
354 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xoff1_value()
376 static void mxser_set_must_enum_value(unsigned long baseio, u8 value) in mxser_set_must_enum_value() argument
381 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_enum_value()
382 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_enum_value()
384 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_enum_value()
388 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_enum_value()
389 outb(value, baseio + MOXA_MUST_ENUM_REGISTER); in mxser_set_must_enum_value()
390 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_enum_value()
394 static void mxser_get_must_hardware_id(unsigned long baseio, u8 *pId) in mxser_get_must_hardware_id() argument
399 oldlcr = inb(baseio + UART_LCR); in mxser_get_must_hardware_id()
400 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_get_must_hardware_id()
402 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_get_must_hardware_id()
406 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_get_must_hardware_id()
407 *pId = inb(baseio + MOXA_MUST_HWID_REGISTER); in mxser_get_must_hardware_id()
408 outb(oldlcr, baseio + UART_LCR); in mxser_get_must_hardware_id()
412 static void SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL(unsigned long baseio) in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL() argument
417 oldlcr = inb(baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
418 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
420 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
423 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
424 outb(oldlcr, baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
427 static void mxser_enable_must_tx_software_flow_control(unsigned long baseio) in mxser_enable_must_tx_software_flow_control() argument
432 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
433 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
435 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_tx_software_flow_control()
439 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_tx_software_flow_control()
440 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
443 static void mxser_disable_must_tx_software_flow_control(unsigned long baseio) in mxser_disable_must_tx_software_flow_control() argument
448 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
449 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
451 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_tx_software_flow_control()
454 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_tx_software_flow_control()
455 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
458 static void mxser_enable_must_rx_software_flow_control(unsigned long baseio) in mxser_enable_must_rx_software_flow_control() argument
463 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
464 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
466 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_rx_software_flow_control()
470 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_rx_software_flow_control()
471 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
474 static void mxser_disable_must_rx_software_flow_control(unsigned long baseio) in mxser_disable_must_rx_software_flow_control() argument
479 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()
480 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()
482 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_rx_software_flow_control()
485 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_rx_software_flow_control()
486 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()