2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved.
8 #ifndef _ASM_IA64_SN_PRIO_H
9 #define _ASM_IA64_SN_PRIO_H
11 #include <linux/types.h>
14 * Priority I/O function prototypes and macro definitions
17 typedef long long bandwidth_t;
19 /* These should be the same as FREAD/FWRITE */
20 #define PRIO_READ_ALLOCATE 0x1
21 #define PRIO_WRITE_ALLOCATE 0x2
22 #define PRIO_READWRITE_ALLOCATE (PRIO_READ_ALLOCATE | PRIO_WRITE_ALLOCATE)
24 extern int prioSetBandwidth (int /* fd */,
26 bandwidth_t /* bytes_per_sec */,
28 extern int prioGetBandwidth (int /* fd */,
29 bandwidth_t * /* read_bw */,
30 bandwidth_t * /* write_bw */);
31 extern int prioLock (pid_t *);
32 extern int prioUnlock (void);
35 #define PRIO_SUCCESS 0
36 #define PRIO_FAIL (-1)
38 #endif /* _ASM_IA64_SN_PRIO_H */