|
Last change
on this file since 48 was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
896 bytes
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * |
|---|
| 3 | * Kernel CAPI 2.0 Interface for Linux |
|---|
| 4 | * |
|---|
| 5 | * (c) Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de) |
|---|
| 6 | * |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | #ifndef __KERNELCAPI_H__ |
|---|
| 10 | #define __KERNELCAPI_H__ |
|---|
| 11 | |
|---|
| 12 | #define CAPI_MAXAPPL 240 /* maximum number of applications */ |
|---|
| 13 | #define CAPI_MAXCONTR 32 /* maximum number of controller */ |
|---|
| 14 | #define CAPI_MAXDATAWINDOW 8 |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | typedef struct kcapi_flagdef { |
|---|
| 18 | int contr; |
|---|
| 19 | int flag; |
|---|
| 20 | } kcapi_flagdef; |
|---|
| 21 | |
|---|
| 22 | typedef struct kcapi_carddef { |
|---|
| 23 | char driver[32]; |
|---|
| 24 | unsigned int port; |
|---|
| 25 | unsigned irq; |
|---|
| 26 | unsigned int membase; |
|---|
| 27 | int cardnr; |
|---|
| 28 | } kcapi_carddef; |
|---|
| 29 | |
|---|
| 30 | /* new ioctls >= 10 */ |
|---|
| 31 | #define KCAPI_CMD_TRACE 10 |
|---|
| 32 | #define KCAPI_CMD_ADDCARD 11 /* OBSOLETE */ |
|---|
| 33 | |
|---|
| 34 | /* |
|---|
| 35 | * flag > 2 => trace also data |
|---|
| 36 | * flag & 1 => show trace |
|---|
| 37 | */ |
|---|
| 38 | #define KCAPI_TRACE_OFF 0 |
|---|
| 39 | #define KCAPI_TRACE_SHORT_NO_DATA 1 |
|---|
| 40 | #define KCAPI_TRACE_FULL_NO_DATA 2 |
|---|
| 41 | #define KCAPI_TRACE_SHORT 3 |
|---|
| 42 | #define KCAPI_TRACE_FULL 4 |
|---|
| 43 | |
|---|
| 44 | #endif /* __KERNELCAPI_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.