Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:05

0001 /* $FreeBSD$ */
0002 #ifndef _EFI_ERR_H
0003 #define _EFI_ERR_H
0004 
0005 /*++
0006 
0007 Copyright (c)  1999 - 2002 Intel Corporation. All rights reserved
0008 This software and associated documentation (if any) is furnished
0009 under a license and may only be used or copied in accordance
0010 with the terms of the license. Except as permitted by such
0011 license, no part of this software or documentation may be
0012 reproduced, stored in a retrieval system, or transmitted in any
0013 form or by any means without the express written consent of
0014 Intel Corporation.
0015 
0016 Module Name:
0017 
0018     efierr.h
0019 
0020 Abstract:
0021 
0022     EFI error codes
0023 
0024 
0025 
0026 
0027 Revision History
0028 
0029 --*/
0030 
0031 
0032 #define EFIWARN(a)                            (a)
0033 #define EFI_ERROR(a)             (((INTN) a) < 0)
0034 #define EFI_ERROR_CODE(a)   (unsigned long)(a & ~EFI_ERROR_MASK)
0035 
0036 
0037 #define EFI_SUCCESS                             0
0038 #define EFI_LOAD_ERROR                  EFIERR(1)
0039 #define EFI_INVALID_PARAMETER           EFIERR(2)
0040 #define EFI_UNSUPPORTED                 EFIERR(3)
0041 #define EFI_BAD_BUFFER_SIZE             EFIERR(4)
0042 #define EFI_BUFFER_TOO_SMALL            EFIERR(5)
0043 #define EFI_NOT_READY                   EFIERR(6)
0044 #define EFI_DEVICE_ERROR                EFIERR(7)
0045 #define EFI_WRITE_PROTECTED             EFIERR(8)
0046 #define EFI_OUT_OF_RESOURCES            EFIERR(9)
0047 #define EFI_VOLUME_CORRUPTED            EFIERR(10)
0048 #define EFI_VOLUME_FULL                 EFIERR(11)
0049 #define EFI_NO_MEDIA                    EFIERR(12)
0050 #define EFI_MEDIA_CHANGED               EFIERR(13)
0051 #define EFI_NOT_FOUND                   EFIERR(14)
0052 #define EFI_ACCESS_DENIED               EFIERR(15)
0053 #define EFI_NO_RESPONSE                 EFIERR(16)
0054 #define EFI_NO_MAPPING                  EFIERR(17)
0055 #define EFI_TIMEOUT                     EFIERR(18)
0056 #define EFI_NOT_STARTED                 EFIERR(19)
0057 #define EFI_ALREADY_STARTED             EFIERR(20)
0058 #define EFI_ABORTED                     EFIERR(21)
0059 #define EFI_ICMP_ERROR                  EFIERR(22)
0060 #define EFI_TFTP_ERROR                  EFIERR(23)
0061 #define EFI_PROTOCOL_ERROR              EFIERR(24)
0062 
0063 #define EFI_WARN_UNKNOWN_GLYPH          EFIWARN(1)
0064 #define EFI_WARN_DELETE_FAILURE         EFIWARN(2)
0065 #define EFI_WARN_WRITE_FAILURE          EFIWARN(3)
0066 #define EFI_WARN_BUFFER_TOO_SMALL       EFIWARN(4)
0067 
0068 #endif