Switched to shared default probe routine.

This commit is contained in:
Joel Sherrill
1998-07-09 23:30:32 +00:00
parent 693b5b8850
commit 064b9be457
2 changed files with 6 additions and 28 deletions

View File

@@ -27,6 +27,7 @@
#include <libchip/serial.h> #include <libchip/serial.h>
#include "ns16550_p.h" #include "ns16550_p.h"
#include "sersupp.h"
/* /*
* Flow control is only supported when using interrupts * Flow control is only supported when using interrupts
@@ -45,7 +46,7 @@ console_flow ns16550_flow_DTRCTS =
console_fns ns16550_fns = console_fns ns16550_fns =
{ {
ns16550_probe, /* deviceProbe */ libchip_serial_default_probe, /* deviceProbe */
ns16550_open, /* deviceFirstOpen */ ns16550_open, /* deviceFirstOpen */
ns16550_flush, /* deviceLastClose */ ns16550_flush, /* deviceLastClose */
NULL, /* deviceRead */ NULL, /* deviceRead */
@@ -58,7 +59,7 @@ console_fns ns16550_fns =
console_fns ns16550_fns_polled = console_fns ns16550_fns_polled =
{ {
ns16550_probe, /* deviceProbe */ libchip_serial_default_probe, /* deviceProbe */
ns16550_open, /* deviceFirstOpen */ ns16550_open, /* deviceFirstOpen */
ns16550_close, /* deviceLastClose */ ns16550_close, /* deviceLastClose */
ns16550_inbyte_nonblocking_polled, /* deviceRead */ ns16550_inbyte_nonblocking_polled, /* deviceRead */
@@ -71,18 +72,6 @@ console_fns ns16550_fns_polled =
extern void set_vector( rtems_isr_entry, rtems_vector_number, int ); extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
/*
* Console Device Driver Entry Points
*/
NS16550_STATIC boolean ns16550_probe(int minor)
{
/*
* If the configuration dependent probe has located the device then
* assume it is there
*/
return(TRUE);
}
NS16550_STATIC void ns16550_init(int minor) NS16550_STATIC void ns16550_init(int minor)
{ {
unsigned32 pNS16550; unsigned32 pNS16550;

View File

@@ -27,6 +27,7 @@
#include <libchip/serial.h> #include <libchip/serial.h>
#include "ns16550_p.h" #include "ns16550_p.h"
#include "sersupp.h"
/* /*
* Flow control is only supported when using interrupts * Flow control is only supported when using interrupts
@@ -45,7 +46,7 @@ console_flow ns16550_flow_DTRCTS =
console_fns ns16550_fns = console_fns ns16550_fns =
{ {
ns16550_probe, /* deviceProbe */ libchip_serial_default_probe, /* deviceProbe */
ns16550_open, /* deviceFirstOpen */ ns16550_open, /* deviceFirstOpen */
ns16550_flush, /* deviceLastClose */ ns16550_flush, /* deviceLastClose */
NULL, /* deviceRead */ NULL, /* deviceRead */
@@ -58,7 +59,7 @@ console_fns ns16550_fns =
console_fns ns16550_fns_polled = console_fns ns16550_fns_polled =
{ {
ns16550_probe, /* deviceProbe */ libchip_serial_default_probe, /* deviceProbe */
ns16550_open, /* deviceFirstOpen */ ns16550_open, /* deviceFirstOpen */
ns16550_close, /* deviceLastClose */ ns16550_close, /* deviceLastClose */
ns16550_inbyte_nonblocking_polled, /* deviceRead */ ns16550_inbyte_nonblocking_polled, /* deviceRead */
@@ -71,18 +72,6 @@ console_fns ns16550_fns_polled =
extern void set_vector( rtems_isr_entry, rtems_vector_number, int ); extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
/*
* Console Device Driver Entry Points
*/
NS16550_STATIC boolean ns16550_probe(int minor)
{
/*
* If the configuration dependent probe has located the device then
* assume it is there
*/
return(TRUE);
}
NS16550_STATIC void ns16550_init(int minor) NS16550_STATIC void ns16550_init(int minor)
{ {
unsigned32 pNS16550; unsigned32 pNS16550;