iPXE
pcbios.h
Go to the documentation of this file.
00001 #ifndef _IPXE_ERRNO_PCBIOS_H
00002 #define _IPXE_ERRNO_PCBIOS_H
00003 
00004 /**
00005  * @file
00006  *
00007  * PC-BIOS platform error codes
00008  *
00009  * We use the PXE-specified error codes as the platform error codes
00010  * for the PC-BIOS platform.
00011  */
00012 
00013 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00014 
00015 #include <pxe_error.h>
00016 
00017 /**
00018  * Convert platform error code to platform component of iPXE error code
00019  *
00020  * @v platform          Platform error code
00021  * @ret errno           Platform component of iPXE error code
00022  */
00023 #define PLATFORM_TO_ERRNO( platform ) ( (platform) & 0xff )
00024 
00025 /**
00026  * Convert iPXE error code to platform error code
00027  *
00028  * @v errno             iPXE error code
00029  * @ret platform        Platform error code
00030  */
00031 #define ERRNO_TO_PLATFORM( errno ) ( (errno) & 0xff )
00032 
00033 /* Platform-specific error codes */
00034 #define PLATFORM_ENOERR         PXENV_STATUS_SUCCESS
00035 #define PLATFORM_E2BIG          PXENV_STATUS_BAD_FUNC
00036 #define PLATFORM_EACCES         PXENV_STATUS_TFTP_ACCESS_VIOLATION
00037 #define PLATFORM_EADDRINUSE     PXENV_STATUS_UDP_OPEN
00038 #define PLATFORM_EADDRNOTAVAIL  PXENV_STATUS_UDP_OPEN
00039 #define PLATFORM_EAFNOSUPPORT   PXENV_STATUS_UNSUPPORTED
00040 #define PLATFORM_EAGAIN         PXENV_STATUS_FAILURE
00041 #define PLATFORM_EALREADY       PXENV_STATUS_UDP_OPEN
00042 #define PLATFORM_EBADF          PXENV_STATUS_TFTP_CLOSED
00043 #define PLATFORM_EBADMSG        PXENV_STATUS_FAILURE
00044 #define PLATFORM_EBUSY          PXENV_STATUS_OUT_OF_RESOURCES
00045 #define PLATFORM_ECANCELED      PXENV_STATUS_BINL_CANCELED_BY_KEYSTROKE
00046 #define PLATFORM_ECHILD         PXENV_STATUS_TFTP_FILE_NOT_FOUND
00047 #define PLATFORM_ECONNABORTED   PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION
00048 #define PLATFORM_ECONNREFUSED   PXENV_STATUS_TFTP_CANNOT_OPEN_CONNECTION
00049 #define PLATFORM_ECONNRESET     PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION
00050 #define PLATFORM_EDEADLK        PXENV_STATUS_FAILURE
00051 #define PLATFORM_EDESTADDRREQ   PXENV_STATUS_BAD_FUNC
00052 #define PLATFORM_EDOM           PXENV_STATUS_FAILURE
00053 #define PLATFORM_EDQUOT         PXENV_STATUS_FAILURE
00054 #define PLATFORM_EEXIST         PXENV_STATUS_FAILURE
00055 #define PLATFORM_EFAULT         PXENV_STATUS_MCOPY_PROBLEM
00056 #define PLATFORM_EFBIG          PXENV_STATUS_MCOPY_PROBLEM
00057 #define PLATFORM_EHOSTUNREACH   PXENV_STATUS_ARP_TIMEOUT
00058 #define PLATFORM_EIDRM          PXENV_STATUS_FAILURE
00059 #define PLATFORM_EILSEQ         PXENV_STATUS_FAILURE
00060 #define PLATFORM_EINPROGRESS    PXENV_STATUS_FAILURE
00061 #define PLATFORM_EINTR          PXENV_STATUS_FAILURE
00062 #define PLATFORM_EINVAL         PXENV_STATUS_BAD_FUNC
00063 #define PLATFORM_EIO            PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION
00064 #define PLATFORM_EISCONN        PXENV_STATUS_UDP_OPEN
00065 #define PLATFORM_EISDIR         PXENV_STATUS_FAILURE
00066 #define PLATFORM_ELOOP          PXENV_STATUS_FAILURE
00067 #define PLATFORM_EMFILE         PXENV_STATUS_OUT_OF_RESOURCES
00068 #define PLATFORM_EMLINK         PXENV_STATUS_FAILURE
00069 #define PLATFORM_EMSGSIZE       PXENV_STATUS_BAD_FUNC
00070 #define PLATFORM_EMULTIHOP      PXENV_STATUS_FAILURE
00071 #define PLATFORM_ENAMETOOLONG   PXENV_STATUS_FAILURE
00072 #define PLATFORM_ENETDOWN       PXENV_STATUS_ARP_TIMEOUT
00073 #define PLATFORM_ENETRESET      PXENV_STATUS_FAILURE
00074 #define PLATFORM_ENETUNREACH    PXENV_STATUS_ARP_TIMEOUT
00075 #define PLATFORM_ENFILE         PXENV_STATUS_OUT_OF_RESOURCES
00076 #define PLATFORM_ENOBUFS        PXENV_STATUS_OUT_OF_RESOURCES
00077 #define PLATFORM_ENODATA        PXENV_STATUS_FAILURE
00078 #define PLATFORM_ENODEV         PXENV_STATUS_TFTP_FILE_NOT_FOUND
00079 #define PLATFORM_ENOENT         PXENV_STATUS_TFTP_FILE_NOT_FOUND
00080 #define PLATFORM_ENOEXEC        PXENV_STATUS_FAILURE
00081 #define PLATFORM_ENOLCK         PXENV_STATUS_FAILURE
00082 #define PLATFORM_ENOLINK        PXENV_STATUS_FAILURE
00083 #define PLATFORM_ENOMEM         PXENV_STATUS_OUT_OF_RESOURCES
00084 #define PLATFORM_ENOMSG         PXENV_STATUS_FAILURE
00085 #define PLATFORM_ENOPROTOOPT    PXENV_STATUS_UNSUPPORTED
00086 #define PLATFORM_ENOSPC         PXENV_STATUS_OUT_OF_RESOURCES
00087 #define PLATFORM_ENOSR          PXENV_STATUS_OUT_OF_RESOURCES
00088 #define PLATFORM_ENOSTR         PXENV_STATUS_FAILURE
00089 #define PLATFORM_ENOSYS         PXENV_STATUS_UNSUPPORTED
00090 #define PLATFORM_ENOTCONN       PXENV_STATUS_FAILURE
00091 #define PLATFORM_ENOTDIR        PXENV_STATUS_FAILURE
00092 #define PLATFORM_ENOTEMPTY      PXENV_STATUS_FAILURE
00093 #define PLATFORM_ENOTSOCK       PXENV_STATUS_FAILURE
00094 #define PLATFORM_ENOTSUP        PXENV_STATUS_UNSUPPORTED
00095 #define PLATFORM_ENOTTY         PXENV_STATUS_FAILURE
00096 #define PLATFORM_ENXIO          PXENV_STATUS_TFTP_FILE_NOT_FOUND
00097 #define PLATFORM_EOPNOTSUPP     PXENV_STATUS_UNSUPPORTED
00098 #define PLATFORM_EOVERFLOW      PXENV_STATUS_FAILURE
00099 #define PLATFORM_EPERM          PXENV_STATUS_TFTP_ACCESS_VIOLATION
00100 #define PLATFORM_EPIPE          PXENV_STATUS_FAILURE
00101 #define PLATFORM_EPROTO         PXENV_STATUS_FAILURE
00102 #define PLATFORM_EPROTONOSUPPORT PXENV_STATUS_UNSUPPORTED
00103 #define PLATFORM_EPROTOTYPE     PXENV_STATUS_FAILURE
00104 #define PLATFORM_ERANGE         PXENV_STATUS_FAILURE
00105 #define PLATFORM_EROFS          PXENV_STATUS_FAILURE
00106 #define PLATFORM_ESPIPE         PXENV_STATUS_FAILURE
00107 #define PLATFORM_ESRCH          PXENV_STATUS_TFTP_FILE_NOT_FOUND
00108 #define PLATFORM_ESTALE         PXENV_STATUS_FAILURE
00109 #define PLATFORM_ETIME          PXENV_STATUS_FAILURE
00110 #define PLATFORM_ETIMEDOUT      PXENV_STATUS_TFTP_READ_TIMEOUT
00111 #define PLATFORM_ETXTBSY        PXENV_STATUS_FAILURE
00112 #define PLATFORM_EWOULDBLOCK    PXENV_STATUS_TFTP_OPEN
00113 #define PLATFORM_EXDEV          PXENV_STATUS_FAILURE
00114 
00115 #endif /* _IPXE_ERRNO_PCBIOS_H */