MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / poll.h
blobf6b9ab8a22a615bb7617b003e035bf0e77c143af
1 #ifndef __NIOS2_POLL_H
2 #define __NIOS2_POLL_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/poll.h
8 * Derived from various works, Alpha, ix86, M68K, Sparc, ...et al
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 #define POLLIN 1
29 #define POLLPRI 2
30 #define POLLOUT 4
31 #define POLLERR 8
32 #define POLLHUP 16
33 #define POLLNVAL 32
34 #define POLLRDNORM 64
35 #define POLLWRNORM POLLOUT
36 #define POLLRDBAND 128
37 #define POLLWRBAND 256
38 #define POLLMSG 0x0400
39 #define POLLREMOVE 0x1000
40 #define POLLRDHUP 0x2000
42 struct pollfd {
43 int fd;
44 short events;
45 short revents;
48 #endif