xref: /linux/include/uapi/linux/kernelcapi.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells /*
3607ca46eSDavid Howells  * $Id: kernelcapi.h,v 1.8.6.2 2001/02/07 11:31:31 kai Exp $
4607ca46eSDavid Howells  *
5607ca46eSDavid Howells  * Kernel CAPI 2.0 Interface for Linux
6607ca46eSDavid Howells  *
7607ca46eSDavid Howells  * (c) Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de)
8607ca46eSDavid Howells  *
9607ca46eSDavid Howells  */
10607ca46eSDavid Howells 
11607ca46eSDavid Howells #ifndef _UAPI__KERNELCAPI_H__
12607ca46eSDavid Howells #define _UAPI__KERNELCAPI_H__
13607ca46eSDavid Howells 
14607ca46eSDavid Howells #define CAPI_MAXAPPL	240	/* maximum number of applications  */
15607ca46eSDavid Howells #define CAPI_MAXCONTR	32	/* maximum number of controller    */
16607ca46eSDavid Howells #define CAPI_MAXDATAWINDOW	8
17607ca46eSDavid Howells 
18607ca46eSDavid Howells 
19607ca46eSDavid Howells typedef struct kcapi_flagdef {
20607ca46eSDavid Howells 	int contr;
21607ca46eSDavid Howells 	int flag;
22607ca46eSDavid Howells } kcapi_flagdef;
23607ca46eSDavid Howells 
24607ca46eSDavid Howells typedef struct kcapi_carddef {
25607ca46eSDavid Howells 	char		driver[32];
26607ca46eSDavid Howells 	unsigned int	port;
27607ca46eSDavid Howells 	unsigned	irq;
28607ca46eSDavid Howells 	unsigned int	membase;
29607ca46eSDavid Howells 	int		cardnr;
30607ca46eSDavid Howells } kcapi_carddef;
31607ca46eSDavid Howells 
32607ca46eSDavid Howells /* new ioctls >= 10 */
33607ca46eSDavid Howells #define KCAPI_CMD_TRACE		10
34607ca46eSDavid Howells #define KCAPI_CMD_ADDCARD	11	/* OBSOLETE */
35607ca46eSDavid Howells 
36607ca46eSDavid Howells /*
37607ca46eSDavid Howells  * flag > 2 => trace also data
38607ca46eSDavid Howells  * flag & 1 => show trace
39607ca46eSDavid Howells  */
40607ca46eSDavid Howells #define KCAPI_TRACE_OFF			0
41607ca46eSDavid Howells #define KCAPI_TRACE_SHORT_NO_DATA	1
42607ca46eSDavid Howells #define KCAPI_TRACE_FULL_NO_DATA	2
43607ca46eSDavid Howells #define KCAPI_TRACE_SHORT		3
44607ca46eSDavid Howells #define KCAPI_TRACE_FULL		4
45607ca46eSDavid Howells 
46607ca46eSDavid Howells 
47607ca46eSDavid Howells 
48607ca46eSDavid Howells #endif /* _UAPI__KERNELCAPI_H__ */
49