• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _GPXE_ERRFILE_H
2 #define _GPXE_ERRFILE_H
3 
4 /** @file
5  *
6  * Error file identifiers
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER );
11 
12 #include <bits/errfile.h>
13 
14 /**
15  * @defgroup errfilecat Error file identifier categories
16  *
17  * @{
18  */
19 
20 #define ERRFILE_CORE		0x00002000	/**< Core code */
21 #define ERRFILE_DRIVER		0x00004000	/**< Driver code */
22 #define ERRFILE_NET		0x00006000	/**< Networking code */
23 #define ERRFILE_IMAGE		0x00008000	/**< Image code */
24 #define ERRFILE_OTHER		0x0000e000	/**< Any other code */
25 
26 /** @} */
27 
28 /** Flag for architecture-dependent error files */
29 #define ERRFILE_ARCH		0x00800000
30 
31 /**
32  * @defgroup errfile Error file identifiers
33  *
34  * These values are automatically incorporated into the definitions
35  * for error numbers such as EINVAL.
36  *
37  * @{
38  */
39 
40 #define ERRFILE_asprintf	       ( ERRFILE_CORE | 0x00000000 )
41 #define ERRFILE_downloader	       ( ERRFILE_CORE | 0x00010000 )
42 #define ERRFILE_exec		       ( ERRFILE_CORE | 0x00020000 )
43 #define ERRFILE_hw		       ( ERRFILE_CORE | 0x00030000 )
44 #define ERRFILE_iobuf		       ( ERRFILE_CORE | 0x00040000 )
45 #define ERRFILE_job		       ( ERRFILE_CORE | 0x00050000 )
46 #define ERRFILE_linebuf		       ( ERRFILE_CORE | 0x00060000 )
47 #define ERRFILE_monojob		       ( ERRFILE_CORE | 0x00070000 )
48 #define ERRFILE_nvo		       ( ERRFILE_CORE | 0x00080000 )
49 #define ERRFILE_open		       ( ERRFILE_CORE | 0x00090000 )
50 #define ERRFILE_posix_io	       ( ERRFILE_CORE | 0x000a0000 )
51 #define ERRFILE_resolv		       ( ERRFILE_CORE | 0x000b0000 )
52 #define ERRFILE_settings	       ( ERRFILE_CORE | 0x000c0000 )
53 #define ERRFILE_vsprintf	       ( ERRFILE_CORE | 0x000d0000 )
54 #define ERRFILE_xfer		       ( ERRFILE_CORE | 0x000e0000 )
55 #define ERRFILE_bitmap		       ( ERRFILE_CORE | 0x000f0000 )
56 
57 #define ERRFILE_eisa		     ( ERRFILE_DRIVER | 0x00000000 )
58 #define ERRFILE_isa		     ( ERRFILE_DRIVER | 0x00010000 )
59 #define ERRFILE_isapnp		     ( ERRFILE_DRIVER | 0x00020000 )
60 #define ERRFILE_mca		     ( ERRFILE_DRIVER | 0x00030000 )
61 #define ERRFILE_pci		     ( ERRFILE_DRIVER | 0x00040000 )
62 
63 #define ERRFILE_nvs		     ( ERRFILE_DRIVER | 0x00100000 )
64 #define ERRFILE_spi		     ( ERRFILE_DRIVER | 0x00110000 )
65 #define ERRFILE_i2c_bit		     ( ERRFILE_DRIVER | 0x00120000 )
66 #define ERRFILE_spi_bit		     ( ERRFILE_DRIVER | 0x00130000 )
67 
68 #define ERRFILE_3c509		     ( ERRFILE_DRIVER | 0x00200000 )
69 #define ERRFILE_bnx2		     ( ERRFILE_DRIVER | 0x00210000 )
70 #define ERRFILE_cs89x0		     ( ERRFILE_DRIVER | 0x00220000 )
71 #define ERRFILE_eepro		     ( ERRFILE_DRIVER | 0x00230000 )
72 #define ERRFILE_etherfabric	     ( ERRFILE_DRIVER | 0x00240000 )
73 #define ERRFILE_legacy		     ( ERRFILE_DRIVER | 0x00250000 )
74 #define ERRFILE_natsemi		     ( ERRFILE_DRIVER | 0x00260000 )
75 #define ERRFILE_pnic		     ( ERRFILE_DRIVER | 0x00270000 )
76 #define ERRFILE_prism2_pci	     ( ERRFILE_DRIVER | 0x00280000 )
77 #define ERRFILE_prism2_plx	     ( ERRFILE_DRIVER | 0x00290000 )
78 #define ERRFILE_rtl8139		     ( ERRFILE_DRIVER | 0x002a0000 )
79 #define ERRFILE_smc9000		     ( ERRFILE_DRIVER | 0x002b0000 )
80 #define ERRFILE_tg3		     ( ERRFILE_DRIVER | 0x002c0000 )
81 #define ERRFILE_3c509_eisa	     ( ERRFILE_DRIVER | 0x002d0000 )
82 #define ERRFILE_3c515		     ( ERRFILE_DRIVER | 0x002e0000 )
83 #define ERRFILE_3c529		     ( ERRFILE_DRIVER | 0x002f0000 )
84 #define ERRFILE_3c595		     ( ERRFILE_DRIVER | 0x00300000 )
85 #define ERRFILE_3c5x9		     ( ERRFILE_DRIVER | 0x00310000 )
86 #define ERRFILE_3c90x		     ( ERRFILE_DRIVER | 0x00320000 )
87 #define ERRFILE_amd8111e	     ( ERRFILE_DRIVER | 0x00330000 )
88 #define ERRFILE_davicom		     ( ERRFILE_DRIVER | 0x00340000 )
89 #define ERRFILE_depca		     ( ERRFILE_DRIVER | 0x00350000 )
90 #define ERRFILE_dmfe		     ( ERRFILE_DRIVER | 0x00360000 )
91 #define ERRFILE_eepro100	     ( ERRFILE_DRIVER | 0x00380000 )
92 #define ERRFILE_epic100		     ( ERRFILE_DRIVER | 0x00390000 )
93 #define ERRFILE_forcedeth	     ( ERRFILE_DRIVER | 0x003a0000 )
94 #define ERRFILE_mtd80x		     ( ERRFILE_DRIVER | 0x003b0000 )
95 #define ERRFILE_ns83820		     ( ERRFILE_DRIVER | 0x003c0000 )
96 #define ERRFILE_ns8390		     ( ERRFILE_DRIVER | 0x003d0000 )
97 #define ERRFILE_pcnet32		     ( ERRFILE_DRIVER | 0x003e0000 )
98 #define ERRFILE_r8169		     ( ERRFILE_DRIVER | 0x003f0000 )
99 #define ERRFILE_sis900		     ( ERRFILE_DRIVER | 0x00400000 )
100 #define ERRFILE_sundance	     ( ERRFILE_DRIVER | 0x00410000 )
101 #define ERRFILE_tlan		     ( ERRFILE_DRIVER | 0x00420000 )
102 #define ERRFILE_tulip		     ( ERRFILE_DRIVER | 0x00430000 )
103 #define ERRFILE_via_rhine	     ( ERRFILE_DRIVER | 0x00440000 )
104 #define ERRFILE_via_velocity	     ( ERRFILE_DRIVER | 0x00450000 )
105 #define ERRFILE_w89c840		     ( ERRFILE_DRIVER | 0x00460000 )
106 #define ERRFILE_ipoib		     ( ERRFILE_DRIVER | 0x00470000 )
107 #define ERRFILE_e1000		     ( ERRFILE_DRIVER | 0x00480000 )
108 #define ERRFILE_e1000_hw	     ( ERRFILE_DRIVER | 0x00490000 )
109 #define ERRFILE_mtnic		     ( ERRFILE_DRIVER | 0x004a0000 )
110 #define ERRFILE_phantom		     ( ERRFILE_DRIVER | 0x004b0000 )
111 #define ERRFILE_ne2k_isa	     ( ERRFILE_DRIVER | 0x004c0000 )
112 #define ERRFILE_b44		     ( ERRFILE_DRIVER | 0x004d0000 )
113 #define ERRFILE_rtl818x		     ( ERRFILE_DRIVER | 0x004e0000 )
114 #define ERRFILE_sky2                 ( ERRFILE_DRIVER | 0x004f0000 )
115 #define ERRFILE_ath5k		     ( ERRFILE_DRIVER | 0x00500000 )
116 #define ERRFILE_atl1e		     ( ERRFILE_DRIVER | 0x00510000 )
117 #define ERRFILE_sis190		     ( ERRFILE_DRIVER | 0x00520000 )
118 #define ERRFILE_myri10ge	     ( ERRFILE_DRIVER | 0x00530000 )
119 #define ERRFILE_skge		     ( ERRFILE_DRIVER | 0x00540000 )
120 
121 #define ERRFILE_scsi		     ( ERRFILE_DRIVER | 0x00700000 )
122 #define ERRFILE_arbel		     ( ERRFILE_DRIVER | 0x00710000 )
123 #define ERRFILE_hermon		     ( ERRFILE_DRIVER | 0x00720000 )
124 #define ERRFILE_linda		     ( ERRFILE_DRIVER | 0x00730000 )
125 #define ERRFILE_ata		     ( ERRFILE_DRIVER | 0x00740000 )
126 #define ERRFILE_srp		     ( ERRFILE_DRIVER | 0x00750000 )
127 
128 #define ERRFILE_aoe			( ERRFILE_NET | 0x00000000 )
129 #define ERRFILE_arp			( ERRFILE_NET | 0x00010000 )
130 #define ERRFILE_dhcpopts		( ERRFILE_NET | 0x00020000 )
131 #define ERRFILE_ethernet		( ERRFILE_NET | 0x00030000 )
132 #define ERRFILE_icmpv6			( ERRFILE_NET | 0x00040000 )
133 #define ERRFILE_ipv4			( ERRFILE_NET | 0x00050000 )
134 #define ERRFILE_ipv6			( ERRFILE_NET | 0x00060000 )
135 #define ERRFILE_ndp			( ERRFILE_NET | 0x00070000 )
136 #define ERRFILE_netdevice		( ERRFILE_NET | 0x00080000 )
137 #define ERRFILE_nullnet			( ERRFILE_NET | 0x00090000 )
138 #define ERRFILE_tcp			( ERRFILE_NET | 0x000a0000 )
139 #define ERRFILE_ftp			( ERRFILE_NET | 0x000b0000 )
140 #define ERRFILE_http			( ERRFILE_NET | 0x000c0000 )
141 #define ERRFILE_iscsi			( ERRFILE_NET | 0x000d0000 )
142 #define ERRFILE_tcpip			( ERRFILE_NET | 0x000e0000 )
143 #define ERRFILE_udp			( ERRFILE_NET | 0x000f0000 )
144 #define ERRFILE_dhcp			( ERRFILE_NET | 0x00100000 )
145 #define ERRFILE_dns			( ERRFILE_NET | 0x00110000 )
146 #define ERRFILE_tftp			( ERRFILE_NET | 0x00120000 )
147 #define ERRFILE_infiniband		( ERRFILE_NET | 0x00130000 )
148 #define ERRFILE_netdev_settings		( ERRFILE_NET | 0x00140000 )
149 #define ERRFILE_dhcppkt			( ERRFILE_NET | 0x00150000 )
150 #define ERRFILE_slam			( ERRFILE_NET | 0x00160000 )
151 #define ERRFILE_ib_sma			( ERRFILE_NET | 0x00170000 )
152 #define ERRFILE_ib_packet		( ERRFILE_NET | 0x00180000 )
153 #define ERRFILE_icmp			( ERRFILE_NET | 0x00190000 )
154 #define ERRFILE_ib_qset			( ERRFILE_NET | 0x001a0000 )
155 #define ERRFILE_ib_gma			( ERRFILE_NET | 0x001b0000 )
156 #define ERRFILE_ib_pathrec		( ERRFILE_NET | 0x001c0000 )
157 #define ERRFILE_ib_mcast		( ERRFILE_NET | 0x001d0000 )
158 #define ERRFILE_ib_cm			( ERRFILE_NET | 0x001e0000 )
159 #define ERRFILE_net80211		( ERRFILE_NET | 0x001f0000 )
160 #define ERRFILE_ib_mi			( ERRFILE_NET | 0x00200000 )
161 #define ERRFILE_ib_cmrc			( ERRFILE_NET | 0x00210000 )
162 #define ERRFILE_ib_srp			( ERRFILE_NET | 0x00220000 )
163 #define ERRFILE_sec80211		( ERRFILE_NET | 0x00230000 )
164 #define ERRFILE_wep			( ERRFILE_NET | 0x00240000 )
165 #define ERRFILE_eapol			( ERRFILE_NET | 0x00250000 )
166 #define ERRFILE_wpa			( ERRFILE_NET | 0x00260000 )
167 #define ERRFILE_wpa_psk			( ERRFILE_NET | 0x00270000 )
168 #define ERRFILE_wpa_tkip		( ERRFILE_NET | 0x00280000 )
169 #define ERRFILE_wpa_ccmp		( ERRFILE_NET | 0x00290000 )
170 
171 #define ERRFILE_image		      ( ERRFILE_IMAGE | 0x00000000 )
172 #define ERRFILE_elf		      ( ERRFILE_IMAGE | 0x00010000 )
173 #define ERRFILE_script		      ( ERRFILE_IMAGE | 0x00020000 )
174 #define ERRFILE_segment		      ( ERRFILE_IMAGE | 0x00030000 )
175 #define ERRFILE_efi_image	      ( ERRFILE_IMAGE | 0x00040000 )
176 #define ERRFILE_embedded	      ( ERRFILE_IMAGE | 0x00050000 )
177 
178 #define ERRFILE_asn1		      ( ERRFILE_OTHER | 0x00000000 )
179 #define ERRFILE_chap		      ( ERRFILE_OTHER | 0x00010000 )
180 #define ERRFILE_aoeboot		      ( ERRFILE_OTHER | 0x00020000 )
181 #define ERRFILE_autoboot	      ( ERRFILE_OTHER | 0x00030000 )
182 #define ERRFILE_dhcpmgmt	      ( ERRFILE_OTHER | 0x00040000 )
183 #define ERRFILE_imgmgmt		      ( ERRFILE_OTHER | 0x00050000 )
184 #define ERRFILE_pxe_tftp	      ( ERRFILE_OTHER | 0x00060000 )
185 #define ERRFILE_pxe_udp		      ( ERRFILE_OTHER | 0x00070000 )
186 #define ERRFILE_axtls_aes	      ( ERRFILE_OTHER | 0x00080000 )
187 #define ERRFILE_cipher		      ( ERRFILE_OTHER | 0x00090000 )
188 #define ERRFILE_image_cmd	      ( ERRFILE_OTHER | 0x000a0000 )
189 #define ERRFILE_uri_test	      ( ERRFILE_OTHER | 0x000b0000 )
190 #define ERRFILE_ibft		      ( ERRFILE_OTHER | 0x000c0000 )
191 #define ERRFILE_tls		      ( ERRFILE_OTHER | 0x000d0000 )
192 #define ERRFILE_ifmgmt		      ( ERRFILE_OTHER | 0x000e0000 )
193 #define ERRFILE_iscsiboot	      ( ERRFILE_OTHER | 0x000f0000 )
194 #define ERRFILE_efi_pci		      ( ERRFILE_OTHER | 0x00100000 )
195 #define ERRFILE_efi_snp		      ( ERRFILE_OTHER | 0x00110000 )
196 #define ERRFILE_smbios		      ( ERRFILE_OTHER | 0x00120000 )
197 #define ERRFILE_smbios_settings	      ( ERRFILE_OTHER | 0x00130000 )
198 #define ERRFILE_efi_smbios	      ( ERRFILE_OTHER | 0x00140000 )
199 #define ERRFILE_pxemenu		      ( ERRFILE_OTHER | 0x00150000 )
200 #define ERRFILE_x509		      ( ERRFILE_OTHER | 0x00160000 )
201 #define ERRFILE_login_ui	      ( ERRFILE_OTHER | 0x00170000 )
202 #define ERRFILE_ib_srpboot	      ( ERRFILE_OTHER | 0x00180000 )
203 #define ERRFILE_iwmgmt		      ( ERRFILE_OTHER | 0x00190000 )
204 
205 /** @} */
206 
207 #endif /* _GPXE_ERRFILE_H */
208