Skip to content

Commit

Permalink
dgnc: get rid of dpacompat.h, move remaining stuff to digi.h
Browse files Browse the repository at this point in the history
Dpacompat.h contained a lot of unused #defines and only few things are
used from it so since we've trimmed down digi.h, now we can delete
dpacompat.h and move remaining stuff into digi.h.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Giedrius Statkevičius authored and Greg Kroah-Hartman committed Mar 24, 2015
1 parent 944b3ad commit 850b41f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 112 deletions.
1 change: 0 additions & 1 deletion drivers/staging/dgnc/dgnc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/sched.h>
#include "dgnc_driver.h"
#include "dgnc_pci.h"
#include "dpacompat.h"
#include "dgnc_mgmt.h"
#include "dgnc_tty.h"
#include "dgnc_cls.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/dgnc/dgnc_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "dgnc_pci.h"
#include "dgnc_kcompat.h" /* Kernel 2.4/2.6 compat includes */
#include "dgnc_mgmt.h"
#include "dpacompat.h"


/* Our "in use" variables, to enforce 1 open only */
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/dgnc/dgnc_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "dgnc_types.h"
#include "dgnc_neo.h"
#include "dgnc_cls.h"
#include "dpacompat.h"
#include "dgnc_sysfs.h"
#include "dgnc_utils.h"

Expand Down
36 changes: 36 additions & 0 deletions drivers/staging/dgnc/digi.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
#define DIGI_SETA (('e'<<8) | 95) /* Set params */
#define DIGI_SETAW (('e'<<8) | 96) /* Drain & set params */
#define DIGI_SETAF (('e'<<8) | 97) /* Drain, flush & set params */
#define DIGI_GET_NI_INFO (('d'<<8) | 250) /* Non-intelligent state info */
#define DIGI_LOOPBACK (('d'<<8) | 252) /*
* Enable/disable UART
* internal loopback
*/
#define DIGI_FAST 0x0002 /* Fast baud rates */
#define RTSPACE 0x0004 /* RTS input flow control */
#define CTSPACE 0x0008 /* CTS output flow control */
Expand Down Expand Up @@ -139,4 +144,35 @@ struct digi_getcounter {
#define EV_IPS 0x0020 /* !<Input paused by high/low water marks */
#define EV_TXB 0x0040 /* !<Transmit break pending */

/*
* This structure holds data needed for the intelligent <--> nonintelligent
* DPA translation
*/
struct ni_info {
int board;
int channel;
int dtr;
int rts;
int cts;
int dsr;
int ri;
int dcd;
int curtx;
int currx;
unsigned short iflag;
unsigned short oflag;
unsigned short cflag;
unsigned short lflag;
unsigned int mstat;
unsigned char hflow;
unsigned char xmit_stopped;
unsigned char recv_stopped;
unsigned int baud;
};

#define T_CLASSIC 0002
#define T_PCIBUS 0400
#define T_NEO_EXPRESS 0001
#define T_NEO 0000

#endif /* DIGI_H */
109 changes: 0 additions & 109 deletions drivers/staging/dgnc/dpacompat.h

This file was deleted.

0 comments on commit 850b41f

Please sign in to comment.