diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-06-22 11:07:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-06-22 11:07:51 +0000 |
commit | 4cd4c5a092693b414afcc18104c929599d65d531 (patch) | |
tree | ddfd0bd26404ccfd7dc1950a338eb2a64bfe11aa /c/src/lib/libchip/serial/z85c30.c | |
parent | Corrected spacing (diff) | |
download | rtems-4cd4c5a092693b414afcc18104c929599d65d531.tar.bz2 |
Moved set and get Register and Data type defininitions to serial.h.
Cleaned up spacing.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libchip/serial/z85c30.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/c/src/lib/libchip/serial/z85c30.c b/c/src/lib/libchip/serial/z85c30.c index 247ecf4406..e9fc83c462 100644 --- a/c/src/lib/libchip/serial/z85c30.c +++ b/c/src/lib/libchip/serial/z85c30.c @@ -84,15 +84,6 @@ console_fns z85c30_fns_polled = extern void set_vector( rtems_isr_entry, rtems_vector_number, int ); -/* - * Types for get and set register routines - */ - -typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register); -typedef void (*setRegister_f)( - unsigned32 port, unsigned8 reg, unsigned8 value); -typedef unsigned8 (*getData_f)(unsigned32 port); -typedef void (*setData_f)(unsigned32 port, unsigned8 value); /* @@ -299,7 +290,7 @@ static void z85c30_write_polled( static boolean z85c30_probe(int minor) { /* - * If the configuration dependant probe has located the device then + * If the configuration dependent probe has located the device then * assume it is there */ @@ -507,7 +498,7 @@ static void z85c30_process( setReg = Console_Port_Tbl[minor].setRegister; getReg = Console_Port_Tbl[minor].getRegister; getData = Console_Port_Tbl[minor].getData; - getData = Console_Port_Tbl[minor].getData; + setData = Console_Port_Tbl[minor].setData; /* * Deal with any received characters |