2013-08-01 23:00:20 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2003 Digi International (www.digi.com)
|
|
|
|
* Scott H Kilau <Scott_Kilau at digi dot com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
|
|
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* Driver includes
|
2016-11-18 23:39:11 +01:00
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
#ifndef __DGNC_DRIVER_H
|
|
|
|
#define __DGNC_DRIVER_H
|
|
|
|
|
2015-07-27 10:09:35 +02:00
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/tty.h>
|
|
|
|
#include <linux/interrupt.h>
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2013-08-21 17:08:03 +02:00
|
|
|
#include "digi.h" /* Digi specific ioctl header */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Driver defines */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:13 +01:00
|
|
|
/* Driver identification and error statements */
|
2016-11-18 23:39:11 +01:00
|
|
|
#define PROCSTR "dgnc" /* /proc entries */
|
|
|
|
#define DEVSTR "/dev/dg/dgnc" /* /dev entries */
|
|
|
|
#define DRVSTR "dgnc" /* Driver name string */
|
|
|
|
#define DG_PART "40002369_F" /* RPM part number */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
#define TRC_TO_CONSOLE 1
|
|
|
|
|
|
|
|
/* Number of boards we support at once. */
|
|
|
|
#define MAXBOARDS 20
|
|
|
|
#define MAXPORTS 8
|
|
|
|
#define MAXTTYNAMELEN 200
|
|
|
|
|
|
|
|
/* Our 3 magic numbers for our board, channel and unit structs */
|
|
|
|
#define DGNC_BOARD_MAGIC 0x5c6df104
|
|
|
|
#define DGNC_CHANNEL_MAGIC 0x6c6df104
|
|
|
|
#define DGNC_UNIT_MAGIC 0x7c6df104
|
|
|
|
|
|
|
|
/* Serial port types */
|
|
|
|
#define DGNC_SERIAL 0
|
|
|
|
#define DGNC_PRINT 1
|
|
|
|
|
|
|
|
#define SERIAL_TYPE_NORMAL 1
|
|
|
|
|
|
|
|
#define PORT_NUM(dev) ((dev) & 0x7f)
|
|
|
|
#define IS_PRINT(dev) (((dev) & 0xff) >= 0x80)
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/*
|
|
|
|
*MAX number of stop characters we will send
|
2015-10-14 22:26:15 +02:00
|
|
|
* when our read queue is getting full
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
#define MAX_STOPS_SENT 5
|
|
|
|
|
|
|
|
/* 4 extra for alignment play space */
|
|
|
|
#define WRITEBUFLEN ((4096) + 4)
|
|
|
|
|
|
|
|
#define dgnc_jiffies_from_ms(a) (((a) * HZ) / 1000)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Define a local default termios struct. All ports will be created
|
|
|
|
* with this termios initially. This is the same structure that is defined
|
2015-06-18 15:43:28 +02:00
|
|
|
* as the default in tty_io.c with the same settings overridden as in serial.c
|
2013-08-01 23:00:20 +02:00
|
|
|
*
|
|
|
|
* In short, this should match the internal serial ports' defaults.
|
|
|
|
*/
|
|
|
|
#define DEFAULT_IFLAGS (ICRNL | IXON)
|
|
|
|
#define DEFAULT_OFLAGS (OPOST | ONLCR)
|
|
|
|
#define DEFAULT_CFLAGS (B9600 | CS8 | CREAD | HUPCL | CLOCAL)
|
|
|
|
#define DEFAULT_LFLAGS (ISIG | ICANON | ECHO | ECHOE | ECHOK | \
|
|
|
|
ECHOCTL | ECHOKE | IEXTEN)
|
|
|
|
|
|
|
|
#ifndef _POSIX_VDISABLE
|
|
|
|
#define _POSIX_VDISABLE '\0'
|
|
|
|
#endif
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* All the possible states the driver can be while being loaded. */
|
|
|
|
|
2013-08-01 23:00:20 +02:00
|
|
|
enum {
|
|
|
|
DRIVER_INITIALIZED = 0,
|
|
|
|
DRIVER_READY
|
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* All the possible states the board can be while booting up. */
|
|
|
|
|
2013-08-01 23:00:20 +02:00
|
|
|
enum {
|
|
|
|
BOARD_FAILED = 0,
|
|
|
|
BOARD_FOUND,
|
|
|
|
BOARD_READY
|
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Structures and closely related defines. */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2013-09-09 21:01:22 +02:00
|
|
|
struct dgnc_board;
|
2013-08-01 23:00:20 +02:00
|
|
|
struct channel_t;
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Per board operations structure */
|
|
|
|
|
2013-08-01 23:00:20 +02:00
|
|
|
struct board_ops {
|
2014-09-20 18:34:45 +02:00
|
|
|
void (*tasklet)(unsigned long data);
|
|
|
|
irqreturn_t (*intr)(int irq, void *voidbrd);
|
|
|
|
void (*uart_init)(struct channel_t *ch);
|
|
|
|
void (*uart_off)(struct channel_t *ch);
|
|
|
|
int (*drain)(struct tty_struct *tty, uint seconds);
|
|
|
|
void (*param)(struct tty_struct *tty);
|
|
|
|
void (*vpd)(struct dgnc_board *brd);
|
|
|
|
void (*assert_modem_signals)(struct channel_t *ch);
|
|
|
|
void (*flush_uart_write)(struct channel_t *ch);
|
|
|
|
void (*flush_uart_read)(struct channel_t *ch);
|
|
|
|
void (*disable_receiver)(struct channel_t *ch);
|
|
|
|
void (*enable_receiver)(struct channel_t *ch);
|
|
|
|
void (*send_break)(struct channel_t *ch, int);
|
|
|
|
void (*send_start_character)(struct channel_t *ch);
|
|
|
|
void (*send_stop_character)(struct channel_t *ch);
|
|
|
|
void (*copy_data_from_queue_to_uart)(struct channel_t *ch);
|
|
|
|
uint (*get_uart_bytes_left)(struct channel_t *ch);
|
|
|
|
void (*send_immediate_char)(struct channel_t *ch, unsigned char);
|
2013-08-01 23:00:20 +02:00
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Device flag definitions for bd_flags. */
|
|
|
|
|
2013-08-21 19:30:08 +02:00
|
|
|
#define BD_IS_PCI_EXPRESS 0x0001 /* Is a PCI Express board */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Per-board information */
|
|
|
|
|
2013-09-09 21:01:22 +02:00
|
|
|
struct dgnc_board {
|
2016-11-18 23:39:11 +01:00
|
|
|
int magic; /* Board Magic number. */
|
2013-08-01 23:00:20 +02:00
|
|
|
int boardnum; /* Board number: 0-32 */
|
|
|
|
|
|
|
|
int type; /* Type of board */
|
|
|
|
char *name; /* Product Name */
|
|
|
|
struct pci_dev *pdev; /* Pointer to the pci_dev struct */
|
|
|
|
unsigned long bd_flags; /* Board flags */
|
|
|
|
u16 vendor; /* PCI vendor ID */
|
|
|
|
u16 device; /* PCI device ID */
|
|
|
|
u16 subvendor; /* PCI subsystem vendor ID */
|
|
|
|
u16 subdevice; /* PCI subsystem device ID */
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char rev; /* PCI revision ID */
|
2013-08-01 23:00:20 +02:00
|
|
|
uint pci_bus; /* PCI bus value */
|
|
|
|
uint pci_slot; /* PCI slot value */
|
|
|
|
uint maxports; /* MAX ports this board can handle */
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char dvid; /* Board specific device id */
|
|
|
|
unsigned char vpd[128]; /* VPD of board, if found */
|
2015-10-14 22:26:15 +02:00
|
|
|
unsigned char serial_num[20]; /* Serial number of board,
|
|
|
|
* if found in VPD
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
spinlock_t bd_lock; /* Used to protect board */
|
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
|
|
|
|
* and the interrupt routine from each
|
|
|
|
* other.
|
2013-08-01 23:00:20 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
uint state; /* State of card. */
|
|
|
|
wait_queue_head_t state_wait; /* Place to sleep on for state change */
|
|
|
|
|
|
|
|
struct tasklet_struct helper_tasklet; /* Poll helper tasklet */
|
|
|
|
|
|
|
|
uint nasync; /* Number of ports on card */
|
|
|
|
|
|
|
|
uint irq; /* Interrupt request number */
|
|
|
|
|
|
|
|
ulong membase; /* Start of base memory of the card */
|
|
|
|
ulong membase_end; /* End of base memory of the card */
|
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
u8 __iomem *re_map_membase; /* Remapped memory of the card */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
ulong iobase; /* Start of io base of the card */
|
|
|
|
ulong iobase_end; /* End of io base of the card */
|
|
|
|
|
|
|
|
uint bd_uart_offset; /* Space between each UART */
|
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
struct channel_t *channels[MAXPORTS]; /* array of pointers
|
|
|
|
* to our channels.
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-04-14 05:30:13 +02:00
|
|
|
struct tty_driver *serial_driver;
|
2016-03-24 07:10:43 +01:00
|
|
|
char serial_name[200];
|
2016-04-14 05:30:13 +02:00
|
|
|
struct tty_driver *print_driver;
|
2016-03-24 07:10:43 +01:00
|
|
|
char print_name[200];
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
u16 dpatype; /* The board "type",
|
|
|
|
* as defined by DPA
|
|
|
|
*/
|
|
|
|
u16 dpastatus; /* The board "status",
|
|
|
|
* as defined by DPA
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
uint bd_dividend; /* Board/UARTs specific dividend */
|
|
|
|
|
|
|
|
struct board_ops *bd_ops;
|
|
|
|
|
|
|
|
/* /proc/<board> entries */
|
|
|
|
struct proc_dir_entry *proc_entry_pointer;
|
|
|
|
struct dgnc_proc_entry *dgnc_board_table;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* 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 */
|
|
|
|
#define UN_BUSY 0x0008 /* Some work this channel */
|
|
|
|
#define UN_BREAKI 0x0010 /* Input break received */
|
2013-08-01 23:00:20 +02:00
|
|
|
#define UN_PWAIT 0x0020 /* Printer waiting for terminal */
|
2016-11-18 23:39:11 +01:00
|
|
|
#define UN_TIME 0x0040 /* Waiting on time */
|
|
|
|
#define UN_EMPTY 0x0080 /* Waiting output queue empty */
|
2013-08-01 23:00:20 +02:00
|
|
|
#define UN_LOW 0x0100 /* Waiting output low water mark*/
|
2016-11-18 23:39:11 +01:00
|
|
|
#define UN_EXCL_OPEN 0x0200 /* Open for exclusive use */
|
|
|
|
#define UN_WOPEN 0x0400 /* Device waiting for open */
|
|
|
|
#define UN_WIOCTL 0x0800 /* Device waiting for open */
|
|
|
|
#define UN_HANGUP 0x8000 /* Carrier lost */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
struct device;
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Structure for terminal or printer unit. */
|
2013-08-01 23:00:20 +02:00
|
|
|
struct un_t {
|
2016-11-18 23:39:11 +01:00
|
|
|
int magic; /* Unit Magic Number. */
|
2013-08-01 23:00:20 +02:00
|
|
|
struct channel_t *un_ch;
|
|
|
|
ulong un_time;
|
|
|
|
uint un_type;
|
2016-11-18 23:39:11 +01:00
|
|
|
uint un_open_count; /* Counter of opens to port */
|
|
|
|
struct tty_struct *un_tty; /* Pointer to unit tty structure */
|
|
|
|
uint un_flags; /* Unit flags */
|
2013-08-01 23:00:20 +02:00
|
|
|
wait_queue_head_t un_flags_wait; /* Place to sleep to wait on unit */
|
2016-11-18 23:39:11 +01:00
|
|
|
uint un_dev; /* Minor device number */
|
2013-08-01 23:00:20 +02:00
|
|
|
struct device *un_sysfs;
|
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* 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 */
|
|
|
|
#define CH_CD 0x0008 /* Carrier is present */
|
|
|
|
#define CH_FCAR 0x0010 /* Carrier forced on */
|
|
|
|
#define CH_HANGUP 0x0020 /* Hangup received */
|
|
|
|
|
|
|
|
#define CH_RECEIVER_OFF 0x0040 /* Receiver is off */
|
|
|
|
#define CH_OPENING 0x0080 /* Port in fragile open state */
|
|
|
|
#define CH_CLOSING 0x0100 /* Port in fragile close state */
|
|
|
|
#define CH_FIFO_ENABLED 0x0200 /* Port has FIFOs enabled */
|
|
|
|
#define CH_TX_FIFO_EMPTY 0x0400 /* TX Fifo is completely empty */
|
|
|
|
#define CH_TX_FIFO_LWM 0x0800 /* TX Fifo is below Low Water */
|
|
|
|
#define CH_BREAK_SENDING 0x1000 /* Break is being sent */
|
2016-11-18 23:39:12 +01:00
|
|
|
#define CH_LOOPBACK 0x2000 /* Channel is in lookback mode */
|
2013-08-01 23:00:20 +02:00
|
|
|
#define CH_BAUD0 0x08000 /* Used for checking B0 transitions */
|
2016-11-18 23:39:11 +01:00
|
|
|
#define CH_FORCED_STOP 0x20000 /* Output is forcibly stopped */
|
|
|
|
#define CH_FORCED_STOPI 0x40000 /* Input is forcibly stopped */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
/* Our Read/Error/Write queue sizes */
|
|
|
|
#define RQUEUEMASK 0x1FFF /* 8 K - 1 */
|
|
|
|
#define EQUEUEMASK 0x1FFF /* 8 K - 1 */
|
|
|
|
#define WQUEUEMASK 0x0FFF /* 4 K - 1 */
|
|
|
|
#define RQUEUESIZE (RQUEUEMASK + 1)
|
|
|
|
#define EQUEUESIZE RQUEUESIZE
|
|
|
|
#define WQUEUESIZE (WQUEUEMASK + 1)
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Channel information structure. */
|
2013-08-01 23:00:20 +02:00
|
|
|
struct channel_t {
|
2016-11-18 23:39:11 +01:00
|
|
|
int magic; /* Channel Magic Number */
|
2016-11-18 23:39:12 +01:00
|
|
|
struct dgnc_board *ch_bd; /* Board structure pointer */
|
2013-08-01 23:00:20 +02:00
|
|
|
struct digi_t ch_digi; /* Transparent Print structure */
|
2016-11-18 23:39:11 +01:00
|
|
|
struct un_t ch_tun; /* Terminal unit info */
|
|
|
|
struct un_t ch_pun; /* Printer unit info */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
spinlock_t ch_lock; /* provide for serialization */
|
|
|
|
wait_queue_head_t ch_flags_wait;
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
uint ch_portnum; /* Port number, 0 offset. */
|
|
|
|
uint ch_open_count; /* open count */
|
|
|
|
uint ch_flags; /* Channel flags */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
ulong ch_close_delay; /* How long we should
|
|
|
|
* drop RTS/DTR for
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
ulong ch_cpstime; /* Time for CPS calculations */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
tcflag_t ch_c_iflag; /* channel iflags */
|
|
|
|
tcflag_t ch_c_cflag; /* channel cflags */
|
|
|
|
tcflag_t ch_c_oflag; /* channel oflags */
|
|
|
|
tcflag_t ch_c_lflag; /* channel lflags */
|
|
|
|
unsigned char ch_stopc; /* Stop character */
|
|
|
|
unsigned char ch_startc; /* Start character */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
uint ch_old_baud; /* Cache of the current baud */
|
|
|
|
uint ch_custom_speed;/* Custom baud, if set */
|
|
|
|
|
|
|
|
uint ch_wopen; /* Waiting for open process cnt */
|
|
|
|
|
2016-11-18 23:39:12 +01:00
|
|
|
unsigned char ch_mostat; /* FEP output modem status */
|
|
|
|
unsigned char ch_mistat; /* FEP input modem status */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
struct neo_uart_struct __iomem *ch_neo_uart; /* Pointer to the
|
|
|
|
* "mapped" UART struct
|
|
|
|
*/
|
|
|
|
struct cls_uart_struct __iomem *ch_cls_uart; /* Pointer to the
|
|
|
|
* "mapped" UART struct
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char ch_cached_lsr; /* Cached value of the LSR register */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char *ch_rqueue; /* Our read queue buffer - malloc'ed */
|
2013-08-01 23:00:20 +02:00
|
|
|
ushort ch_r_head; /* Head location of the read queue */
|
|
|
|
ushort ch_r_tail; /* Tail location of the read queue */
|
|
|
|
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char *ch_equeue; /* Our error queue buffer - malloc'ed */
|
2013-08-01 23:00:20 +02:00
|
|
|
ushort ch_e_head; /* Head location of the error queue */
|
|
|
|
ushort ch_e_tail; /* Tail location of the error queue */
|
|
|
|
|
2014-10-01 22:04:48 +02:00
|
|
|
unsigned char *ch_wqueue; /* Our write queue buffer - malloc'ed */
|
2013-08-01 23:00:20 +02:00
|
|
|
ushort ch_w_head; /* Head location of the write queue */
|
|
|
|
ushort ch_w_tail; /* Tail location of the write queue */
|
|
|
|
|
|
|
|
ulong ch_rxcount; /* total of data received so far */
|
|
|
|
ulong ch_txcount; /* total of data transmitted so far */
|
|
|
|
|
2016-11-18 23:39:12 +01:00
|
|
|
unsigned char ch_r_tlevel; /* Receive Trigger level */
|
|
|
|
unsigned char ch_t_tlevel; /* Transmit Trigger level */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2016-11-18 23:39:12 +01:00
|
|
|
unsigned char ch_r_watermark; /* Receive Watermark */
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
ulong ch_stop_sending_break; /* Time we should STOP
|
|
|
|
* sending a break
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
2015-10-14 22:26:15 +02:00
|
|
|
uint ch_stops_sent; /* How many times I have sent a stop
|
|
|
|
* character to try to stop the other
|
|
|
|
* guy sending.
|
2013-08-01 23:00:20 +02:00
|
|
|
*/
|
|
|
|
ulong ch_err_parity; /* Count of parity errors on channel */
|
|
|
|
ulong ch_err_frame; /* Count of framing errors on channel */
|
|
|
|
ulong ch_err_break; /* Count of breaks on channel */
|
|
|
|
ulong ch_err_overrun; /* Count of overruns on channel */
|
|
|
|
|
|
|
|
ulong ch_xon_sends; /* Count of xons transmitted */
|
|
|
|
ulong ch_xoff_sends; /* Count of xoffs transmitted */
|
|
|
|
|
|
|
|
/* /proc/<board>/<channel> entries */
|
|
|
|
struct proc_dir_entry *proc_entry_pointer;
|
|
|
|
struct dgnc_proc_entry *dgnc_channel_table;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-11-18 23:39:11 +01:00
|
|
|
/* Our Global Variables. */
|
|
|
|
|
2016-03-23 12:54:36 +01:00
|
|
|
extern uint dgnc_major; /* Our driver/mgmt major */
|
2015-02-16 19:40:44 +01:00
|
|
|
extern int dgnc_poll_tick; /* Poll interval - 20 ms */
|
|
|
|
extern spinlock_t dgnc_global_lock; /* Driver global spinlock */
|
2015-10-04 03:49:48 +02:00
|
|
|
extern spinlock_t dgnc_poll_lock; /* Poll scheduling lock */
|
2016-08-16 20:56:12 +02:00
|
|
|
extern uint dgnc_num_boards; /* Total number of boards */
|
2016-11-18 23:39:12 +01:00
|
|
|
extern struct dgnc_board *dgnc_board[MAXBOARDS];/* Array of board
|
|
|
|
* structs
|
|
|
|
*/
|
2013-08-01 23:00:20 +02:00
|
|
|
|
|
|
|
#endif
|