Changeset 27045a82 in rtems for c


Ignore:
Timestamp:
Jul 9, 1998, 6:38:18 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8b2492f
Parents:
677a503
Message:

Changed static to NS16550_STATIC to make all routines and data global
to ease debugging.

Location:
c/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libchip/serial/ns16550.c

    r677a503 r27045a82  
    7575 *  Console Device Driver Entry Points
    7676 */
    77 static boolean ns16550_probe(int minor)
     77NS16550_STATIC boolean ns16550_probe(int minor)
    7878{
    7979  /*
     
    8484}
    8585
    86 static void ns16550_init(int minor)
     86NS16550_STATIC void ns16550_init(int minor)
    8787{
    8888  unsigned32              pNS16550;
     
    145145}
    146146
    147 static int ns16550_open(
     147NS16550_STATIC int ns16550_open(
    148148  int      major,
    149149  int      minor,
     
    162162}
    163163
    164 static int ns16550_close(
     164NS16550_STATIC int ns16550_close(
    165165  int      major,
    166166  int      minor,
     
    181181 *  ns16550_write_polled
    182182 */
    183 static void ns16550_write_polled(
     183NS16550_STATIC void ns16550_write_polled(
    184184  int   minor,
    185185  char  cChar
     
    226226 *  ns16550_assert_RTS
    227227 */
    228 static int ns16550_assert_RTS(int minor)
     228NS16550_STATIC int ns16550_assert_RTS(int minor)
    229229{
    230230  unsigned32              pNS16550;
     
    251251 *  ns16550_negate_RTS
    252252 */
    253 static int ns16550_negate_RTS(int minor)
     253NS16550_STATIC int ns16550_negate_RTS(int minor)
    254254{
    255255  unsigned32              pNS16550;
     
    280280 *  ns16550_assert_DTR
    281281 */
    282 static int ns16550_assert_DTR(int minor)
     282NS16550_STATIC int ns16550_assert_DTR(int minor)
    283283{
    284284  unsigned32              pNS16550;
     
    305305 *  ns16550_negate_DTR
    306306 */
    307 static int ns16550_negate_DTR(int minor)
     307NS16550_STATIC int ns16550_negate_DTR(int minor)
    308308{
    309309  unsigned32              pNS16550;
     
    340340 */
    341341
    342 static void ns16550_process(
     342NS16550_STATIC void ns16550_process(
    343343        int             minor
    344344)
     
    407407}
    408408
    409 static rtems_isr ns16550_isr(
     409NS16550_STATIC rtems_isr ns16550_isr(
    410410  rtems_vector_number vector
    411411)
     
    423423 *  ns16550_flush
    424424 */
    425 static int ns16550_flush(int major, int minor, void *arg)
     425NS16550_STATIC int ns16550_flush(int major, int minor, void *arg)
    426426{
    427427  while(!Ring_buffer_Is_empty(&Console_Port_Data[minor].TxBuffer)) {
     
    452452 */
    453453
    454 static void ns16550_enable_interrupts(
     454NS16550_STATIC void ns16550_enable_interrupts(
    455455  int minor
    456456)
     
    471471}
    472472
    473 static void ns16550_initialize_interrupts(int minor)
     473NS16550_STATIC void ns16550_initialize_interrupts(int minor)
    474474{
    475475  ns16550_init(minor);
     
    490490 *
    491491 */
    492 static int ns16550_write_support_int(
     492NS16550_STATIC int ns16550_write_support_int(
    493493  int   minor,
    494494  const char *buf,
     
    555555 *
    556556 */
    557 static int ns16550_write_support_polled(
     557NS16550_STATIC int ns16550_write_support_polled(
    558558  int         minor,
    559559  const char *buf,
     
    586586 */
    587587
    588 static int ns16550_inbyte_nonblocking_polled(
     588NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
    589589  int minor
    590590)
  • c/src/lib/libchip/serial/ns16550_p.h

    r677a503 r27045a82  
    2222extern "C" {
    2323#endif
     24
     25/*
     26 *  Define NS16550_STATIC to nothing while debugging so the entry points
     27 *  will show up in the symbol table.
     28 */
     29
     30#define NS16550_STATIC
     31
     32/* #define NS16550_STATIC static */
    2433
    2534/*
     
    154163 */
    155164
    156 static boolean ns16550_probe(int minor);
    157 
    158 static void ns16550_init(int minor);
    159 
    160 static int ns16550_open(
     165NS16550_STATIC boolean ns16550_probe(int minor);
     166
     167NS16550_STATIC void ns16550_init(int minor);
     168
     169NS16550_STATIC int ns16550_open(
    161170  int major,
    162171  int minor,
     
    164173);
    165174
    166 static int ns16550_close(
     175NS16550_STATIC int ns16550_close(
    167176  int major,
    168177  int minor,
     
    170179);
    171180
    172 static void ns16550_write_polled(
     181NS16550_STATIC void ns16550_write_polled(
    173182  int   minor,
    174183  char  cChar
    175184);
    176185
    177 static int ns16550_assert_RTS(
    178   int minor
    179 );
    180 
    181 static int ns16550_negate_RTS(
    182   int minor
    183 );
    184 
    185 static int ns16550_assert_DTR(
    186   int minor
    187 );
    188 
    189 static int ns16550_negate_DTR(
    190   int minor
    191 );
    192 
    193 static void ns16550_initialize_interrupts(int minor);
    194 
    195 static int ns16550_flush(int major, int minor, void *arg);
    196 
    197 static int ns16550_write_support_int(
     186NS16550_STATIC int ns16550_assert_RTS(
     187  int minor
     188);
     189
     190NS16550_STATIC int ns16550_negate_RTS(
     191  int minor
     192);
     193
     194NS16550_STATIC int ns16550_assert_DTR(
     195  int minor
     196);
     197
     198NS16550_STATIC int ns16550_negate_DTR(
     199  int minor
     200);
     201
     202NS16550_STATIC void ns16550_initialize_interrupts(int minor);
     203
     204NS16550_STATIC int ns16550_flush(int major, int minor, void *arg);
     205
     206NS16550_STATIC int ns16550_write_support_int(
    198207  int   minor,
    199208  const char *buf,
     
    201210);
    202211
    203 static int ns16550_write_support_polled(
     212NS16550_STATIC int ns16550_write_support_polled(
    204213  int   minor,
    205214  const char *buf,
     
    207216  );
    208217
    209 static int ns16550_inbyte_nonblocking_polled(
     218NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
    210219  int minor
    211220);
  • c/src/libchip/serial/ns16550.c

    r677a503 r27045a82  
    7575 *  Console Device Driver Entry Points
    7676 */
    77 static boolean ns16550_probe(int minor)
     77NS16550_STATIC boolean ns16550_probe(int minor)
    7878{
    7979  /*
     
    8484}
    8585
    86 static void ns16550_init(int minor)
     86NS16550_STATIC void ns16550_init(int minor)
    8787{
    8888  unsigned32              pNS16550;
     
    145145}
    146146
    147 static int ns16550_open(
     147NS16550_STATIC int ns16550_open(
    148148  int      major,
    149149  int      minor,
     
    162162}
    163163
    164 static int ns16550_close(
     164NS16550_STATIC int ns16550_close(
    165165  int      major,
    166166  int      minor,
     
    181181 *  ns16550_write_polled
    182182 */
    183 static void ns16550_write_polled(
     183NS16550_STATIC void ns16550_write_polled(
    184184  int   minor,
    185185  char  cChar
     
    226226 *  ns16550_assert_RTS
    227227 */
    228 static int ns16550_assert_RTS(int minor)
     228NS16550_STATIC int ns16550_assert_RTS(int minor)
    229229{
    230230  unsigned32              pNS16550;
     
    251251 *  ns16550_negate_RTS
    252252 */
    253 static int ns16550_negate_RTS(int minor)
     253NS16550_STATIC int ns16550_negate_RTS(int minor)
    254254{
    255255  unsigned32              pNS16550;
     
    280280 *  ns16550_assert_DTR
    281281 */
    282 static int ns16550_assert_DTR(int minor)
     282NS16550_STATIC int ns16550_assert_DTR(int minor)
    283283{
    284284  unsigned32              pNS16550;
     
    305305 *  ns16550_negate_DTR
    306306 */
    307 static int ns16550_negate_DTR(int minor)
     307NS16550_STATIC int ns16550_negate_DTR(int minor)
    308308{
    309309  unsigned32              pNS16550;
     
    340340 */
    341341
    342 static void ns16550_process(
     342NS16550_STATIC void ns16550_process(
    343343        int             minor
    344344)
     
    407407}
    408408
    409 static rtems_isr ns16550_isr(
     409NS16550_STATIC rtems_isr ns16550_isr(
    410410  rtems_vector_number vector
    411411)
     
    423423 *  ns16550_flush
    424424 */
    425 static int ns16550_flush(int major, int minor, void *arg)
     425NS16550_STATIC int ns16550_flush(int major, int minor, void *arg)
    426426{
    427427  while(!Ring_buffer_Is_empty(&Console_Port_Data[minor].TxBuffer)) {
     
    452452 */
    453453
    454 static void ns16550_enable_interrupts(
     454NS16550_STATIC void ns16550_enable_interrupts(
    455455  int minor
    456456)
     
    471471}
    472472
    473 static void ns16550_initialize_interrupts(int minor)
     473NS16550_STATIC void ns16550_initialize_interrupts(int minor)
    474474{
    475475  ns16550_init(minor);
     
    490490 *
    491491 */
    492 static int ns16550_write_support_int(
     492NS16550_STATIC int ns16550_write_support_int(
    493493  int   minor,
    494494  const char *buf,
     
    555555 *
    556556 */
    557 static int ns16550_write_support_polled(
     557NS16550_STATIC int ns16550_write_support_polled(
    558558  int         minor,
    559559  const char *buf,
     
    586586 */
    587587
    588 static int ns16550_inbyte_nonblocking_polled(
     588NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
    589589  int minor
    590590)
  • c/src/libchip/serial/ns16550_p.h

    r677a503 r27045a82  
    2222extern "C" {
    2323#endif
     24
     25/*
     26 *  Define NS16550_STATIC to nothing while debugging so the entry points
     27 *  will show up in the symbol table.
     28 */
     29
     30#define NS16550_STATIC
     31
     32/* #define NS16550_STATIC static */
    2433
    2534/*
     
    154163 */
    155164
    156 static boolean ns16550_probe(int minor);
    157 
    158 static void ns16550_init(int minor);
    159 
    160 static int ns16550_open(
     165NS16550_STATIC boolean ns16550_probe(int minor);
     166
     167NS16550_STATIC void ns16550_init(int minor);
     168
     169NS16550_STATIC int ns16550_open(
    161170  int major,
    162171  int minor,
     
    164173);
    165174
    166 static int ns16550_close(
     175NS16550_STATIC int ns16550_close(
    167176  int major,
    168177  int minor,
     
    170179);
    171180
    172 static void ns16550_write_polled(
     181NS16550_STATIC void ns16550_write_polled(
    173182  int   minor,
    174183  char  cChar
    175184);
    176185
    177 static int ns16550_assert_RTS(
    178   int minor
    179 );
    180 
    181 static int ns16550_negate_RTS(
    182   int minor
    183 );
    184 
    185 static int ns16550_assert_DTR(
    186   int minor
    187 );
    188 
    189 static int ns16550_negate_DTR(
    190   int minor
    191 );
    192 
    193 static void ns16550_initialize_interrupts(int minor);
    194 
    195 static int ns16550_flush(int major, int minor, void *arg);
    196 
    197 static int ns16550_write_support_int(
     186NS16550_STATIC int ns16550_assert_RTS(
     187  int minor
     188);
     189
     190NS16550_STATIC int ns16550_negate_RTS(
     191  int minor
     192);
     193
     194NS16550_STATIC int ns16550_assert_DTR(
     195  int minor
     196);
     197
     198NS16550_STATIC int ns16550_negate_DTR(
     199  int minor
     200);
     201
     202NS16550_STATIC void ns16550_initialize_interrupts(int minor);
     203
     204NS16550_STATIC int ns16550_flush(int major, int minor, void *arg);
     205
     206NS16550_STATIC int ns16550_write_support_int(
    198207  int   minor,
    199208  const char *buf,
     
    201210);
    202211
    203 static int ns16550_write_support_polled(
     212NS16550_STATIC int ns16550_write_support_polled(
    204213  int   minor,
    205214  const char *buf,
     
    207216  );
    208217
    209 static int ns16550_inbyte_nonblocking_polled(
     218NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
    210219  int minor
    211220);
Note: See TracChangeset for help on using the changeset viewer.