1*607ca46eSDavid Howells /* 2*607ca46eSDavid Howells * $Id: kernelcapi.h,v 1.8.6.2 2001/02/07 11:31:31 kai Exp $ 3*607ca46eSDavid Howells * 4*607ca46eSDavid Howells * Kernel CAPI 2.0 Interface for Linux 5*607ca46eSDavid Howells * 6*607ca46eSDavid Howells * (c) Copyright 1997 by Carsten Paeth ([email protected]) 7*607ca46eSDavid Howells * 8*607ca46eSDavid Howells */ 9*607ca46eSDavid Howells 10*607ca46eSDavid Howells #ifndef _UAPI__KERNELCAPI_H__ 11*607ca46eSDavid Howells #define _UAPI__KERNELCAPI_H__ 12*607ca46eSDavid Howells 13*607ca46eSDavid Howells #define CAPI_MAXAPPL 240 /* maximum number of applications */ 14*607ca46eSDavid Howells #define CAPI_MAXCONTR 32 /* maximum number of controller */ 15*607ca46eSDavid Howells #define CAPI_MAXDATAWINDOW 8 16*607ca46eSDavid Howells 17*607ca46eSDavid Howells 18*607ca46eSDavid Howells typedef struct kcapi_flagdef { 19*607ca46eSDavid Howells int contr; 20*607ca46eSDavid Howells int flag; 21*607ca46eSDavid Howells } kcapi_flagdef; 22*607ca46eSDavid Howells 23*607ca46eSDavid Howells typedef struct kcapi_carddef { 24*607ca46eSDavid Howells char driver[32]; 25*607ca46eSDavid Howells unsigned int port; 26*607ca46eSDavid Howells unsigned irq; 27*607ca46eSDavid Howells unsigned int membase; 28*607ca46eSDavid Howells int cardnr; 29*607ca46eSDavid Howells } kcapi_carddef; 30*607ca46eSDavid Howells 31*607ca46eSDavid Howells /* new ioctls >= 10 */ 32*607ca46eSDavid Howells #define KCAPI_CMD_TRACE 10 33*607ca46eSDavid Howells #define KCAPI_CMD_ADDCARD 11 /* OBSOLETE */ 34*607ca46eSDavid Howells 35*607ca46eSDavid Howells /* 36*607ca46eSDavid Howells * flag > 2 => trace also data 37*607ca46eSDavid Howells * flag & 1 => show trace 38*607ca46eSDavid Howells */ 39*607ca46eSDavid Howells #define KCAPI_TRACE_OFF 0 40*607ca46eSDavid Howells #define KCAPI_TRACE_SHORT_NO_DATA 1 41*607ca46eSDavid Howells #define KCAPI_TRACE_FULL_NO_DATA 2 42*607ca46eSDavid Howells #define KCAPI_TRACE_SHORT 3 43*607ca46eSDavid Howells #define KCAPI_TRACE_FULL 4 44*607ca46eSDavid Howells 45*607ca46eSDavid Howells 46*607ca46eSDavid Howells 47*607ca46eSDavid Howells #endif /* _UAPI__KERNELCAPI_H__ */ 48