Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgnc: dgnc_driver.h Comment style modifications

Make modifications to comment style

Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Walt Feasel and committed by
Greg Kroah-Hartman
7cc7ded6 778d24d5

+72 -96
+72 -96
drivers/staging/dgnc/dgnc_driver.h
··· 12 12 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 * 15 - ************************************************************************* 16 - * 17 15 * Driver includes 18 - * 19 - *************************************************************************/ 16 + */ 20 17 21 18 #ifndef __DGNC_DRIVER_H 22 19 #define __DGNC_DRIVER_H ··· 25 28 #include "digi.h" /* Digi specific ioctl header */ 26 29 #include "dgnc_sysfs.h" /* Support for SYSFS */ 27 30 28 - /************************************************************************* 29 - * 30 - * Driver defines 31 - * 32 - *************************************************************************/ 31 + /* Driver defines */ 33 32 34 33 /* Driver identification and error statments */ 35 - #define PROCSTR "dgnc" /* /proc entries */ 36 - #define DEVSTR "/dev/dg/dgnc" /* /dev entries */ 37 - #define DRVSTR "dgnc" /* Driver name string */ 38 - #define DG_PART "40002369_F" /* RPM part number */ 34 + #define PROCSTR "dgnc" /* /proc entries */ 35 + #define DEVSTR "/dev/dg/dgnc" /* /dev entries */ 36 + #define DRVSTR "dgnc" /* Driver name string */ 37 + #define DG_PART "40002369_F" /* RPM part number */ 39 38 40 39 #define TRC_TO_CONSOLE 1 41 40 ··· 54 61 #define PORT_NUM(dev) ((dev) & 0x7f) 55 62 #define IS_PRINT(dev) (((dev) & 0xff) >= 0x80) 56 63 57 - /* MAX number of stop characters we will send 64 + /* 65 + *MAX number of stop characters we will send 58 66 * when our read queue is getting full 59 67 */ 60 68 #define MAX_STOPS_SENT 5 ··· 82 88 #define _POSIX_VDISABLE '\0' 83 89 #endif 84 90 85 - /* 86 - * All the possible states the driver can be while being loaded. 87 - */ 91 + /* All the possible states the driver can be while being loaded. */ 92 + 88 93 enum { 89 94 DRIVER_INITIALIZED = 0, 90 95 DRIVER_READY 91 96 }; 92 97 93 - /* 94 - * All the possible states the board can be while booting up. 95 - */ 98 + /* All the possible states the board can be while booting up. */ 99 + 96 100 enum { 97 101 BOARD_FAILED = 0, 98 102 BOARD_FOUND, 99 103 BOARD_READY 100 104 }; 101 105 102 - /************************************************************************* 103 - * 104 - * Structures and closely related defines. 105 - * 106 - *************************************************************************/ 106 + /* Structures and closely related defines. */ 107 107 108 108 struct dgnc_board; 109 109 struct channel_t; 110 110 111 - /************************************************************************ 112 - * Per board operations structure * 113 - ************************************************************************/ 111 + /* Per board operations structure */ 112 + 114 113 struct board_ops { 115 114 void (*tasklet)(unsigned long data); 116 115 irqreturn_t (*intr)(int irq, void *voidbrd); ··· 125 138 void (*send_immediate_char)(struct channel_t *ch, unsigned char); 126 139 }; 127 140 128 - /************************************************************************ 129 - * Device flag definitions for bd_flags. 130 - ************************************************************************/ 141 + /* Device flag definitions for bd_flags. */ 142 + 131 143 #define BD_IS_PCI_EXPRESS 0x0001 /* Is a PCI Express board */ 132 144 133 - /* 134 - * Per-board information 135 - */ 145 + /* Per-board information */ 146 + 136 147 struct dgnc_board { 137 - int magic; /* Board Magic number. */ 148 + int magic; /* Board Magic number. */ 138 149 int boardnum; /* Board number: 0-32 */ 139 150 140 151 int type; /* Type of board */ ··· 205 220 206 221 }; 207 222 208 - /************************************************************************ 209 - * Unit flag definitions for un_flags. 210 - ************************************************************************/ 211 - #define UN_ISOPEN 0x0001 /* Device is open */ 212 - #define UN_CLOSING 0x0002 /* Line is being closed */ 213 - #define UN_IMM 0x0004 /* Service immediately */ 214 - #define UN_BUSY 0x0008 /* Some work this channel */ 215 - #define UN_BREAKI 0x0010 /* Input break received */ 223 + /* Unit flag definitions for un_flags. */ 224 + #define UN_ISOPEN 0x0001 /* Device is open */ 225 + #define UN_CLOSING 0x0002 /* Line is being closed */ 226 + #define UN_IMM 0x0004 /* Service immediately */ 227 + #define UN_BUSY 0x0008 /* Some work this channel */ 228 + #define UN_BREAKI 0x0010 /* Input break received */ 216 229 #define UN_PWAIT 0x0020 /* Printer waiting for terminal */ 217 - #define UN_TIME 0x0040 /* Waiting on time */ 218 - #define UN_EMPTY 0x0080 /* Waiting output queue empty */ 230 + #define UN_TIME 0x0040 /* Waiting on time */ 231 + #define UN_EMPTY 0x0080 /* Waiting output queue empty */ 219 232 #define UN_LOW 0x0100 /* Waiting output low water mark*/ 220 - #define UN_EXCL_OPEN 0x0200 /* Open for exclusive use */ 221 - #define UN_WOPEN 0x0400 /* Device waiting for open */ 222 - #define UN_WIOCTL 0x0800 /* Device waiting for open */ 223 - #define UN_HANGUP 0x8000 /* Carrier lost */ 233 + #define UN_EXCL_OPEN 0x0200 /* Open for exclusive use */ 234 + #define UN_WOPEN 0x0400 /* Device waiting for open */ 235 + #define UN_WIOCTL 0x0800 /* Device waiting for open */ 236 + #define UN_HANGUP 0x8000 /* Carrier lost */ 224 237 225 238 struct device; 226 239 227 - /************************************************************************ 228 - * Structure for terminal or printer unit. 229 - ************************************************************************/ 240 + /* Structure for terminal or printer unit. */ 230 241 struct un_t { 231 - int magic; /* Unit Magic Number. */ 242 + int magic; /* Unit Magic Number. */ 232 243 struct channel_t *un_ch; 233 244 ulong un_time; 234 245 uint un_type; 235 - uint un_open_count; /* Counter of opens to port */ 236 - struct tty_struct *un_tty;/* Pointer to unit tty structure */ 237 - uint un_flags; /* Unit flags */ 246 + uint un_open_count; /* Counter of opens to port */ 247 + struct tty_struct *un_tty; /* Pointer to unit tty structure */ 248 + uint un_flags; /* Unit flags */ 238 249 wait_queue_head_t un_flags_wait; /* Place to sleep to wait on unit */ 239 - uint un_dev; /* Minor device number */ 250 + uint un_dev; /* Minor device number */ 240 251 struct device *un_sysfs; 241 252 }; 242 253 243 - /************************************************************************ 244 - * Device flag definitions for ch_flags. 245 - ************************************************************************/ 246 - #define CH_PRON 0x0001 /* Printer on string */ 247 - #define CH_STOP 0x0002 /* Output is stopped */ 248 - #define CH_STOPI 0x0004 /* Input is stopped */ 249 - #define CH_CD 0x0008 /* Carrier is present */ 250 - #define CH_FCAR 0x0010 /* Carrier forced on */ 251 - #define CH_HANGUP 0x0020 /* Hangup received */ 254 + /* Device flag definitions for ch_flags. */ 255 + #define CH_PRON 0x0001 /* Printer on string */ 256 + #define CH_STOP 0x0002 /* Output is stopped */ 257 + #define CH_STOPI 0x0004 /* Input is stopped */ 258 + #define CH_CD 0x0008 /* Carrier is present */ 259 + #define CH_FCAR 0x0010 /* Carrier forced on */ 260 + #define CH_HANGUP 0x0020 /* Hangup received */ 252 261 253 - #define CH_RECEIVER_OFF 0x0040 /* Receiver is off */ 254 - #define CH_OPENING 0x0080 /* Port in fragile open state */ 255 - #define CH_CLOSING 0x0100 /* Port in fragile close state */ 256 - #define CH_FIFO_ENABLED 0x0200 /* Port has FIFOs enabled */ 257 - #define CH_TX_FIFO_EMPTY 0x0400 /* TX Fifo is completely empty */ 258 - #define CH_TX_FIFO_LWM 0x0800 /* TX Fifo is below Low Water */ 259 - #define CH_BREAK_SENDING 0x1000 /* Break is being sent */ 260 - #define CH_LOOPBACK 0x2000 /* Channel is in lookback mode */ 262 + #define CH_RECEIVER_OFF 0x0040 /* Receiver is off */ 263 + #define CH_OPENING 0x0080 /* Port in fragile open state */ 264 + #define CH_CLOSING 0x0100 /* Port in fragile close state */ 265 + #define CH_FIFO_ENABLED 0x0200 /* Port has FIFOs enabled */ 266 + #define CH_TX_FIFO_EMPTY 0x0400 /* TX Fifo is completely empty */ 267 + #define CH_TX_FIFO_LWM 0x0800 /* TX Fifo is below Low Water */ 268 + #define CH_BREAK_SENDING 0x1000 /* Break is being sent */ 269 + #define CH_LOOPBACK 0x2000 /* Channel is in lookback mode */ 261 270 #define CH_BAUD0 0x08000 /* Used for checking B0 transitions */ 262 - #define CH_FORCED_STOP 0x20000 /* Output is forcibly stopped */ 263 - #define CH_FORCED_STOPI 0x40000 /* Input is forcibly stopped */ 271 + #define CH_FORCED_STOP 0x20000 /* Output is forcibly stopped */ 272 + #define CH_FORCED_STOPI 0x40000 /* Input is forcibly stopped */ 264 273 265 274 /* Our Read/Error/Write queue sizes */ 266 275 #define RQUEUEMASK 0x1FFF /* 8 K - 1 */ ··· 264 285 #define EQUEUESIZE RQUEUESIZE 265 286 #define WQUEUESIZE (WQUEUEMASK + 1) 266 287 267 - /************************************************************************ 268 - * Channel information structure. 269 - ************************************************************************/ 288 + /* Channel information structure. */ 270 289 struct channel_t { 271 - int magic; /* Channel Magic Number */ 272 - struct dgnc_board *ch_bd; /* Board structure pointer */ 290 + int magic; /* Channel Magic Number */ 291 + struct dgnc_board *ch_bd; /* Board structure pointer */ 273 292 struct digi_t ch_digi; /* Transparent Print structure */ 274 - struct un_t ch_tun; /* Terminal unit info */ 275 - struct un_t ch_pun; /* Printer unit info */ 293 + struct un_t ch_tun; /* Terminal unit info */ 294 + struct un_t ch_pun; /* Printer unit info */ 276 295 277 296 spinlock_t ch_lock; /* provide for serialization */ 278 297 wait_queue_head_t ch_flags_wait; 279 298 280 - uint ch_portnum; /* Port number, 0 offset. */ 281 - uint ch_open_count; /* open count */ 282 - uint ch_flags; /* Channel flags */ 299 + uint ch_portnum; /* Port number, 0 offset. */ 300 + uint ch_open_count; /* open count */ 301 + uint ch_flags; /* Channel flags */ 283 302 284 303 ulong ch_close_delay; /* How long we should 285 304 * drop RTS/DTR for 286 305 */ 287 306 288 - ulong ch_cpstime; /* Time for CPS calculations */ 307 + ulong ch_cpstime; /* Time for CPS calculations */ 289 308 290 - tcflag_t ch_c_iflag; /* channel iflags */ 291 - tcflag_t ch_c_cflag; /* channel cflags */ 292 - tcflag_t ch_c_oflag; /* channel oflags */ 293 - tcflag_t ch_c_lflag; /* channel lflags */ 294 - unsigned char ch_stopc; /* Stop character */ 295 - unsigned char ch_startc; /* Start character */ 309 + tcflag_t ch_c_iflag; /* channel iflags */ 310 + tcflag_t ch_c_cflag; /* channel cflags */ 311 + tcflag_t ch_c_oflag; /* channel oflags */ 312 + tcflag_t ch_c_lflag; /* channel lflags */ 313 + unsigned char ch_stopc; /* Stop character */ 314 + unsigned char ch_startc; /* Start character */ 296 315 297 316 uint ch_old_baud; /* Cache of the current baud */ 298 317 uint ch_custom_speed;/* Custom baud, if set */ ··· 351 374 352 375 }; 353 376 354 - /* 355 - * Our Global Variables. 356 - */ 377 + /* Our Global Variables. */ 378 + 357 379 extern uint dgnc_major; /* Our driver/mgmt major */ 358 380 extern int dgnc_poll_tick; /* Poll interval - 20 ms */ 359 381 extern spinlock_t dgnc_global_lock; /* Driver global spinlock */