/*++
*******************************************************************************
* Copyright (c) 1990-98 Digi International Inc., All Rights Reserved          *
*                                                                             *
* This software contains proprietary and confidential information of Digi     *
* International Inc.  By accepting transfer of this copy, Recipient agrees    *
* to retain this software in confidence, to prevent disclosure to others,     *
* and to make no use of this software other than that for which it was        *
* delivered.  This is an unpublished copyrighted work of Digi International   *
* Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly   *
* prohibited.                                                                 *
*                                                                             *
* Restricted Rights Legend                                                    *
*                                                                             *
* Use, duplication, or disclosure by the Government is subject to             *
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in         *
* Technical Data and Computer Software clause at DFARS 252.227-7031 or        *
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -          *
* Restricted Rights at 48 CFR 52.227-19, as applicable.                       *
*                                                                             *
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343          *
*                                                                             *
*******************************************************************************

Module Name:

   dxberror.mc

Abstract:

   Dxb specific error codes - used in event log messages.

Author:

   Michael Zarns


Comments
 

  Status values are 32 bit values layed out as follows:

   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  +---+-+-------------------------+-------------------------------+
  |Sev|C|       Facility          |               Code            |
  +---+-+-------------------------+-------------------------------+

  where

      Sev - is the severity code

          00 - Success
          01 - Informational
          10 - Warning
          11 - Error

      C - is the Customer code flag

      Facility - is the facility code

      Code - is the facility's status code


--*/

#ifndef _DXBERROR_
#define _DXBERROR_
//
//  Values are 32 bit values layed out as follows:
//
//   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
//   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
//  +---+-+-+-----------------------+-------------------------------+
//  |Sev|C|R|     Facility          |               Code            |
//  +---+-+-+-----------------------+-------------------------------+
//
//  where
//
//      Sev - is the severity code
//
//          00 - Success
//          01 - Informational
//          10 - Warning
//          11 - Error
//
//      C - is the Customer code flag
//
//      R - is a reserved bit
//
//      Facility - is the facility code
//
//      Code - is the facility's status code
//
//
// Define the facility codes
//
#define FACILITY_DXB_ERROR_CODE          0x100


//
// Define the severity codes
//


//
// MessageId: DXB_RESOURCE_CONFLICT
//
// MessageText:
//
//  The hardware resources for adapter %2 are already in use by another device.
//
#define DXB_RESOURCE_CONFLICT            ((NTSTATUS)0xC1000001L)

//
// MessageId: DXB_UNABLE_TO_OPEN_KEY
//
// MessageText:
//
//  Registry key %2 could not be opened.  Check current configuration.
//
#define DXB_UNABLE_TO_OPEN_KEY           ((NTSTATUS)0xC1000002L)

//
// MessageId: DXB_REGISTRY_VALUE_NOT_FOUND
//
// MessageText:
//
//  Unable to find registry value %2 for adapter %3.
//
#define DXB_REGISTRY_VALUE_NOT_FOUND     ((NTSTATUS)0xC1000003L)

//
// MessageId: DXB_ADAPTER_FAILED_INITIALIZATION
//
// MessageText:
//
//  Digi adapter %2 was unable to initialize properly.
//
#define DXB_ADAPTER_FAILED_INITIALIZATION ((NTSTATUS)0xC1000004L)

//
// MessageId: DXB_ADAPTER_RESET_FAILED
//
// MessageText:
//
//  Unable to reset adapter %2.  Check IO Port settings.
//
#define DXB_ADAPTER_RESET_FAILED         ((NTSTATUS)0xC1000005L)

//
// MessageId: DXB_ADAPTER_NOT_FOUND
//
// MessageText:
//
//  Adapter %2 not found.  Check current configuration.
//
#define DXB_ADAPTER_NOT_FOUND            ((NTSTATUS)0xC1000006L)

//
// MessageId: DXB_ADAPTER_MEMORY_FAILURE
//
// MessageText:
//
//  Unable to access memory on adapter %2.  Check for device conflicts or invalid memory ranges.
//
#define DXB_ADAPTER_MEMORY_FAILURE       ((NTSTATUS)0xC1000007L)

//
// MessageId: DXB_FILE_NOT_FOUND
//
// MessageText:
//
//  Unable to find file %2.
//
#define DXB_FILE_NOT_FOUND               ((NTSTATUS)0xC1000008L)

//
// MessageId: DXB_BIOS_DOWNLOAD_FAILED
//
// MessageText:
//
//  Adapter %2 BIOS failed to initialize.
//
#define DXB_BIOS_DOWNLOAD_FAILED         ((NTSTATUS)0xC1000009L)

//
// MessageId: DXB_POST_FAILED
//
// MessageText:
//
//  Adapter %2 POST failed to initialize.
//
#define DXB_POST_FAILED                  ((NTSTATUS)0xC100000AL)

//
// MessageId: DXB_FEP_DOWNLOAD_FAILED
//
// MessageText:
//
//  Adapter %2 Fep failed to initialize.
//
#define DXB_FEP_DOWNLOAD_FAILED          ((NTSTATUS)0xC100000BL)

//
// MessageId: DXB_BAD_FEP_IMAGE
//
// MessageText:
//
//  Adapter %2 incorrect or corrupt Fep image file, %3.
//
#define DXB_BAD_FEP_IMAGE                ((NTSTATUS)0xC100000CL)

//
// MessageId: DXB_ERROR_FOO
//
// MessageText:
//
//  String1 %2, String2 %3, Data follows.
//
#define DXB_ERROR_FOO                    ((NTSTATUS)0xC100000DL)

//
// MessageId: DXB_POST_ERRORS
//
// MessageText:
//
//  Adapter %2 POST errors found.
//
#define DXB_POST_ERRORS                  ((NTSTATUS)0xC100000EL)

#endif  // _DXBERROR_