/dports/devel/tinygo/tinygo-0.14.1/lib/CMSIS/CMSIS/DAP/Firmware/Examples/XMC4200/ |
H A D | UART.c | 510 XMC_UART_CH_Stop(uart->uart); in UART_PowerControl() 604 XMC_USIC_CH_TXFIFO_Flush(uart->uart); in UART_Send() 726 …XMC_USIC_CH_RXFIFO_Configure(uart->uart,uart->info->rx_fifo_pointer,(XMC_USIC_CH_FIFO_SIZE_t)uart-… in UART_Receive() 730 …XMC_USIC_CH_RXFIFO_Configure(uart->uart,uart->info->rx_fifo_pointer,(XMC_USIC_CH_FIFO_SIZE_t)uart-… in UART_Receive() 1070 XMC_UART_CH_Start(uart->uart); in UART_Control() 1107 XMC_UART_CH_Start(uart->uart); in UART_Control() 1131 XMC_UART_CH_Start(uart->uart); in UART_Control() 1305 …uart->info->xfer.rx_buf[uart->info->xfer.rx_cnt++] =(uint8_t)XMC_UART_CH_GetReceivedData(uart->uar… in UART_IRQHandler() 1320 …_RXFIFO_Configure(uart->uart,uart->info->rx_fifo_pointer,(XMC_USIC_CH_FIFO_SIZE_t)uart->rx_fifo_si… in UART_IRQHandler() 1335 XMC_UART_CH_Transmit(uart->uart,uart->info->xfer.tx_buf[uart->info->xfer.tx_cnt++]); in UART_IRQHandler() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/sound/drivers/ |
H A D | serial-u16550.c | 180 outb(uart->tx_buff[buff_out], uart->base + UART_TX); in snd_uart16550_buffer_output() 230 uart->rmidi->name, uart->base); in snd_uart16550_io_loop() 256 if (uart->irq < 0 && uart->buff_in_count > 0) in snd_uart16550_io_loop() 303 uart = from_timer(uart, t, buffer_timer); in snd_uart16550_buffer_timer() 385 uart->old_divisor_lsb = inb(uart->base + UART_DLL); in snd_uart16550_do_open() 386 uart->old_divisor_msb = inb(uart->base + UART_DLM); in snd_uart16550_do_open() 626 uart->rmidi->name, uart->base); in snd_uart16550_output_byte() 703 snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); in snd_uart16550_output_write() 715 uart->prev_status[uart->prev_out] = midi_byte; in snd_uart16550_output_write() 758 free_irq(uart->irq, uart); in snd_uart16550_free() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/sound/drivers/ |
H A D | serial-u16550.c | 180 outb(uart->tx_buff[buff_out], uart->base + UART_TX); in snd_uart16550_buffer_output() 230 uart->rmidi->name, uart->base); in snd_uart16550_io_loop() 256 if (uart->irq < 0 && uart->buff_in_count > 0) in snd_uart16550_io_loop() 303 uart = from_timer(uart, t, buffer_timer); in snd_uart16550_buffer_timer() 385 uart->old_divisor_lsb = inb(uart->base + UART_DLL); in snd_uart16550_do_open() 386 uart->old_divisor_msb = inb(uart->base + UART_DLM); in snd_uart16550_do_open() 626 uart->rmidi->name, uart->base); in snd_uart16550_output_byte() 703 snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); in snd_uart16550_output_write() 715 uart->prev_status[uart->prev_out] = midi_byte; in snd_uart16550_output_write() 758 free_irq(uart->irq, uart); in snd_uart16550_free() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/sound/drivers/ |
H A D | serial-u16550.c | 180 outb(uart->tx_buff[buff_out], uart->base + UART_TX); in snd_uart16550_buffer_output() 230 uart->rmidi->name, uart->base); in snd_uart16550_io_loop() 256 if (uart->irq < 0 && uart->buff_in_count > 0) in snd_uart16550_io_loop() 303 uart = from_timer(uart, t, buffer_timer); in snd_uart16550_buffer_timer() 385 uart->old_divisor_lsb = inb(uart->base + UART_DLL); in snd_uart16550_do_open() 386 uart->old_divisor_msb = inb(uart->base + UART_DLM); in snd_uart16550_do_open() 626 uart->rmidi->name, uart->base); in snd_uart16550_output_byte() 703 snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); in snd_uart16550_output_write() 715 uart->prev_status[uart->prev_out] = midi_byte; in snd_uart16550_output_write() 758 free_irq(uart->irq, uart); in snd_uart16550_free() [all …]
|
/dports/games/libretro-mu/Mu-ff746b8/src/pxa260/ |
H A D | pxa260_UART.c | 80 …pxa260icInt(uart->ic, uart->irq, !(uart->MCR & UART_MCR_LOOP) && (uart->MCR & UART_MCR_OUT2) && ra… in pxa260uartPrvIrq() 278 uart->IER ^= t; in pxa260uartPrvMemAccessF() 305 uart->FCR = val; in pxa260uartPrvMemAccessF() 350 if(!pxa260uartPrvFifoUsed(&uart->RX)) uart->LSR &=~ UART_LSR_DR; in pxa260uartPrvMemAccessF() 415 uart->ic = ic; in pxa260uartInit() 416 uart->irq = irq; in pxa260uartInit() 439 pxa260uartPrvPutchar(uart, uart->transmitShift); in pxa260uartProcess() 447 uart->transmitShift = pxa260uartPrvFifoGet(&uart->TX); in pxa260uartProcess() 461 uart->transmitShift = uart->transmitHolding; in pxa260uartProcess() 482 if(uart->LSR & UART_LSR_DR) uart->LSR |= UART_LSR_OE; in pxa260uartProcess() [all …]
|
/dports/emulators/jzintv/jzintv-20200712-src/src/ecs/ |
H A D | ecs.c | 44 if (uart->f_tape_i) in ecs_uart_close_files() 215 if (!uart->f_printer_o && uart->fn_printer) in ecs_uart_start_printing() 217 uart->f_printer_o = fopen(uart->fn_printer, "a"); in ecs_uart_start_printing() 274 if (uart->state == ECS_UART_CLOD && uart->f_tape_i) in ecs_uart_rd() 339 if (uart->state == ECS_UART_PRINT && uart->f_printer_o) in ecs_uart_wr() 352 if (uart->cfg[1] == 0x1D || uart->cfg[1] == 0x39) in ecs_uart_wr() 402 uart->cfg[0] == 0x11 && uart->cfg[1] == 0x23) in ecs_uart_wr() 411 if (uart->state == ECS_UART_PRINT && uart->f_printer_o) in ecs_uart_wr() 417 if (uart->state == ECS_UART_CSAV && uart->f_tape_o) in ecs_uart_wr() 445 if (uart->state == ECS_UART_PRINT && uart->f_printer_o) in ecs_uart_wr() [all …]
|
/dports/emulators/x49gp/x49gp/x49gp-code/ |
H A D | s3c2410_uart.c | 86 if (NULL == uart->uart[0].regs) { in s3c2410_uart_data_init() 92 if (NULL == uart->uart[1].regs) { in s3c2410_uart_data_init() 95 free(uart->uart[0].regs); in s3c2410_uart_data_init() 99 if (NULL == uart->uart[2].regs) { in s3c2410_uart_data_init() 102 free(uart->uart[0].regs); in s3c2410_uart_data_init() 103 free(uart->uart[1].regs); in s3c2410_uart_data_init() 109 uart->uart[0].int_err = SUB_INT_ERR0; in s3c2410_uart_data_init() 110 uart->uart[0].int_txd = SUB_INT_TXD0; in s3c2410_uart_data_init() 440 uart->uart[0].x49gp = x49gp; in x49gp_s3c2410_uart_init() 441 uart->uart[1].x49gp = x49gp; in x49gp_s3c2410_uart_init() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/hw/char/ |
H A D | grlib_apbuart.c | 98 return uart->current < uart->len; in uart_data_to_read() 110 ret = uart->buffer[uart->current++]; in uart_pop() 112 if (uart->current >= uart->len) { in uart_pop() 132 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 133 uart->len += length; in uart_add_to_fifo() 138 UART *uart = opaque; in grlib_apbuart_can_receive() local 145 UART *uart = opaque; in grlib_apbuart_receive() local 258 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 271 uart->control = 0; in grlib_apbuart_reset() 273 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/hw/char/ |
H A D | grlib_apbuart.c | 99 return uart->current < uart->len; in uart_data_to_read() 111 ret = uart->buffer[uart->current++]; in uart_pop() 113 if (uart->current >= uart->len) { in uart_pop() 133 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 134 uart->len += length; in uart_add_to_fifo() 139 UART *uart = opaque; in grlib_apbuart_can_receive() local 146 UART *uart = opaque; in grlib_apbuart_receive() local 259 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 272 uart->control = 0; in grlib_apbuart_reset() 274 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/hw/char/ |
H A D | grlib_apbuart.c | 99 return uart->current < uart->len; in uart_data_to_read() 111 ret = uart->buffer[uart->current++]; in uart_pop() 113 if (uart->current >= uart->len) { in uart_pop() 133 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 134 uart->len += length; in uart_add_to_fifo() 139 UART *uart = opaque; in grlib_apbuart_can_receive() local 146 UART *uart = opaque; in grlib_apbuart_receive() local 259 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 272 uart->control = 0; in grlib_apbuart_reset() 274 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/hw/char/ |
H A D | grlib_apbuart.c | 95 return uart->current < uart->len; in uart_data_to_read() 107 ret = uart->buffer[uart->current++]; in uart_pop() 109 if (uart->current >= uart->len) { in uart_pop() 129 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 130 uart->len += length; in uart_add_to_fifo() 135 UART *uart = opaque; in grlib_apbuart_can_receive() local 142 UART *uart = opaque; in grlib_apbuart_receive() local 254 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_init() 269 uart->control = 0; in grlib_apbuart_reset() 271 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/hw/char/ |
H A D | grlib_apbuart.c | 98 return uart->current < uart->len; in uart_data_to_read() 110 ret = uart->buffer[uart->current++]; in uart_pop() 112 if (uart->current >= uart->len) { in uart_pop() 132 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 133 uart->len += length; in uart_add_to_fifo() 138 UART *uart = opaque; in grlib_apbuart_can_receive() local 145 UART *uart = opaque; in grlib_apbuart_receive() local 258 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 271 uart->control = 0; in grlib_apbuart_reset() 273 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/hw/char/ |
H A D | grlib_apbuart.c | 98 return uart->current < uart->len; in uart_data_to_read() 110 ret = uart->buffer[uart->current++]; in uart_pop() 112 if (uart->current >= uart->len) { in uart_pop() 132 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 133 uart->len += length; in uart_add_to_fifo() 138 UART *uart = opaque; in grlib_apbuart_can_receive() local 145 UART *uart = opaque; in grlib_apbuart_receive() local 258 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 271 uart->control = 0; in grlib_apbuart_reset() 273 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/hw/char/ |
H A D | grlib_apbuart.c | 98 return uart->current < uart->len; in uart_data_to_read() 110 ret = uart->buffer[uart->current++]; in uart_pop() 112 if (uart->current >= uart->len) { in uart_pop() 132 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 133 uart->len += length; in uart_add_to_fifo() 138 UART *uart = opaque; in grlib_apbuart_can_receive() local 145 UART *uart = opaque; in grlib_apbuart_receive() local 258 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 271 uart->control = 0; in grlib_apbuart_reset() 273 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/hw/char/ |
H A D | grlib_apbuart.c | 98 return uart->current < uart->len; in uart_data_to_read() 110 ret = uart->buffer[uart->current++]; in uart_pop() 112 if (uart->current >= uart->len) { in uart_pop() 132 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 133 uart->len += length; in uart_add_to_fifo() 138 UART *uart = opaque; in grlib_apbuart_can_receive() local 145 UART *uart = opaque; in grlib_apbuart_receive() local 258 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 271 uart->control = 0; in grlib_apbuart_reset() 273 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/hw/char/ |
H A D | grlib_apbuart.c | 99 return uart->current < uart->len; in uart_data_to_read() 111 ret = uart->buffer[uart->current++]; in uart_pop() 113 if (uart->current >= uart->len) { in uart_pop() 133 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo() 134 uart->len += length; in uart_add_to_fifo() 139 UART *uart = opaque; in grlib_apbuart_can_receive() local 146 UART *uart = opaque; in grlib_apbuart_receive() local 259 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize() 272 uart->control = 0; in grlib_apbuart_reset() 274 uart->len = 0; in grlib_apbuart_reset() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/net/ipxe/ipxe-2265a65/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/roms/ipxe/src/core/ |
H A D | uart.c | 48 void uart_transmit ( struct uart *uart, uint8_t data ) { in uart_transmit() argument 54 lsr = uart_read ( uart, UART_LSR ); in uart_transmit() 61 uart_write ( uart, UART_THR, data ); in uart_transmit() 69 void uart_flush ( struct uart *uart ) { in uart_flush() argument 75 uart_read ( uart, UART_RBR ); in uart_flush() 88 int uart_exists ( struct uart *uart ) { in uart_exists() argument 91 if ( ! uart->base ) in uart_exists() 113 int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ) { in uart_init() argument 125 uart->lcr = lcr; in uart_init() 141 uart_write ( uart, UART_IER, 0 ); in uart_init() [all …]
|
/dports/comms/multimon-ng/multimon-ng-1.1.0/ |
H A D | uart.c | 64 memset(&s->l2.uart, 0, sizeof(s->l2.uart)); in uart_init() 65 s->l2.uart.rxptr = s->l2.uart.rxbuf; in uart_init() 82 if ((s->l2.uart.rxptr - s->l2.uart.rxbuf) >= 1) in uart_rxbit() 83 disp_packet(s, s->l2.uart.rxbuf, s->l2.uart.rxptr - s->l2.uart.rxbuf); in uart_rxbit() 84 s->l2.uart.rxptr = s->l2.uart.rxbuf; in uart_rxbit() 93 if (s->l2.uart.rxptr >= s->l2.uart.rxbuf+sizeof(s->l2.uart.rxbuf)) { in uart_rxbit() 94 s->l2.uart.rxstate = 0; in uart_rxbit() 95 disp_packet(s, s->l2.uart.rxbuf, s->l2.uart.rxptr - s->l2.uart.rxbuf); in uart_rxbit() 100 s->l2.uart.rxstate = 0; in uart_rxbit() 104 *s->l2.uart.rxptr++ = s->l2.uart.rxbitbuf >> 1; in uart_rxbit() [all …]
|