summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-22 10:17:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-22 10:17:14 +0000
commit424e23ee48533fdaa4cefd2670cb7a9ec6c61488 (patch)
treee49889abb141c9a82f985a557c7f167382e6a3d5 /c/src
parentRemoved blank lines and bad debug stuff (diff)
downloadrtems-424e23ee48533fdaa4cefd2670cb7a9ec6c61488.tar.bz2
spacing changes
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libchip/serial/mc68681.c3
-rw-r--r--c/src/lib/libchip/serial/mc68681_p.h2
-rw-r--r--c/src/lib/libchip/serial/serial.h62
-rw-r--r--c/src/libchip/serial/mc68681.c3
-rw-r--r--c/src/libchip/serial/mc68681_p.h2
-rw-r--r--c/src/libchip/serial/serial.h62
6 files changed, 72 insertions, 62 deletions
diff --git a/c/src/lib/libchip/serial/mc68681.c b/c/src/lib/libchip/serial/mc68681.c
index 2b249e2dcd..5461484a7a 100644
--- a/c/src/lib/libchip/serial/mc68681.c
+++ b/c/src/lib/libchip/serial/mc68681.c
@@ -28,6 +28,7 @@
/*
* Flow control is only supported when using interrupts
*/
+
console_flow mc68681_flow_RTSCTS =
{
mc68681_negate_RTS, /* deviceStopRemoteTx */
@@ -76,6 +77,7 @@ typedef void (*setRegister_f)(
/*
* Console Device Driver Entry Points
*/
+
static boolean mc68681_probe(int minor)
{
/*
@@ -182,6 +184,7 @@ static int mc68681_close(
/*
* mc68681_write_polled
*/
+
static void mc68681_write_polled(
int minor,
char cChar
diff --git a/c/src/lib/libchip/serial/mc68681_p.h b/c/src/lib/libchip/serial/mc68681_p.h
index 2f9fa483f7..13af0dc553 100644
--- a/c/src/lib/libchip/serial/mc68681_p.h
+++ b/c/src/lib/libchip/serial/mc68681_p.h
@@ -17,6 +17,8 @@
#ifdef __cplusplus
extern "C" {
#endif
+
+
typedef struct _mc68681_context
{
unsigned8 ucModemCtrl;
diff --git a/c/src/lib/libchip/serial/serial.h b/c/src/lib/libchip/serial/serial.h
index b1cedae080..046652ce6a 100644
--- a/c/src/lib/libchip/serial/serial.h
+++ b/c/src/lib/libchip/serial/serial.h
@@ -25,54 +25,54 @@
#include <ringbuf.h>
typedef struct _console_fns {
- boolean (*deviceProbe)(int minor);
- int (*deviceFirstOpen)(int major, int minor, void *arg);
- int (*deviceLastClose)(int major, int minor, void *arg);
- int (*deviceRead)(int minor);
- int (*deviceWrite)(int minor, const char *buf, int len);
- void (*deviceInitialize)(int minor);
- void (*deviceWritePolled)(int minor, char cChar);
- int deviceOutputUsesInterrupts;
+ boolean (*deviceProbe)(int minor);
+ int (*deviceFirstOpen)(int major, int minor, void *arg);
+ int (*deviceLastClose)(int major, int minor, void *arg);
+ int (*deviceRead)(int minor);
+ int (*deviceWrite)(int minor, const char *buf, int len);
+ void (*deviceInitialize)(int minor);
+ void (*deviceWritePolled)(int minor, char cChar);
+ int deviceOutputUsesInterrupts;
} console_fns;
typedef struct _console_flow {
- int (*deviceStopRemoteTx)(int minor);
- int (*deviceStartRemoteTx)(int minor);
+ int (*deviceStopRemoteTx)(int minor);
+ int (*deviceStartRemoteTx)(int minor);
} console_flow;
typedef struct _console_tbl {
- char *sDeviceName;
- console_fns *pDeviceFns;
- boolean (*deviceProbe)(int minor);
- console_flow *pDeviceFlow;
- unsigned32 ulMargin;
- unsigned32 ulHysteresis;
- void *pDeviceParams;
- unsigned32 ulCtrlPort1;
- unsigned32 ulCtrlPort2;
- unsigned32 ulDataPort;
+ char *sDeviceName;
+ console_fns *pDeviceFns;
+ boolean (*deviceProbe)(int minor);
+ console_flow *pDeviceFlow;
+ unsigned32 ulMargin;
+ unsigned32 ulHysteresis;
+ void *pDeviceParams;
+ unsigned32 ulCtrlPort1;
+ unsigned32 ulCtrlPort2;
+ unsigned32 ulDataPort;
unsigned8 (*getRegister)(unsigned32 port, unsigned8 register);
void (*setRegister)(
unsigned32 port, unsigned8 reg, unsigned8 value);
unsigned8 (*getData)(unsigned32 port);
void (*setData)(unsigned32 port, unsigned8 value);
unsigned32 ulClock;
- unsigned int ulIntVector;
+ unsigned int ulIntVector;
} console_tbl;
typedef struct _console_data {
- void *termios_data;
- volatile boolean bActive;
- volatile Ring_buffer_t TxBuffer;
- /*
- * This field may be used for any purpose required by the driver
- */
- void *pDeviceContext;
+ void *termios_data;
+ volatile boolean bActive;
+ volatile Ring_buffer_t TxBuffer;
+ /*
+ * This field may be used for any purpose required by the driver
+ */
+ void *pDeviceContext;
} console_data;
-extern console_tbl Console_Port_Tbl[];
-extern console_data Console_Port_Data[];
-extern unsigned long Console_Port_Count;
+extern console_tbl Console_Port_Tbl[];
+extern console_data Console_Port_Data[];
+extern unsigned long Console_Port_Count;
#endif
/* end of include file */
diff --git a/c/src/libchip/serial/mc68681.c b/c/src/libchip/serial/mc68681.c
index 2b249e2dcd..5461484a7a 100644
--- a/c/src/libchip/serial/mc68681.c
+++ b/c/src/libchip/serial/mc68681.c
@@ -28,6 +28,7 @@
/*
* Flow control is only supported when using interrupts
*/
+
console_flow mc68681_flow_RTSCTS =
{
mc68681_negate_RTS, /* deviceStopRemoteTx */
@@ -76,6 +77,7 @@ typedef void (*setRegister_f)(
/*
* Console Device Driver Entry Points
*/
+
static boolean mc68681_probe(int minor)
{
/*
@@ -182,6 +184,7 @@ static int mc68681_close(
/*
* mc68681_write_polled
*/
+
static void mc68681_write_polled(
int minor,
char cChar
diff --git a/c/src/libchip/serial/mc68681_p.h b/c/src/libchip/serial/mc68681_p.h
index 2f9fa483f7..13af0dc553 100644
--- a/c/src/libchip/serial/mc68681_p.h
+++ b/c/src/libchip/serial/mc68681_p.h
@@ -17,6 +17,8 @@
#ifdef __cplusplus
extern "C" {
#endif
+
+
typedef struct _mc68681_context
{
unsigned8 ucModemCtrl;
diff --git a/c/src/libchip/serial/serial.h b/c/src/libchip/serial/serial.h
index b1cedae080..046652ce6a 100644
--- a/c/src/libchip/serial/serial.h
+++ b/c/src/libchip/serial/serial.h
@@ -25,54 +25,54 @@
#include <ringbuf.h>
typedef struct _console_fns {
- boolean (*deviceProbe)(int minor);
- int (*deviceFirstOpen)(int major, int minor, void *arg);
- int (*deviceLastClose)(int major, int minor, void *arg);
- int (*deviceRead)(int minor);
- int (*deviceWrite)(int minor, const char *buf, int len);
- void (*deviceInitialize)(int minor);
- void (*deviceWritePolled)(int minor, char cChar);
- int deviceOutputUsesInterrupts;
+ boolean (*deviceProbe)(int minor);
+ int (*deviceFirstOpen)(int major, int minor, void *arg);
+ int (*deviceLastClose)(int major, int minor, void *arg);
+ int (*deviceRead)(int minor);
+ int (*deviceWrite)(int minor, const char *buf, int len);
+ void (*deviceInitialize)(int minor);
+ void (*deviceWritePolled)(int minor, char cChar);
+ int deviceOutputUsesInterrupts;
} console_fns;
typedef struct _console_flow {
- int (*deviceStopRemoteTx)(int minor);
- int (*deviceStartRemoteTx)(int minor);
+ int (*deviceStopRemoteTx)(int minor);
+ int (*deviceStartRemoteTx)(int minor);
} console_flow;
typedef struct _console_tbl {
- char *sDeviceName;
- console_fns *pDeviceFns;
- boolean (*deviceProbe)(int minor);
- console_flow *pDeviceFlow;
- unsigned32 ulMargin;
- unsigned32 ulHysteresis;
- void *pDeviceParams;
- unsigned32 ulCtrlPort1;
- unsigned32 ulCtrlPort2;
- unsigned32 ulDataPort;
+ char *sDeviceName;
+ console_fns *pDeviceFns;
+ boolean (*deviceProbe)(int minor);
+ console_flow *pDeviceFlow;
+ unsigned32 ulMargin;
+ unsigned32 ulHysteresis;
+ void *pDeviceParams;
+ unsigned32 ulCtrlPort1;
+ unsigned32 ulCtrlPort2;
+ unsigned32 ulDataPort;
unsigned8 (*getRegister)(unsigned32 port, unsigned8 register);
void (*setRegister)(
unsigned32 port, unsigned8 reg, unsigned8 value);
unsigned8 (*getData)(unsigned32 port);
void (*setData)(unsigned32 port, unsigned8 value);
unsigned32 ulClock;
- unsigned int ulIntVector;
+ unsigned int ulIntVector;
} console_tbl;
typedef struct _console_data {
- void *termios_data;
- volatile boolean bActive;
- volatile Ring_buffer_t TxBuffer;
- /*
- * This field may be used for any purpose required by the driver
- */
- void *pDeviceContext;
+ void *termios_data;
+ volatile boolean bActive;
+ volatile Ring_buffer_t TxBuffer;
+ /*
+ * This field may be used for any purpose required by the driver
+ */
+ void *pDeviceContext;
} console_data;
-extern console_tbl Console_Port_Tbl[];
-extern console_data Console_Port_Data[];
-extern unsigned long Console_Port_Count;
+extern console_tbl Console_Port_Tbl[];
+extern console_data Console_Port_Data[];
+extern unsigned long Console_Port_Count;
#endif
/* end of include file */