162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci#ifndef _PARISC_MSGBUF_H
362306a36Sopenharmony_ci#define _PARISC_MSGBUF_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm/bitsperlong.h>
662306a36Sopenharmony_ci#include <asm/ipcbuf.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/*
962306a36Sopenharmony_ci * The msqid64_ds structure for parisc architecture, copied from sparc.
1062306a36Sopenharmony_ci * Note extra padding because this structure is passed back and forth
1162306a36Sopenharmony_ci * between kernel and user space.
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci * Pad space is left for:
1462306a36Sopenharmony_ci * - 2 miscellaneous 32-bit values
1562306a36Sopenharmony_ci */
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_cistruct msqid64_ds {
1862306a36Sopenharmony_ci	struct ipc64_perm msg_perm;
1962306a36Sopenharmony_ci#if __BITS_PER_LONG == 64
2062306a36Sopenharmony_ci	long		 msg_stime;	/* last msgsnd time */
2162306a36Sopenharmony_ci	long		 msg_rtime;	/* last msgrcv time */
2262306a36Sopenharmony_ci	long		 msg_ctime;	/* last change time */
2362306a36Sopenharmony_ci#else
2462306a36Sopenharmony_ci	unsigned long	msg_stime_high;
2562306a36Sopenharmony_ci	unsigned long	msg_stime;	/* last msgsnd time */
2662306a36Sopenharmony_ci	unsigned long	msg_rtime_high;
2762306a36Sopenharmony_ci	unsigned long	msg_rtime;	/* last msgrcv time */
2862306a36Sopenharmony_ci	unsigned long	msg_ctime_high;
2962306a36Sopenharmony_ci	unsigned long	msg_ctime;	/* last change time */
3062306a36Sopenharmony_ci#endif
3162306a36Sopenharmony_ci	unsigned long	msg_cbytes;	/* current number of bytes on queue */
3262306a36Sopenharmony_ci	unsigned long	msg_qnum;	/* number of messages in queue */
3362306a36Sopenharmony_ci	unsigned long	msg_qbytes;	/* max number of bytes on queue */
3462306a36Sopenharmony_ci	__kernel_pid_t	msg_lspid;	/* pid of last msgsnd */
3562306a36Sopenharmony_ci	__kernel_pid_t	msg_lrpid;	/* last receive pid */
3662306a36Sopenharmony_ci	unsigned long	__unused1;
3762306a36Sopenharmony_ci	unsigned long	__unused2;
3862306a36Sopenharmony_ci};
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#endif /* _PARISC_MSGBUF_H */
41