tar: use utime() to restore timestamps
[minix.git] / include / minix / vboxif.h
blob1b8c04e84c13a986586ae472b2b289275051f4c7
1 #ifndef _MINIX_VBOXIF_H
2 #define _MINIX_VBOXIF_H
4 /*===========================================================================*
5 * Messages for VBOX device *
6 *===========================================================================*/
8 /* Base type for VBOX requests and responses. */
9 #define VBOX_RQ_BASE 0x1600
10 #define VBOX_RS_BASE 0x1680
12 #define IS_VBOX_RQ(type) (((type) & ~0x7f) == VBOX_RQ_BASE)
13 #define IS_VBOX_RS(type) (((type) & ~0x7f) == VBOX_RS_BASE)
15 /* Message types for VBOX requests. */
16 #define VBOX_OPEN (VBOX_RQ_BASE + 0) /* open a connection */
17 #define VBOX_CLOSE (VBOX_RQ_BASE + 1) /* close a connection */
18 #define VBOX_CALL (VBOX_RQ_BASE + 2) /* perform a call */
19 #define VBOX_CANCEL (VBOX_RQ_BASE + 3) /* cancel an ongoing call */
21 /* Message types for VBOX responses. */
22 #define VBOX_REPLY (VBOX_RS_BASE + 0) /* general reply code */
24 /* Field names for VBOX messages. */
25 #define VBOX_CONN m2_i1 /* connection identifier */
26 #define VBOX_GRANT m2_i2 /* grant ID of buffer or name */
27 #define VBOX_COUNT m2_i3 /* number of bytes or elements */
28 #define VBOX_RESULT m2_i1 /* result or error code */
29 #define VBOX_CODE m2_i2 /* VirtualBox result code */
30 #define VBOX_FUNCTION m2_l1 /* function call number */
31 #define VBOX_ID m2_l2 /* opaque request ID */
33 #endif /* _MINIX_VBOXIF_H */