Lines Matching +full:0 +full:xf000

9 ** This Driver currently only supports the console (port 0) on the MUX.
31 #define MUX_OFFSET 0x800
32 #define MUX_LINE_OFFSET 0x80
37 #define IO_DATA_REG_OFFSET 0x3c
38 #define IO_DCOUNT_REG_OFFSET 0x40
40 #define MUX_EOFIFO(status) ((status & 0xF000) == 0xF000)
41 #define MUX_STATUS(status) ((status & 0xF000) == 0x8000)
42 #define MUX_BREAK(status) ((status & 0xF000) == 0x2000)
57 .minor = 0,
86 if(dev->id.hversion == 0x15) in get_mux_port_count()
89 status = pdc_iodc_read(&bytecnt, dev->hpa.start, 0, iodc_data, 32); in get_mux_port_count()
93 return ((((iodc_data)[4] & 0xf0) >> 4) * 8) + 8; in get_mux_port_count()
102 * should return TIOCSER_TEMT, otherwise return 0.
106 return UART_GET_FIFO_CNT(port) ? 0 : TIOCSER_TEMT; in mux_tx_empty()
229 if (uart_handle_sysrq_char(port, data & 0xffu)) in mux_read()
232 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
249 return 0; in mux_startup()
260 mux_ports[port->line].enabled = 0; in mux_shutdown()
310 return 0; in mux_request_port()
342 return 0; in mux_verify_port()
355 for(i = 0; i < port_cnt; ++i) { in mux_poll()
371 while(UART_GET_FIFO_CNT(&mux_ports[0].port)) in mux_console_write()
376 UART_PUT_CHAR(&mux_ports[0].port, '\r'); in mux_console_write()
378 UART_PUT_CHAR(&mux_ports[0].port, *s++); in mux_console_write()
385 return 0; in mux_console_setup()
394 .index = 0,
425 * Deterimine if the Serial Mux should claim this chip (return 0)
449 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe()
451 port->iobase = 0; in mux_probe()
457 port->irq = 0; in mux_probe()
458 port->uartclk = 0; in mux_probe()
471 return 0; in mux_probe()
479 /* Find Port 0 for this card in the mux_ports list. */ in mux_remove()
480 for(i = 0; i < port_cnt; ++i) { in mux_remove()
487 for(j = 0; j < port_count; ++j, ++i) { in mux_remove()
507 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x15, 0x0000D }, /* All K-class */
508 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x44, 0x0000D }, /* E35, E45, and E55 */
509 { 0, }
513 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0000D },
514 { 0, }
544 if(port_cnt > 0) { in mux_init()
546 timer_setup(&mux_timer, mux_poll, 0); in mux_init()
554 return 0; in mux_init()
565 if(port_cnt > 0) { in mux_exit()