Path: blob/master/arch/powerpc/platforms/pseries/papr-hvpipe.h
29274 views
/* SPDX-License-Identifier: GPL-2.0-only */1#ifndef _PAPR_HVPIPE_H2#define _PAPR_HVPIPE_H34#define HVPIPE_HMC_ID_MASK 0x02000000 /*02-HMC,00-reserved and HMC ID */5#define HVPIPE_MAX_WRITE_BUFFER_SIZE 40486/*7* hvpipe specific RTAS return values8*/9#define RTAS_HVPIPE_CLOSED -41011#define HVPIPE_HDR_LEN sizeof(struct papr_hvpipe_hdr)1213enum hvpipe_migrate_action {14HVPIPE_SUSPEND,15HVPIPE_RESUME,16};1718struct hvpipe_source_info {19struct list_head list; /* list of sources */20u32 srcID;21u32 hvpipe_status;22wait_queue_head_t recv_wqh; /* wake up poll() waitq */23struct task_struct *tsk;24};2526/*27* Source ID Format 0xCCRRQQQQ28* CC = indicating value is source type (ex: 0x02 for HMC)29* RR = 0x00 (reserved)30* QQQQ = 0x0000 – 0xFFFF indicating the source index indetifier31*/32struct hvpipe_event_buf {33__be32 srcID; /* Source ID */34u8 event_type; /* 0x01 for hvpipe message available */35/* from specified src ID */36/* 0x02 for loss of pipe connection */37/* with specified src ID */38};3940void hvpipe_migration_handler(int action);41#endif /* _PAPR_HVPIPE_H */424344