Re: [PATCHv3 2/2] serial: Add driver for the Altera UART

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Chou
Date: Wednesday, March 24, 2010 - 5:54 pm

On 03/25/2010 12:24 AM, Tobias Klauser wrote:
Maybe we can add pointers to functions for the DCD/DTR in the struct 
altera_uart_platform_uart. Then board config file can define them if 
they implement these pins, NULL/0 otherwise.

struct altera_uart_platform_uart {
...
     int (*getppdcd)(...);    /* get DCD status */
...

};


static unsigned int altera_uart_get_mctrl(struct uart_port *port)
{
...
     if (port->getppdcd)
         sigs |= (port->getppdcd(...)) ? TIOCM_CD : 0);


- Thomas

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv3 0/2] serial: Drivers for Altera UARTs, Tobias Klauser, (Fri Mar 5, 9:52 am)
[PATCHv3 1/2] serial: Add driver for the Altera JTAG UART, Tobias Klauser, (Fri Mar 5, 9:52 am)
[PATCHv3 2/2] serial: Add driver for the Altera UART, Tobias Klauser, (Fri Mar 5, 9:52 am)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Andrew Morton, (Tue Mar 23, 2:54 pm)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Tobias Klauser, (Tue Mar 23, 11:47 pm)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Andrew Morton, (Wed Mar 24, 4:05 am)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Tobias Klauser, (Wed Mar 24, 9:24 am)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Thomas Chou, (Wed Mar 24, 5:54 pm)
Re: [PATCHv3 2/2] serial: Add driver for the Altera UART, Tobias Klauser, (Mon Mar 29, 6:29 am)