|
@@ -0,0 +1,102 @@
|
|
1
|
+#include "errno.h"
|
|
2
|
+
|
|
3
|
+/*
|
|
4
|
+ * This table was generated from the relevant section of errno.h using
|
|
5
|
+ *
|
|
6
|
+ * perl -ne 'if ( /(PXENV_STATUS_(\S+))/ ) {
|
|
7
|
+ * $code = $1; $msg = $2;
|
|
8
|
+ * $msg =~ s/_/ /g; $msg = ucfirst lc $msg;
|
|
9
|
+ * $msg =~ s/(tftp|udp|arp|undi|bis|binl|pxenv|pxe|dhcp)/uc $1/ieg;
|
|
10
|
+ * print "\t{ $code, \"$msg\" },\n";
|
|
11
|
+ * }'
|
|
12
|
+ *
|
|
13
|
+ * followed by a little manual tweaking.
|
|
14
|
+ *
|
|
15
|
+ */
|
|
16
|
+static struct errortab pxe_errortab[] __errortab = {
|
|
17
|
+ { PXENV_STATUS_SUCCESS, "Success" },
|
|
18
|
+ { PXENV_STATUS_FAILURE, "Failure" },
|
|
19
|
+ { PXENV_STATUS_BAD_FUNC, "Bad function" },
|
|
20
|
+ { PXENV_STATUS_UNSUPPORTED, "Unsupported function" },
|
|
21
|
+ { PXENV_STATUS_KEEP_UNDI, "Keep UNDI" },
|
|
22
|
+ { PXENV_STATUS_KEEP_ALL, "Keep all" },
|
|
23
|
+ { PXENV_STATUS_OUT_OF_RESOURCES, "Out of resources" },
|
|
24
|
+ { PXENV_STATUS_ARP_TIMEOUT, "ARP timeout" },
|
|
25
|
+ { PXENV_STATUS_UDP_CLOSED, "UDP closed" },
|
|
26
|
+ { PXENV_STATUS_UDP_OPEN, "UDP open" },
|
|
27
|
+ { PXENV_STATUS_TFTP_CLOSED, "TFTP closed" },
|
|
28
|
+ { PXENV_STATUS_TFTP_OPEN, "TFTP open" },
|
|
29
|
+ { PXENV_STATUS_MCOPY_PROBLEM, "Memory copy problem" },
|
|
30
|
+ { PXENV_STATUS_BIS_INTEGRITY_FAILURE, "BIS integrity failure" },
|
|
31
|
+ { PXENV_STATUS_BIS_VALIDATE_FAILURE, "BIS validation failure" },
|
|
32
|
+ { PXENV_STATUS_BIS_INIT_FAILURE, "BIS init failure" },
|
|
33
|
+ { PXENV_STATUS_BIS_SHUTDOWN_FAILURE, "BIS shutdown failure" },
|
|
34
|
+ { PXENV_STATUS_BIS_GBOA_FAILURE, "BIS GBOA failure" },
|
|
35
|
+ { PXENV_STATUS_BIS_FREE_FAILURE, "BIS free failure" },
|
|
36
|
+ { PXENV_STATUS_BIS_GSI_FAILURE, "BIS GSI failure" },
|
|
37
|
+ { PXENV_STATUS_BIS_BAD_CKSUM, "BIS bad checksum" },
|
|
38
|
+ { PXENV_STATUS_TFTP_CANNOT_ARP_ADDRESS, "TFTP cannot ARP address" },
|
|
39
|
+ { PXENV_STATUS_TFTP_OPEN_TIMEOUT, "TFTP open timeout" },
|
|
40
|
+ { PXENV_STATUS_TFTP_UNKNOWN_OPCODE, "TFTP unknown opcode" },
|
|
41
|
+ { PXENV_STATUS_TFTP_READ_TIMEOUT, "TFTP read timeout" },
|
|
42
|
+ { PXENV_STATUS_TFTP_ERROR_OPCODE, "TFTP error opcode" },
|
|
43
|
+ { PXENV_STATUS_TFTP_CANNOT_OPEN_CONNECTION,
|
|
44
|
+ "TFTP cannot open connection" },
|
|
45
|
+ { PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION,
|
|
46
|
+ "TFTP cannot read from connection" },
|
|
47
|
+ { PXENV_STATUS_TFTP_TOO_MANY_PACKAGES, "TFTP too many packages" },
|
|
48
|
+ { PXENV_STATUS_TFTP_FILE_NOT_FOUND, "TFTP file not found" },
|
|
49
|
+ { PXENV_STATUS_TFTP_ACCESS_VIOLATION, "TFTP access violation" },
|
|
50
|
+ { PXENV_STATUS_TFTP_NO_MCAST_ADDRESS, "TFTP no mcast address" },
|
|
51
|
+ { PXENV_STATUS_TFTP_NO_FILESIZE, "TFTP no filesize" },
|
|
52
|
+ { PXENV_STATUS_TFTP_INVALID_PACKET_SIZE, "TFTP invalid packet size" },
|
|
53
|
+ { PXENV_STATUS_DHCP_TIMEOUT, "DHCP timeout" },
|
|
54
|
+ { PXENV_STATUS_DHCP_NO_IP_ADDRESS, "DHCP no ip address" },
|
|
55
|
+ { PXENV_STATUS_DHCP_NO_BOOTFILE_NAME, "DHCP no bootfile name" },
|
|
56
|
+ { PXENV_STATUS_DHCP_BAD_IP_ADDRESS, "DHCP bad ip address" },
|
|
57
|
+ { PXENV_STATUS_UNDI_INVALID_FUNCTION, "UNDI invalid function" },
|
|
58
|
+ { PXENV_STATUS_UNDI_MEDIATEST_FAILED, "UNDI mediatest failed" },
|
|
59
|
+ { PXENV_STATUS_UNDI_CANNOT_INIT_NIC_FOR_MCAST,
|
|
60
|
+ "UNDI cannot initialise NIC for multicast" },
|
|
61
|
+ { PXENV_STATUS_UNDI_CANNOT_INITIALIZE_NIC,
|
|
62
|
+ "UNDI cannot initialise NIC" },
|
|
63
|
+ { PXENV_STATUS_UNDI_CANNOT_INITIALIZE_PHY,
|
|
64
|
+ "UNDI cannot initialise PHY" },
|
|
65
|
+ { PXENV_STATUS_UNDI_CANNOT_READ_CONFIG_DATA,
|
|
66
|
+ "UNDI cannot read config data" },
|
|
67
|
+ { PXENV_STATUS_UNDI_CANNOT_READ_INIT_DATA,
|
|
68
|
+ "UNDI cannot read init data" },
|
|
69
|
+ { PXENV_STATUS_UNDI_BAD_MAC_ADDRESS, "UNDI bad MAC address" },
|
|
70
|
+ { PXENV_STATUS_UNDI_BAD_EEPROM_CHECKSUM, "UNDI bad EEPROM checksum" },
|
|
71
|
+ { PXENV_STATUS_UNDI_ERROR_SETTING_ISR, "UNDI error setting ISR" },
|
|
72
|
+ { PXENV_STATUS_UNDI_INVALID_STATE, "UNDI invalid state" },
|
|
73
|
+ { PXENV_STATUS_UNDI_TRANSMIT_ERROR, "UNDI transmit error" },
|
|
74
|
+ { PXENV_STATUS_UNDI_INVALID_PARAMETER, "UNDI invalid parameter" },
|
|
75
|
+ { PXENV_STATUS_BSTRAP_PROMPT_MENU, "Bootstrap prompt menu" },
|
|
76
|
+ { PXENV_STATUS_BSTRAP_MCAST_ADDR, "Bootstrap mcast addr" },
|
|
77
|
+ { PXENV_STATUS_BSTRAP_MISSING_LIST, "Bootstrap missing list" },
|
|
78
|
+ { PXENV_STATUS_BSTRAP_NO_RESPONSE, "Bootstrap no response" },
|
|
79
|
+ { PXENV_STATUS_BSTRAP_FILE_TOO_BIG, "Bootstrap file too big" },
|
|
80
|
+ { PXENV_STATUS_BINL_CANCELED_BY_KEYSTROKE,
|
|
81
|
+ "BINL canceled by keystroke" },
|
|
82
|
+ { PXENV_STATUS_BINL_NO_PXE_SERVER, "BINL no PXE server" },
|
|
83
|
+ { PXENV_STATUS_NOT_AVAILABLE_IN_PMODE,
|
|
84
|
+ "Not available in protected mode" },
|
|
85
|
+ { PXENV_STATUS_NOT_AVAILABLE_IN_RMODE, "Not available in real mode" },
|
|
86
|
+ { PXENV_STATUS_BUSD_DEVICE_NOT_SUPPORTED,
|
|
87
|
+ "BUSD device not supported" },
|
|
88
|
+ { PXENV_STATUS_LOADER_NO_FREE_BASE_MEMORY,
|
|
89
|
+ "Loader no free base memory" },
|
|
90
|
+ { PXENV_STATUS_LOADER_NO_BC_ROMID, "Loader no Base Code ROM ID" },
|
|
91
|
+ { PXENV_STATUS_LOADER_BAD_BC_ROMID, "Loader bad Base Code ROM ID" },
|
|
92
|
+ { PXENV_STATUS_LOADER_BAD_BC_RUNTIME_IMAGE,
|
|
93
|
+ "Loader bad Base Code runtime image" },
|
|
94
|
+ { PXENV_STATUS_LOADER_NO_UNDI_ROMID, "Loader no UNDI ROM ID" },
|
|
95
|
+ { PXENV_STATUS_LOADER_BAD_UNDI_ROMID, "Loader bad UNDI ROM ID" },
|
|
96
|
+ { PXENV_STATUS_LOADER_BAD_UNDI_DRIVER_IMAGE,
|
|
97
|
+ "Loader bad UNDI driver image" },
|
|
98
|
+ { PXENV_STATUS_LOADER_NO_PXE_STRUCT, "Loader no !PXE struct" },
|
|
99
|
+ { PXENV_STATUS_LOADER_NO_PXENV_STRUCT, "Loader no PXENV+ struct" },
|
|
100
|
+ { PXENV_STATUS_LOADER_UNDI_START, "Loader UNDI start" },
|
|
101
|
+ { PXENV_STATUS_LOADER_BC_START, "Loader Base Code start" },
|
|
102
|
+};
|