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

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
Loading
Loading
Loading
Loading
+73 −97
Original line number Diff line number Diff line
@@ -12,11 +12,8 @@
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 *************************************************************************
 *
 * Driver includes
 *
 *************************************************************************/
 */

#ifndef __DGNC_DRIVER_H
#define __DGNC_DRIVER_H
@@ -28,11 +25,7 @@
#include "digi.h"		/* Digi specific ioctl header */
#include "dgnc_sysfs.h"		/* Support for SYSFS */

/*************************************************************************
 *
 * Driver defines
 *
 *************************************************************************/
/* Driver defines */

/* Driver identification and error statments */
#define	PROCSTR		"dgnc"			/* /proc entries */
@@ -61,7 +54,8 @@
#define PORT_NUM(dev)	((dev) & 0x7f)
#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
 */
#define MAX_STOPS_SENT 5
@@ -88,35 +82,28 @@
#define   _POSIX_VDISABLE '\0'
#endif

/*
 * All the possible states the driver can be while being loaded.
 */
/* All the possible states the driver can be while being loaded. */

enum {
	DRIVER_INITIALIZED = 0,
	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 {
	BOARD_FAILED = 0,
	BOARD_FOUND,
	BOARD_READY
};

/*************************************************************************
 *
 * Structures and closely related defines.
 *
 *************************************************************************/
/* Structures and closely related defines. */

struct dgnc_board;
struct channel_t;

/************************************************************************
 * Per board operations structure				       *
 ************************************************************************/
/* Per board operations structure */

struct board_ops {
	void (*tasklet)(unsigned long data);
	irqreturn_t (*intr)(int irq, void *voidbrd);
@@ -138,14 +125,12 @@ struct board_ops {
	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 */

/*
 *	Per-board information
 */
/*	Per-board information */

struct dgnc_board {
	int		magic;		/* Board Magic number. */
	int		boardnum;	/* Board number: 0-32 */
@@ -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_CLOSING	0x0002		/* Line is being closed	*/
#define UN_IMM		0x0004		/* Service immediately */
@@ -239,9 +222,7 @@ struct dgnc_board {

struct device;

/************************************************************************
 * Structure for terminal or printer unit.
 ************************************************************************/
/* Structure for terminal or printer unit. */
struct un_t {
	int	magic;		/* Unit Magic Number. */
	struct	channel_t *un_ch;
@@ -255,9 +236,7 @@ struct un_t {
	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_STOP		0x0002		/* Output is stopped */
#define CH_STOPI	0x0004		/* Input is stopped */
@@ -285,9 +264,7 @@ struct un_t {
#define EQUEUESIZE	RQUEUESIZE
#define WQUEUESIZE	(WQUEUEMASK + 1)

/************************************************************************
 * Channel information structure.
 ************************************************************************/
/* Channel information structure. */
struct channel_t {
	int magic;			/* Channel Magic Number	*/
	struct dgnc_board	*ch_bd;	/* Board structure pointer */
@@ -374,9 +351,8 @@ struct channel_t {

};

/*
 * Our Global Variables.
 */
/* Our Global Variables. */

extern uint		dgnc_major;		/* Our driver/mgmt major */
extern int		dgnc_poll_tick;		/* Poll interval - 20 ms */
extern spinlock_t	dgnc_global_lock;	/* Driver global spinlock */