1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_IOBITMAP_H
3 #define _ASM_X86_IOBITMAP_H
5 #include <linux/refcount.h>
6 #include <asm/processor.h>
11 /* The maximum number of bytes to copy so all zero bits are covered */
13 unsigned long bitmap
[IO_BITMAP_LONGS
];
18 #ifdef CONFIG_X86_IOPL_IOPERM
19 void io_bitmap_share(struct task_struct
*tsk
);
20 void io_bitmap_exit(void);
22 void tss_update_io_bitmap(void);
24 static inline void io_bitmap_share(struct task_struct
*tsk
) { }
25 static inline void io_bitmap_exit(void) { }
26 static inline void tss_update_io_bitmap(void) { }