mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
spacing changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _mc68681_context
|
||||
{
|
||||
unsigned8 ucModemCtrl;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _mc68681_context
|
||||
{
|
||||
unsigned8 ucModemCtrl;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user