Path: blob/master/arch/powerpc/include/uapi/asm/papr-hvpipe.h
29274 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _UAPI_PAPR_HVPIPE_H_2#define _UAPI_PAPR_HVPIPE_H_34#include <linux/types.h>5#include <asm/ioctl.h>6#include <asm/papr-miscdev.h>78/*9* This header is included in payload between OS and the user10* space.11* flags: OS notifies the user space whether the hvpipe is12* closed or the buffer has the payload.13*/14struct papr_hvpipe_hdr {15__u8 version;16__u8 reserved[3];17__u32 flags;18__u8 reserved2[40];19};2021/*22* ioctl for /dev/papr-hvpipe23*/24#define PAPR_HVPIPE_IOC_CREATE_HANDLE _IOW(PAPR_MISCDEV_IOC_ID, 9, __u32)2526/*27* hvpipe_hdr flags used for read()28*/29#define HVPIPE_MSG_AVAILABLE 0x01 /* Payload is available */30#define HVPIPE_LOST_CONNECTION 0x02 /* Pipe connection is closed/unavailable */3132#endif /* _UAPI_PAPR_HVPIPE_H_ */333435