Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /******************************************************************************
0003  *
0004  * atm_nicstar.h
0005  *
0006  * Driver-specific declarations for use by NICSTAR driver specific utils.
0007  *
0008  * Author: Rui Prior
0009  *
0010  * (C) INESC 1998
0011  *
0012  ******************************************************************************/
0013 
0014 
0015 #ifndef LINUX_ATM_NICSTAR_H
0016 #define LINUX_ATM_NICSTAR_H
0017 
0018 /* Note: non-kernel programs including this file must also include
0019  * sys/types.h for struct timeval
0020  */
0021 
0022 #include <linux/atmapi.h>
0023 #include <linux/atmioc.h>
0024 
0025 #define NS_GETPSTAT _IOWR('a',ATMIOC_SARPRV+1,struct atmif_sioc)
0026                         /* get pool statistics */
0027 #define NS_SETBUFLEV    _IOW('a',ATMIOC_SARPRV+2,struct atmif_sioc)
0028                         /* set buffer level markers */
0029 #define NS_ADJBUFLEV    _IO('a',ATMIOC_SARPRV+3)
0030                         /* adjust buffer level */
0031 
0032 typedef struct buf_nr
0033 {
0034    unsigned min;
0035    unsigned init;
0036    unsigned max;
0037 }buf_nr;
0038 
0039 
0040 typedef struct pool_levels
0041 {
0042    int buftype;
0043    int count;       /* (At least for now) only used in NS_GETPSTAT */
0044    buf_nr level;
0045 } pool_levels;
0046 
0047 /* type must be one of the following: */
0048 #define NS_BUFTYPE_SMALL 1
0049 #define NS_BUFTYPE_LARGE 2
0050 #define NS_BUFTYPE_HUGE 3
0051 #define NS_BUFTYPE_IOVEC 4
0052 
0053 
0054 #endif /* LINUX_ATM_NICSTAR_H */