summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/ipxe/errortab.h
blob: 4fe81a6be733e0d8ce4278315f21395e50f1fc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _IPXE_ERRORTAB_H
#define _IPXE_ERRORTAB_H

/** @file
 *
 * Error message tables
 *
 */

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

#include <ipxe/tables.h>

struct errortab {
	int errno;
	const char *text;
};

#define ERRORTAB __table ( struct errortab, "errortab" )

#define __errortab __table_entry ( ERRORTAB, 01 )

#define __einfo_errortab( einfo ) {			\
	.errno = __einfo_errno ( einfo ),		\
	.text = __einfo_desc ( einfo ),			\
	}

#endif /* _IPXE_ERRORTAB_H */