122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef __ASM_GENERIC_POLL_H
722851890Sopenharmony_ci#define __ASM_GENERIC_POLL_H
822851890Sopenharmony_ci#define POLLIN		0x0001
922851890Sopenharmony_ci#define POLLPRI		0x0002
1022851890Sopenharmony_ci#define POLLOUT		0x0004
1122851890Sopenharmony_ci#define POLLERR		0x0008
1222851890Sopenharmony_ci#define POLLHUP		0x0010
1322851890Sopenharmony_ci#define POLLNVAL	0x0020
1422851890Sopenharmony_ci#define POLLRDNORM	0x0040
1522851890Sopenharmony_ci#define POLLRDBAND	0x0080
1622851890Sopenharmony_ci#ifndef POLLWRNORM
1722851890Sopenharmony_ci#define POLLWRNORM	0x0100
1822851890Sopenharmony_ci#endif
1922851890Sopenharmony_ci#ifndef POLLWRBAND
2022851890Sopenharmony_ci#define POLLWRBAND	0x0200
2122851890Sopenharmony_ci#endif
2222851890Sopenharmony_ci#ifndef POLLMSG
2322851890Sopenharmony_ci#define POLLMSG		0x0400
2422851890Sopenharmony_ci#endif
2522851890Sopenharmony_ci#ifndef POLLREMOVE
2622851890Sopenharmony_ci#define POLLREMOVE	0x1000
2722851890Sopenharmony_ci#endif
2822851890Sopenharmony_ci#ifndef POLLRDHUP
2922851890Sopenharmony_ci#define POLLRDHUP       0x2000
3022851890Sopenharmony_ci#endif
3122851890Sopenharmony_ci#define POLLFREE	(__force __poll_t)0x4000
3222851890Sopenharmony_ci#define POLL_BUSY_LOOP	(__force __poll_t)0x8000
3322851890Sopenharmony_cistruct pollfd {
3422851890Sopenharmony_ci	int fd;
3522851890Sopenharmony_ci	short events;
3622851890Sopenharmony_ci	short revents;
3722851890Sopenharmony_ci};
3822851890Sopenharmony_ci#endif
39