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()
189 port->x_char = 0; in mux_write()
206 } while(--count > 0); in mux_write()
248 if (uart_handle_sysrq_char(port, data & 0xffu)) in mux_read()
251 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
268 return 0; in mux_startup()
279 mux_ports[port->line].enabled = 0; in mux_shutdown()
329 return 0; in mux_request_port()
361 return 0; in mux_verify_port()
374 for(i = 0; i < port_cnt; ++i) { in mux_poll()
390 while(UART_GET_FIFO_CNT(&mux_ports[0].port)) in mux_console_write()
395 UART_PUT_CHAR(&mux_ports[0].port, '\r'); in mux_console_write()
397 UART_PUT_CHAR(&mux_ports[0].port, *s++); in mux_console_write()
404 return 0; in mux_console_setup()
413 .index = 0,
444 * Deterimine if the Serial Mux should claim this chip (return 0)
468 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe()
470 port->iobase = 0; in mux_probe()
476 port->irq = 0; in mux_probe()
477 port->uartclk = 0; in mux_probe()
496 return 0; in mux_probe()
504 /* Find Port 0 for this card in the mux_ports list. */ in mux_remove()
505 for(i = 0; i < port_cnt; ++i) { in mux_remove()
512 for(j = 0; j < port_count; ++j, ++i) { in mux_remove()
521 return 0; in mux_remove()
533 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x15, 0x0000D }, /* All K-class */
534 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x44, 0x0000D }, /* E35, E45, and E55 */
535 { 0, }
539 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0000D },
540 { 0, }
570 if(port_cnt > 0) { in mux_init()
572 timer_setup(&mux_timer, mux_poll, 0); in mux_init()
580 return 0; in mux_init()
591 if(port_cnt > 0) { in mux_exit()