1 #ifndef _MINIX_VBOXIF_H 2 #define _MINIX_VBOXIF_H 3 4 /*===========================================================================* 5 * Messages for VBOX device * 6 *===========================================================================*/ 7 8 /* Base type for VBOX requests and responses. */ 9 #define VBOX_RQ_BASE 0x1600 10 #define VBOX_RS_BASE 0x1680 11 12 #define IS_VBOX_RQ(type) (((type) & ~0x7f) == VBOX_RQ_BASE) 13 #define IS_VBOX_RS(type) (((type) & ~0x7f) == VBOX_RS_BASE) 14 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 */ 20 21 /* Message types for VBOX responses. */ 22 #define VBOX_REPLY (VBOX_RS_BASE + 0) /* general reply code */ 23 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 */ 32 33 #endif /* _MINIX_VBOXIF_H */ 34