search for: serial_port

Displaying 12 results from an estimated 12 matches for "serial_port".

2013 Aug 28
1
[PATCH] Fix compilation on ARM
...hanged, 3 insertions(+), 3 deletions(-) diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c index 9b34f92..b297ed4 100644 --- a/xen/drivers/char/exynos4210-uart.c +++ b/xen/drivers/char/exynos4210-uart.c @@ -221,7 +221,7 @@ static void exynos4210_uart_resume(struct serial_port *port) BUG(); // XXX } -static unsigned int exynos4210_uart_tx_ready(struct serial_port *port) +static int exynos4210_uart_tx_ready(struct serial_port *port) { struct exynos4210_uart *uart = port->uart; diff --git a/xen/drivers/char/omap-uart.c b/xen/drivers/char/omap-uart.c inde...
2012 May 24
0
[PATCH RFC 2/9] console: prepare for non-COMn port support
...if ( q != NULL ) --- a/xen/drivers/char/serial.c +++ b/xen/drivers/char/serial.c @@ -22,9 +22,11 @@ size_param("serial_tx_buffer", serial_tx #define mask_serial_rxbuf_idx(_i) ((_i)&(serial_rxbufsz-1)) #define mask_serial_txbuf_idx(_i) ((_i)&(serial_txbufsz-1)) -static struct serial_port com[2] = { - { .rx_lock = SPIN_LOCK_UNLOCKED, .tx_lock = SPIN_LOCK_UNLOCKED }, - { .rx_lock = SPIN_LOCK_UNLOCKED, .tx_lock = SPIN_LOCK_UNLOCKED } +static struct serial_port com[SERHND_IDX + 1] = { + [0 ... SERHND_IDX] = { + .rx_lock = SPIN_LOCK_UNLOCKED, + .tx_lock = SPIN_LO...
2013 Sep 13
10
[PATCH RFC 0/8] xen/arm: initial cubieboard2 support.
See http://www.gossamer-threads.com/lists/xen/devel/297170 for some information on how to get this going. I''ve rebased and addressed the review comments. As before several of the patches are not to be applied because they can be done better using infrastructure from Julien''s "Allow Xen to boot with a raw Device Tree" patch. They are included for completeness. With
2016 Oct 09
3
Enumeration of ISA serial ports inconsistent between Linux and Syslinux
...th default BIOS settings) have a different order stored in BIOS: --- # hexdump -s 0x400 -n 8 /dev/mem 0000400 02f8 03f8 0000 0000 --- Best regards, Oliver --- /syslinux/core/include/bios.h --- #define SERIAL_BASE 0x0400 /* Base address for 4 serial ports */ ... static inline uint16_t get_serial_port(uint16_t port) { /* Magic array in BIOS memory, contains four entries */ const uint16_t * const serial_ports = (const uint16_t *)SERIAL_BASE; /* * If port > 3 then the port is simply the I/O base address */ if (port > 3) return port; /*...
2013 Aug 13
13
[PATCH v8 8/5] Add UART support and arch timer initialization for OMAP5
Since OMAP UART has a few distinct features than common 8250 UART, I re-implemented its driver rather than porting it based on ns16550.c. There are mainly two big differences between the implementations. First, OMAP UART introduces the concept of register access mode, which divides the register map into seperated space. Switching the access mode is then necessary when configuring it. Second, THRE
2010 Feb 24
4
Re: [Xen-changelog] [xen-3.4-testing] x86: Generalise BUGFRAME_dump mechanism to allow polled UART irq to
...t; --- a/xen/drivers/char/ns16550.c        Wed Feb 24 11:10:09 2010 +0000 > +++ b/xen/drivers/char/ns16550.c        Wed Feb 24 11:11:05 2010 +0000 > @@ -144,11 +144,13 @@ static void ns16550_interrupt( >     } >  } > > -static void ns16550_poll(void *data) > -{ > -    struct serial_port *port = data; > -    struct ns16550 *uart = port->uart; > -    struct cpu_user_regs *regs = guest_cpu_user_regs(); > +/* Safe: ns16550_poll() runs in softirq context so not reentrant on a given CPU. */ > +static DEFINE_PER_CPU(struct serial_port *, poll_port); > + > +static voi...
2013 Sep 20
20
[PATCH v3 0/7] support for cubieboard2 / sunxi processors
See http://www.gossamer-threads.com/lists/xen/devel/297170 for some information on how to get this going. I''ve rebased and addressed the review comments. With this rebase I''ve picked up some patches from Julien which were required to do things properly, so the gic v7 and device blacklisting patches have been changed to use the proper mechanisms. Previously I was able to boot
2016 Oct 09
0
Enumeration of ISA serial ports inconsistent between Linux and Syslinux
...> --- > # hexdump -s 0x400 -n 8 /dev/mem > 0000400 02f8 03f8 0000 0000 > --- > > > Best regards, > > Oliver > > --- /syslinux/core/include/bios.h --- > #define SERIAL_BASE 0x0400 /* Base address for 4 serial ports */ > ... > static inline uint16_t get_serial_port(uint16_t port) > { > /* Magic array in BIOS memory, contains four entries */ > const uint16_t * const serial_ports = (const uint16_t *)SERIAL_BASE; > > /* > * If port > 3 then the port is simply the I/O base address > */ > if (port > 3)...
2011 Oct 12
1
[PATCH] ns16550: fix poll handling regression
...period of time (i.e. when no new output is generated), it must not be used in this way indefinitely. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -157,15 +157,18 @@ static void __ns16550_poll(struct cpu_us { struct serial_port *port = this_cpu(poll_port); struct ns16550 *uart = port->uart; - char lsr; + unsigned char lsr, mask = LSR_DR | LSR_THRE; if ( uart->intr_works ) return; /* Interrupts work - no more polling */ - while ( (lsr = ns_read_reg(uart, LSR)) & (LSR_DR|LSR_THRE) )...
2013 Aug 27
1
[PATCH] drivers/char: pl011: Enable receive timeout interrupt
...rivers/char/pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/pl011.c b/xen/drivers/char/pl011.c index 0e1eb64..e4bd702 100644 --- a/xen/drivers/char/pl011.c +++ b/xen/drivers/char/pl011.c @@ -140,7 +140,7 @@ static void __init pl011_init_postirq(struct serial_port *port) pl011_write(uart, ICR, OEI|BEI|PEI|FEI); /* Unmask interrupts */ - pl011_write(uart, IMSC, OEI|BEI|PEI|FEI|TXI|RXI); + pl011_write(uart, IMSC, RTI|OEI|BEI|PEI|FEI|TXI|RXI); } static void pl011_suspend(struct serial_port *port) -- 1.7.10.4
2012 Sep 11
2
[PATCH RFC 5/8] ns16550: MMIO adjustments
...rt->remapped_io_base += uart->io_base & ~PAGE_MASK; +#else uart->remapped_io_base = (char *)ioremap(uart->io_base, 8); +#endif + } ns16550_setup_preirq(uart); @@ -350,6 +366,9 @@ static void ns16550_resume(struct serial static void __init ns16550_endboot(struct serial_port *port) { struct ns16550 *uart = port->uart; + + if ( uart->remapped_io_base ) + return; if ( ioports_deny_access(dom0, uart->io_base, uart->io_base + 7) != 0 ) BUG(); } @@ -453,7 +472,7 @@ pci_uart_config (struct ns16550 *uart, i uint32_t bar, len;...
2013 Nov 18
12
[Patch v3 0/4] Xen stack trace printing improvements
This series consists of improvements to Xen''s ability to print traces of its own stack, and specifically for the stack overflow case to be able to use frame pointers in a debug build. I have dev tested the series in debug and non-debug cases, with and without memory guards, and I believe that all the stack traces look correct (given the available information Xen has), and that the