1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /****************************************************************************** 3607ca46eSDavid Howells * 4607ca46eSDavid Howells * atm_nicstar.h 5607ca46eSDavid Howells * 6607ca46eSDavid Howells * Driver-specific declarations for use by NICSTAR driver specific utils. 7607ca46eSDavid Howells * 8607ca46eSDavid Howells * Author: Rui Prior 9607ca46eSDavid Howells * 10607ca46eSDavid Howells * (C) INESC 1998 11607ca46eSDavid Howells * 12607ca46eSDavid Howells ******************************************************************************/ 13607ca46eSDavid Howells 14607ca46eSDavid Howells 15607ca46eSDavid Howells #ifndef LINUX_ATM_NICSTAR_H 16607ca46eSDavid Howells #define LINUX_ATM_NICSTAR_H 17607ca46eSDavid Howells 18607ca46eSDavid Howells /* Note: non-kernel programs including this file must also include 19607ca46eSDavid Howells * sys/types.h for struct timeval 20607ca46eSDavid Howells */ 21607ca46eSDavid Howells 22607ca46eSDavid Howells #include <linux/atmapi.h> 23607ca46eSDavid Howells #include <linux/atmioc.h> 24607ca46eSDavid Howells 25607ca46eSDavid Howells #define NS_GETPSTAT _IOWR('a',ATMIOC_SARPRV+1,struct atmif_sioc) 26607ca46eSDavid Howells /* get pool statistics */ 27607ca46eSDavid Howells #define NS_SETBUFLEV _IOW('a',ATMIOC_SARPRV+2,struct atmif_sioc) 28607ca46eSDavid Howells /* set buffer level markers */ 29607ca46eSDavid Howells #define NS_ADJBUFLEV _IO('a',ATMIOC_SARPRV+3) 30607ca46eSDavid Howells /* adjust buffer level */ 31607ca46eSDavid Howells 32607ca46eSDavid Howells typedef struct buf_nr 33607ca46eSDavid Howells { 34607ca46eSDavid Howells unsigned min; 35607ca46eSDavid Howells unsigned init; 36607ca46eSDavid Howells unsigned max; 37607ca46eSDavid Howells }buf_nr; 38607ca46eSDavid Howells 39607ca46eSDavid Howells 40607ca46eSDavid Howells typedef struct pool_levels 41607ca46eSDavid Howells { 42607ca46eSDavid Howells int buftype; 43607ca46eSDavid Howells int count; /* (At least for now) only used in NS_GETPSTAT */ 44607ca46eSDavid Howells buf_nr level; 45607ca46eSDavid Howells } pool_levels; 46607ca46eSDavid Howells 47607ca46eSDavid Howells /* type must be one of the following: */ 48607ca46eSDavid Howells #define NS_BUFTYPE_SMALL 1 49607ca46eSDavid Howells #define NS_BUFTYPE_LARGE 2 50607ca46eSDavid Howells #define NS_BUFTYPE_HUGE 3 51607ca46eSDavid Howells #define NS_BUFTYPE_IOVEC 4 52607ca46eSDavid Howells 53607ca46eSDavid Howells 54607ca46eSDavid Howells #endif /* LINUX_ATM_NICSTAR_H */ 55