1 /* controlvmcompletionstatus.c
3 * Copyright (C) 2010 - 2013 UNISYS CORPORATION
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
18 /* Defines for all valid values returned in the response message header
19 * completionStatus field. See controlvmchannel.h for description of
20 * the header: _CONTROLVM_MESSAGE_HEADER.
23 #ifndef __CONTROLVMCOMPLETIONSTATUS_H__
24 #define __CONTROLVMCOMPLETIONSTATUS_H__
26 /* General Errors------------------------------------------------------[0-99] */
27 #define CONTROLVM_RESP_SUCCESS 0
28 #define CONTROLVM_RESP_ERROR_ALREADY_DONE 1
29 #define CONTROLVM_RESP_ERROR_IOREMAP_FAILED 2
30 #define CONTROLVM_RESP_ERROR_KMALLOC_FAILED 3
31 #define CONTROLVM_RESP_ERROR_MESSAGE_ID_UNKNOWN 4
32 #define CONTROLVM_RESP_ERROR_MESSAGE_ID_INVALID_FOR_CLIENT 5
34 /* CONTROLVM_INIT_CHIPSET-------------------------------------------[100-199] */
35 #define CONTROLVM_RESP_ERROR_CLIENT_SWITCHCOUNT_NONZERO 100
36 #define CONTROLVM_RESP_ERROR_EXPECTED_CHIPSET_INIT 101
38 /* Maximum Limit----------------------------------------------------[200-299] */
39 #define CONTROLVM_RESP_ERROR_MAX_BUSES 201 /* BUS_CREATE */
40 #define CONTROLVM_RESP_ERROR_MAX_DEVICES 202 /* DEVICE_CREATE */
41 /* Payload and Parameter Related------------------------------------[400-499] */
42 #define CONTROLVM_RESP_ERROR_PAYLOAD_INVALID 400 /* SWITCH_ATTACHEXTPORT,
44 #define CONTROLVM_RESP_ERROR_INITIATOR_PARAMETER_INVALID 401 /* Multiple */
45 #define CONTROLVM_RESP_ERROR_TARGET_PARAMETER_INVALID 402 /* DEVICE_CONFIGURE */
46 #define CONTROLVM_RESP_ERROR_CLIENT_PARAMETER_INVALID 403 /* DEVICE_CONFIGURE */
47 /* Specified[Packet Structure] Value-------------------------------[500-599] */
48 #define CONTROLVM_RESP_ERROR_BUS_INVALID 500 /* SWITCH_ATTACHINTPORT,
53 #define CONTROLVM_RESP_ERROR_DEVICE_INVALID 501 /* SWITCH_ATTACHINTPORT */
57 #define CONTROLVM_RESP_ERROR_CHANNEL_INVALID 502 /* DEVICE_CREATE,
59 /* Partition Driver Callback Interface----------------------[600-699] */
60 #define CONTROLVM_RESP_ERROR_VIRTPCI_DRIVER_FAILURE 604 /* BUS_CREATE,
64 /* Unable to invoke VIRTPCI callback */
65 #define CONTROLVM_RESP_ERROR_VIRTPCI_DRIVER_CALLBACK_ERROR 605
70 /* VIRTPCI Callback returned error */
71 #define CONTROLVM_RESP_ERROR_GENERIC_DRIVER_CALLBACK_ERROR 606
72 /* SWITCH_ATTACHEXTPORT,
73 * SWITCH_DETACHEXTPORT
76 /* generic device callback returned error */
77 /* Bus Related------------------------------------------------------[700-799] */
78 #define CONTROLVM_RESP_ERROR_BUS_DEVICE_ATTACHED 700 /* BUS_DESTROY */
79 /* Channel Related--------------------------------------------------[800-899] */
80 #define CONTROLVM_RESP_ERROR_CHANNEL_TYPE_UNKNOWN 800 /* GET_CHANNELINFO,
82 #define CONTROLVM_RESP_ERROR_CHANNEL_SIZE_TOO_SMALL 801 /* DEVICE_CREATE */
83 /* Chipset Shutdown Related---------------------------------------[1000-1099] */
84 #define CONTROLVM_RESP_ERROR_CHIPSET_SHUTDOWN_FAILED 1000
85 #define CONTROLVM_RESP_ERROR_CHIPSET_SHUTDOWN_ALREADY_ACTIVE 1001
87 /* Chipset Stop Related-------------------------------------------[1100-1199] */
88 #define CONTROLVM_RESP_ERROR_CHIPSET_STOP_FAILED_BUS 1100
89 #define CONTROLVM_RESP_ERROR_CHIPSET_STOP_FAILED_SWITCH 1101
91 /* Device Related-------------------------------------------------[1400-1499] */
92 #define CONTROLVM_RESP_ERROR_DEVICE_UDEV_TIMEOUT 1400
94 #endif /* __CONTROLVMCOMPLETIONSTATUS_H__ not defined */