diff options
author | Karsten Keil <kkeil@linux-pingi.de> | 2012-05-15 19:51:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 15:23:46 -0400 |
commit | 034005a0119b9c2aabe0ac3953eb9a65ca937a69 (patch) | |
tree | a7ee0735f2a9f87eb0207c27930a3e3c748bc1fe /include/linux/mISDNif.h | |
parent | 7206e659f689558b41aa058c3040b081cb281d03 (diff) |
mISDN: Allow to set a minimum length for transparent data
If the FIFO of the card is small, many short messages are queued up to
the upper layers and the userspace. This change allows the applications
to set a minimum datalen they want from the drivers.
Create a common control function to avoid code duplication in each
driver.
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mISDNif.h')
-rw-r--r-- | include/linux/mISDNif.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index ce6e613dff4c..246a3529ecf6 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h | |||
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | #define MISDN_MAJOR_VERSION 1 | 38 | #define MISDN_MAJOR_VERSION 1 |
39 | #define MISDN_MINOR_VERSION 1 | 39 | #define MISDN_MINOR_VERSION 1 |
40 | #define MISDN_RELEASE 28 | 40 | #define MISDN_RELEASE 29 |
41 | 41 | ||
42 | /* primitives for information exchange | 42 | /* primitives for information exchange |
43 | * generell format | 43 | * generell format |
@@ -365,6 +365,7 @@ clear_channelmap(u_int nr, u_char *map) | |||
365 | #define MISDN_CTRL_LOOP 0x0001 | 365 | #define MISDN_CTRL_LOOP 0x0001 |
366 | #define MISDN_CTRL_CONNECT 0x0002 | 366 | #define MISDN_CTRL_CONNECT 0x0002 |
367 | #define MISDN_CTRL_DISCONNECT 0x0004 | 367 | #define MISDN_CTRL_DISCONNECT 0x0004 |
368 | #define MISDN_CTRL_RX_BUFFER 0x0008 | ||
368 | #define MISDN_CTRL_PCMCONNECT 0x0010 | 369 | #define MISDN_CTRL_PCMCONNECT 0x0010 |
369 | #define MISDN_CTRL_PCMDISCONNECT 0x0020 | 370 | #define MISDN_CTRL_PCMDISCONNECT 0x0020 |
370 | #define MISDN_CTRL_SETPEER 0x0040 | 371 | #define MISDN_CTRL_SETPEER 0x0040 |
@@ -387,6 +388,12 @@ clear_channelmap(u_int nr, u_char *map) | |||
387 | #define MISDN_CTRL_HFC_WD_INIT 0x4009 | 388 | #define MISDN_CTRL_HFC_WD_INIT 0x4009 |
388 | #define MISDN_CTRL_HFC_WD_RESET 0x400A | 389 | #define MISDN_CTRL_HFC_WD_RESET 0x400A |
389 | 390 | ||
391 | /* special RX buffer value for MISDN_CTRL_RX_BUFFER request.p1 is the minimum | ||
392 | * buffer size request.p2 the maximum. Using MISDN_CTRL_RX_SIZE_IGNORE will | ||
393 | * not change the value, but still read back the actual stetting. | ||
394 | */ | ||
395 | #define MISDN_CTRL_RX_SIZE_IGNORE -1 | ||
396 | |||
390 | /* socket options */ | 397 | /* socket options */ |
391 | #define MISDN_TIME_STAMP 0x0001 | 398 | #define MISDN_TIME_STAMP 0x0001 |
392 | 399 | ||