Blame view
drivers/char/digi1.h
3.58 KB
1da177e4c
|
1 2 3 |
/* Definitions for DigiBoard ditty(1) command. */ #if !defined(TIOCMODG) |
f2cf8e25b
|
4 5 |
#define TIOCMODG (('d'<<8) | 250) /* get modem ctrl state */ #define TIOCMODS (('d'<<8) | 251) /* set modem ctrl state */ |
1da177e4c
|
6 7 8 |
#endif #if !defined(TIOCMSET) |
f2cf8e25b
|
9 10 |
#define TIOCMSET (('d'<<8) | 252) /* set modem ctrl state */ #define TIOCMGET (('d'<<8) | 253) /* set modem ctrl state */ |
1da177e4c
|
11 12 13 |
#endif #if !defined(TIOCMBIC) |
f2cf8e25b
|
14 15 |
#define TIOCMBIC (('d'<<8) | 254) /* set modem ctrl state */ #define TIOCMBIS (('d'<<8) | 255) /* set modem ctrl state */ |
1da177e4c
|
16 17 18 |
#endif #if !defined(TIOCSDTR) |
f2cf8e25b
|
19 20 |
#define TIOCSDTR (('e'<<8) | 0) /* set DTR */ #define TIOCCDTR (('e'<<8) | 1) /* clear DTR */ |
1da177e4c
|
21 22 23 24 25 |
#endif /************************************************************************ * Ioctl command arguments for DIGI parameters. ************************************************************************/ |
f2cf8e25b
|
26 |
#define DIGI_GETA (('e'<<8) | 94) /* Read params */ |
1da177e4c
|
27 |
|
f2cf8e25b
|
28 29 30 |
#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 */ |
1da177e4c
|
31 |
|
f2cf8e25b
|
32 |
#define DIGI_GETFLOW (('e'<<8) | 99) /* Get startc/stopc flow */ |
1da177e4c
|
33 |
/* control characters */ |
f2cf8e25b
|
34 |
#define DIGI_SETFLOW (('e'<<8) | 100) /* Set startc/stopc flow */ |
1da177e4c
|
35 |
/* control characters */ |
f2cf8e25b
|
36 |
#define DIGI_GETAFLOW (('e'<<8) | 101) /* Get Aux. startc/stopc */ |
1da177e4c
|
37 |
/* flow control chars */ |
f2cf8e25b
|
38 |
#define DIGI_SETAFLOW (('e'<<8) | 102) /* Set Aux. startc/stopc */ |
1da177e4c
|
39 |
/* flow control chars */ |
f2cf8e25b
|
40 41 42 |
#define DIGI_GETINFO (('e'<<8) | 103) /* Fill in digi_info */ #define DIGI_POLLER (('e'<<8) | 104) /* Turn on/off poller */ #define DIGI_INIT (('e'<<8) | 105) /* Allow things to run. */ |
1da177e4c
|
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
struct digiflow_struct { unsigned char startc; /* flow cntl start char */ unsigned char stopc; /* flow cntl stop char */ }; typedef struct digiflow_struct digiflow_t; /************************************************************************ * Values for digi_flags ************************************************************************/ #define DIGI_IXON 0x0001 /* Handle IXON in the FEP */ #define DIGI_FAST 0x0002 /* Fast baud rates */ #define RTSPACE 0x0004 /* RTS input flow control */ #define CTSPACE 0x0008 /* CTS output flow control */ #define DSRPACE 0x0010 /* DSR output flow control */ #define DCDPACE 0x0020 /* DCD output flow control */ #define DTRPACE 0x0040 /* DTR input flow control */ #define DIGI_FORCEDCD 0x0100 /* Force carrier */ #define DIGI_ALTPIN 0x0200 /* Alternate RJ-45 pin config */ #define DIGI_AIXON 0x0400 /* Aux flow control in fep */ /************************************************************************ * Values for digiDload ************************************************************************/ #define NORMAL 0 #define PCI_CTL 1 #define SIZE8 0 #define SIZE16 1 #define SIZE32 2 /************************************************************************ * Structure used with ioctl commands for DIGI parameters. ************************************************************************/ struct digi_struct { unsigned short digi_flags; /* Flags (see above) */ }; typedef struct digi_struct digi_t; struct digi_info { unsigned long board; /* Which board is this ? */ unsigned char status; /* Alive or dead */ unsigned char type; /* see epca.h */ unsigned char subtype; /* For future XEM, XR, etc ... */ unsigned short numports; /* Number of ports configured */ unsigned char *port; /* I/O Address */ unsigned char *membase; /* DPR Address */ unsigned char *version; /* For future ... */ unsigned short windowData; /* For future ... */ } ; |