Changeset 6ec438e in rtems for c/src/libchip/serial/ns16550_p.h


Ignore:
Timestamp:
Oct 7, 2014, 6:29:16 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
2fd3e65f
Parents:
d5cc923f
git-author:
Sebastian Huber <sebastian.huber@…> (10/07/14 06:29:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/07/14 14:35:20)
Message:

libchip/serial: Add alternative NS16550 driver

Use the Termios device API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/serial/ns16550_p.h

    rd5cc923f r6ec438e  
    132132#define SP_LSR_EFIFO  0x80
    133133
    134 typedef struct {
    135   uint8_t ucModemCtrl;
    136   int transmitFifoChars;
    137 } ns16550_context;
    138 
    139 /*
    140  * Driver functions
    141  */
    142 
    143 void ns16550_init(int minor);
    144 
    145 int ns16550_open(
    146   int major,
    147   int minor,
    148   void  * arg
    149 );
    150 
    151 int ns16550_close(
    152   int major,
    153   int minor,
    154   void  * arg
    155 );
    156 
    157 void ns16550_write_polled(
    158   int   minor,
    159   char  cChar
    160 );
    161 
    162 NS16550_STATIC int ns16550_assert_RTS(
    163   int minor
    164 );
    165 
    166 NS16550_STATIC int ns16550_negate_RTS(
    167   int minor
    168 );
    169 
    170 NS16550_STATIC int ns16550_assert_DTR(
    171   int minor
    172 );
    173 
    174 NS16550_STATIC int ns16550_negate_DTR(
    175   int minor
    176 );
    177 
    178 NS16550_STATIC void ns16550_initialize_interrupts(int minor);
    179 
    180 NS16550_STATIC void ns16550_cleanup_interrupts(int minor);
    181 
    182 ssize_t ns16550_write_support_int(
    183   int   minor,
    184   const char *buf,
    185   size_t len
    186 );
    187 
    188 ssize_t ns16550_write_support_polled(
    189   int   minor,
    190   const char *buf,
    191   size_t len
    192   );
    193 
    194 int ns16550_inbyte_nonblocking_polled(
    195   int minor
    196 );
    197 
    198 NS16550_STATIC void ns16550_enable_interrupts(
    199   console_tbl *c,
    200   int         mask
    201 );
    202 
    203 int ns16550_set_attributes(
    204   int                   minor,
    205   const struct termios *t
    206 );
    207 
    208 void ns16550_isr(void *arg);
    209 
    210134#ifdef __cplusplus
    211135}
Note: See TracChangeset for help on using the changeset viewer.