This patch adds the dgnc_board struct to driver.h.
This struct will replace board_t in this driver.

Signed-off-by: Lidza Louina <lidza.lou...@gmail.com>
---
 drivers/staging/dgnc/dgnc_driver.h | 85 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/drivers/staging/dgnc/dgnc_driver.h 
b/drivers/staging/dgnc/dgnc_driver.h
index 218b15d..a369b2e 100644
--- a/drivers/staging/dgnc/dgnc_driver.h
+++ b/drivers/staging/dgnc/dgnc_driver.h
@@ -367,6 +367,91 @@ struct board_t {
 
 };
 
+struct dgnc_board {
+       int             magic;          /* Board Magic number.  */
+       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 */
+       uchar           rev;            /* PCI revision ID */
+       uint            pci_bus;        /* PCI bus value */
+       uint            pci_slot;       /* PCI slot value */
+       uint            maxports;       /* MAX ports this board can handle */
+       uchar           dvid;           /* Board specific device id */
+       uchar           vpd[128];       /* VPD of board, if found */
+       uchar           serial_num[20]; /* Serial number of board, if found in 
VPD */
+
+       spinlock_t      bd_lock;        /* Used to protect board */
+
+       spinlock_t      bd_intr_lock;   /* Used to protect the poller tasklet 
and
+                                        * the interrupt routine from each 
other.
+                                        */
+
+       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           intr_count;     /* Count of interrupts */
+       ulong           intr_modem;     /* Count of interrupts */
+       ulong           intr_tx;        /* Count of interrupts */
+       ulong           intr_rx;        /* Count of interrupts */
+
+       ulong           membase;        /* Start of base memory of the card */
+       ulong           membase_end;    /* End of base memory of the card */
+
+       u8 __iomem              *re_map_membase;/* Remapped memory of the card 
*/
+
+       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 */
+
+       struct channel_t *channels[MAXPORTS]; /* array of pointers to our 
channels. */
+
+       struct tty_driver       SerialDriver;
+       char            SerialName[200];
+       struct tty_driver       PrintDriver;
+       char            PrintName[200];
+
+       uint            dgnc_Major_Serial_Registered;
+       uint            dgnc_Major_TransparentPrint_Registered;
+
+       uint            dgnc_Serial_Major;
+       uint            dgnc_TransparentPrint_Major;
+
+       uint            TtyRefCnt;
+
+       char            *flipbuf;       /* Our flip buffer, alloced if board is 
found */
+
+       u16             dpatype;        /* The board "type", as defined by DPA 
*/
+       u16             dpastatus;      /* The board "status", as defined by 
DPA */
+
+       /*
+        *      Mgmt data.
+        */
+       char            *msgbuf_head;
+       char            *msgbuf;
+
+       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;
+
+};
+
 
 /************************************************************************
  * Unit flag definitions for un_flags.
-- 
1.8.1.2

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to