Commit 7cc7ded6 authored by Walt Feasel's avatar Walt Feasel Committed by Greg Kroah-Hartman

staging: dgnc: dgnc_driver.h Comment style modifications

Make modifications to comment style
Signed-off-by: default avatarWalt Feasel <waltfeasel@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 778d24d5
...@@ -12,11 +12,8 @@ ...@@ -12,11 +12,8 @@
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details. * PURPOSE. See the GNU General Public License for more details.
* *
*************************************************************************
*
* Driver includes * Driver includes
* */
*************************************************************************/
#ifndef __DGNC_DRIVER_H #ifndef __DGNC_DRIVER_H
#define __DGNC_DRIVER_H #define __DGNC_DRIVER_H
...@@ -28,11 +25,7 @@ ...@@ -28,11 +25,7 @@
#include "digi.h" /* Digi specific ioctl header */ #include "digi.h" /* Digi specific ioctl header */
#include "dgnc_sysfs.h" /* Support for SYSFS */ #include "dgnc_sysfs.h" /* Support for SYSFS */
/************************************************************************* /* Driver defines */
*
* Driver defines
*
*************************************************************************/
/* Driver identification and error statments */ /* Driver identification and error statments */
#define PROCSTR "dgnc" /* /proc entries */ #define PROCSTR "dgnc" /* /proc entries */
...@@ -61,7 +54,8 @@ ...@@ -61,7 +54,8 @@
#define PORT_NUM(dev) ((dev) & 0x7f) #define PORT_NUM(dev) ((dev) & 0x7f)
#define IS_PRINT(dev) (((dev) & 0xff) >= 0x80) #define IS_PRINT(dev) (((dev) & 0xff) >= 0x80)
/* MAX number of stop characters we will send /*
*MAX number of stop characters we will send
* when our read queue is getting full * when our read queue is getting full
*/ */
#define MAX_STOPS_SENT 5 #define MAX_STOPS_SENT 5
...@@ -88,35 +82,28 @@ ...@@ -88,35 +82,28 @@
#define _POSIX_VDISABLE '\0' #define _POSIX_VDISABLE '\0'
#endif #endif
/* /* All the possible states the driver can be while being loaded. */
* All the possible states the driver can be while being loaded.
*/
enum { enum {
DRIVER_INITIALIZED = 0, DRIVER_INITIALIZED = 0,
DRIVER_READY DRIVER_READY
}; };
/* /* All the possible states the board can be while booting up. */
* All the possible states the board can be while booting up.
*/
enum { enum {
BOARD_FAILED = 0, BOARD_FAILED = 0,
BOARD_FOUND, BOARD_FOUND,
BOARD_READY BOARD_READY
}; };
/************************************************************************* /* Structures and closely related defines. */
*
* Structures and closely related defines.
*
*************************************************************************/
struct dgnc_board; struct dgnc_board;
struct channel_t; struct channel_t;
/************************************************************************ /* Per board operations structure */
* Per board operations structure *
************************************************************************/
struct board_ops { struct board_ops {
void (*tasklet)(unsigned long data); void (*tasklet)(unsigned long data);
irqreturn_t (*intr)(int irq, void *voidbrd); irqreturn_t (*intr)(int irq, void *voidbrd);
...@@ -138,14 +125,12 @@ struct board_ops { ...@@ -138,14 +125,12 @@ struct board_ops {
void (*send_immediate_char)(struct channel_t *ch, unsigned char); void (*send_immediate_char)(struct channel_t *ch, unsigned char);
}; };
/************************************************************************ /* Device flag definitions for bd_flags. */
* Device flag definitions for bd_flags.
************************************************************************/
#define BD_IS_PCI_EXPRESS 0x0001 /* Is a PCI Express board */ #define BD_IS_PCI_EXPRESS 0x0001 /* Is a PCI Express board */
/* /* Per-board information */
* Per-board information
*/
struct dgnc_board { struct dgnc_board {
int magic; /* Board Magic number. */ int magic; /* Board Magic number. */
int boardnum; /* Board number: 0-32 */ int boardnum; /* Board number: 0-32 */
...@@ -220,9 +205,7 @@ struct dgnc_board { ...@@ -220,9 +205,7 @@ struct dgnc_board {
}; };
/************************************************************************ /* Unit flag definitions for un_flags. */
* Unit flag definitions for un_flags.
************************************************************************/
#define UN_ISOPEN 0x0001 /* Device is open */ #define UN_ISOPEN 0x0001 /* Device is open */
#define UN_CLOSING 0x0002 /* Line is being closed */ #define UN_CLOSING 0x0002 /* Line is being closed */
#define UN_IMM 0x0004 /* Service immediately */ #define UN_IMM 0x0004 /* Service immediately */
...@@ -239,25 +222,21 @@ struct dgnc_board { ...@@ -239,25 +222,21 @@ struct dgnc_board {
struct device; struct device;
/************************************************************************ /* Structure for terminal or printer unit. */
* Structure for terminal or printer unit.
************************************************************************/
struct un_t { struct un_t {
int magic; /* Unit Magic Number. */ int magic; /* Unit Magic Number. */
struct channel_t *un_ch; struct channel_t *un_ch;
ulong un_time; ulong un_time;
uint un_type; uint un_type;
uint un_open_count; /* Counter of opens to port */ uint un_open_count; /* Counter of opens to port */
struct tty_struct *un_tty;/* Pointer to unit tty structure */ struct tty_struct *un_tty; /* Pointer to unit tty structure */
uint un_flags; /* Unit flags */ uint un_flags; /* Unit flags */
wait_queue_head_t un_flags_wait; /* Place to sleep to wait on unit */ wait_queue_head_t un_flags_wait; /* Place to sleep to wait on unit */
uint un_dev; /* Minor device number */ uint un_dev; /* Minor device number */
struct device *un_sysfs; struct device *un_sysfs;
}; };
/************************************************************************ /* Device flag definitions for ch_flags. */
* Device flag definitions for ch_flags.
************************************************************************/
#define CH_PRON 0x0001 /* Printer on string */ #define CH_PRON 0x0001 /* Printer on string */
#define CH_STOP 0x0002 /* Output is stopped */ #define CH_STOP 0x0002 /* Output is stopped */
#define CH_STOPI 0x0004 /* Input is stopped */ #define CH_STOPI 0x0004 /* Input is stopped */
...@@ -285,9 +264,7 @@ struct un_t { ...@@ -285,9 +264,7 @@ struct un_t {
#define EQUEUESIZE RQUEUESIZE #define EQUEUESIZE RQUEUESIZE
#define WQUEUESIZE (WQUEUEMASK + 1) #define WQUEUESIZE (WQUEUEMASK + 1)
/************************************************************************ /* Channel information structure. */
* Channel information structure.
************************************************************************/
struct channel_t { struct channel_t {
int magic; /* Channel Magic Number */ int magic; /* Channel Magic Number */
struct dgnc_board *ch_bd; /* Board structure pointer */ struct dgnc_board *ch_bd; /* Board structure pointer */
...@@ -374,9 +351,8 @@ struct channel_t { ...@@ -374,9 +351,8 @@ struct channel_t {
}; };
/* /* Our Global Variables. */
* Our Global Variables.
*/
extern uint dgnc_major; /* Our driver/mgmt major */ extern uint dgnc_major; /* Our driver/mgmt major */
extern int dgnc_poll_tick; /* Poll interval - 20 ms */ extern int dgnc_poll_tick; /* Poll interval - 20 ms */
extern spinlock_t dgnc_global_lock; /* Driver global spinlock */ extern spinlock_t dgnc_global_lock; /* Driver global spinlock */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment