2019-11-11 22:03:21 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _ASM_X86_IOBITMAP_H
|
|
|
|
#define _ASM_X86_IOBITMAP_H
|
|
|
|
|
2019-11-11 22:03:25 +00:00
|
|
|
#include <linux/refcount.h>
|
2019-11-11 22:03:21 +00:00
|
|
|
#include <asm/processor.h>
|
|
|
|
|
|
|
|
struct io_bitmap {
|
2019-11-11 22:03:22 +00:00
|
|
|
u64 sequence;
|
2019-11-11 22:03:25 +00:00
|
|
|
refcount_t refcnt;
|
2019-11-11 22:03:21 +00:00
|
|
|
/* The maximum number of bytes to copy so all zero bits are covered */
|
|
|
|
unsigned int max;
|
|
|
|
unsigned long bitmap[IO_BITMAP_LONGS];
|
|
|
|
};
|
|
|
|
|
2019-11-11 22:03:25 +00:00
|
|
|
struct task_struct;
|
|
|
|
|
|
|
|
void io_bitmap_share(struct task_struct *tsk);
|
2019-11-11 22:03:24 +00:00
|
|
|
void io_bitmap_exit(void);
|
|
|
|
|
2019-11-11 22:03:23 +00:00
|
|
|
void tss_update_io_bitmap(void);
|
|
|
|
|
2019-11-11 22:03:21 +00:00
|
|
|
#endif
|