Lines Matching refs:baseio
288 static void mxser_enable_must_enchance_mode(unsigned long baseio) in mxser_enable_must_enchance_mode() argument
293 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_enchance_mode()
294 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_enchance_mode()
296 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode()
299 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode()
300 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_enchance_mode()
304 static void mxser_disable_must_enchance_mode(unsigned long baseio) in mxser_disable_must_enchance_mode() argument
309 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_enchance_mode()
310 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_enchance_mode()
312 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode()
315 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode()
316 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_enchance_mode()
320 static void mxser_set_must_xon1_value(unsigned long baseio, u8 value) in mxser_set_must_xon1_value() argument
325 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xon1_value()
326 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_xon1_value()
328 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value()
332 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value()
333 outb(value, baseio + MOXA_MUST_XON1_REGISTER); in mxser_set_must_xon1_value()
334 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xon1_value()
337 static void mxser_set_must_xoff1_value(unsigned long baseio, u8 value) in mxser_set_must_xoff1_value() argument
342 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xoff1_value()
343 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_xoff1_value()
345 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value()
349 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value()
350 outb(value, baseio + MOXA_MUST_XOFF1_REGISTER); in mxser_set_must_xoff1_value()
351 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_xoff1_value()
373 static void mxser_set_must_enum_value(unsigned long baseio, u8 value) in mxser_set_must_enum_value() argument
378 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_enum_value()
379 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_set_must_enum_value()
381 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_enum_value()
385 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_enum_value()
386 outb(value, baseio + MOXA_MUST_ENUM_REGISTER); in mxser_set_must_enum_value()
387 outb(oldlcr, baseio + UART_LCR); in mxser_set_must_enum_value()
391 static void mxser_get_must_hardware_id(unsigned long baseio, u8 *pId) in mxser_get_must_hardware_id() argument
396 oldlcr = inb(baseio + UART_LCR); in mxser_get_must_hardware_id()
397 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_get_must_hardware_id()
399 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_get_must_hardware_id()
403 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_get_must_hardware_id()
404 *pId = inb(baseio + MOXA_MUST_HWID_REGISTER); in mxser_get_must_hardware_id()
405 outb(oldlcr, baseio + UART_LCR); in mxser_get_must_hardware_id()
409 static void SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL(unsigned long baseio) in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL() argument
414 oldlcr = inb(baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
415 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
417 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
420 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
421 outb(oldlcr, baseio + UART_LCR); in SET_MOXA_MUST_NO_SOFTWARE_FLOW_CONTROL()
424 static void mxser_enable_must_tx_software_flow_control(unsigned long baseio) in mxser_enable_must_tx_software_flow_control() argument
429 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
430 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
432 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_tx_software_flow_control()
436 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_tx_software_flow_control()
437 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_tx_software_flow_control()
440 static void mxser_disable_must_tx_software_flow_control(unsigned long baseio) in mxser_disable_must_tx_software_flow_control() argument
445 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
446 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
448 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_tx_software_flow_control()
451 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_tx_software_flow_control()
452 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_tx_software_flow_control()
455 static void mxser_enable_must_rx_software_flow_control(unsigned long baseio) in mxser_enable_must_rx_software_flow_control() argument
460 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
461 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
463 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_rx_software_flow_control()
467 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_rx_software_flow_control()
468 outb(oldlcr, baseio + UART_LCR); in mxser_enable_must_rx_software_flow_control()
471 static void mxser_disable_must_rx_software_flow_control(unsigned long baseio) in mxser_disable_must_rx_software_flow_control() argument
476 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()
477 outb(MOXA_MUST_ENTER_ENCHANCE, baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()
479 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_rx_software_flow_control()
482 outb(efr, baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_rx_software_flow_control()
483 outb(oldlcr, baseio + UART_LCR); in mxser_disable_must_rx_software_flow_control()