/******************************************************************************
    fwxError.h

    "Fireworks IEEE 1394 Driver for Windows CE"

    This file contains all Fireworks error definitions

    Copyright (c) 1997-1998 by 3A International, Inc.  All rights Reserved.
******************************************************************************/

#ifndef FWXERROR_H
#define FWXERROR_H

#define FWX_OK                          TRUE
#define FWX_ERROR                       FALSE

#define APP_ERROR                       0x20000000UL   //  Bit 29

#define FWX_ERR_NONE                    ERROR_SUCCESS  //  Should be zero
#define FWX_ERR_MAX_WRITE_BLOCK         (APP_ERROR |  2)
#define FWX_ERR_XMIT_TIMEOUT            (APP_ERROR |  3)
#define FWX_ERR_RESPONSE_TIMEOUT        (APP_ERROR |  4)
#define FWX_ERR_XMIT_ERROR              (APP_ERROR |  5)
#define FWX_ERR_DRIVER_UNINITIALIZED    (APP_ERROR |  6)
#define FWX_ERR_XMIT_PACKET_ERROR       (APP_ERROR |  7)
#define FWX_ERR_PCI_XMIT_ERROR          (APP_ERROR |  8)
#define FWX_ERR_BAD_ADDRESS             (APP_ERROR | 10)
#define FWX_ERR_DRIVER_NOT_OPEN			(APP_ERROR | 22)
#define FWX_ERR_NO_PHY_POWER            (APP_ERROR | 23)
#define FWX_ERR_BAD_RESPONSE            (APP_ERROR | 50)
#define FWX_ERR_RESOURCE                (APP_ERROR | 51)
#define FWX_ERR_SYSTEM_RESOURCE         (APP_ERROR | 52)
#define FWX_ERR_ADAPTOR_NOT_PRESENT     (APP_ERROR | 53)
#define FWX_ERR_GUID_NOT_FOUND          (APP_ERROR | 54)
#define FWX_ERR_MAX_DEVICES_OPENED      (APP_ERROR | 56)
#define FWX_ERR_INVALID_PARAMETER       (APP_ERROR | 57)
#define FWX_ERR_UNSUPPORTED_OPERATION   (APP_ERROR | 58)
#define FWX_ERR_LINK_OP_FAILURE         (APP_ERROR | 59)
#define FWX_ERR_EEPROM_OP_FAILURE       (APP_ERROR | 60)
#define FWX_ERR_RESP_CONFLICT_ERROR     (APP_ERROR | 61)
#define FWX_ERR_RESP_DATA_ERROR         (APP_ERROR | 62)
#define FWX_ERR_RESP_TYPE_ERROR         (APP_ERROR | 63)
#define FWX_ERR_RESP_ADDRESS_ERROR      (APP_ERROR | 64)
#define FWX_ERR_RESP_ABORTED            (APP_ERROR | 65)
#define FWX_ERR_RESP_ACK_TIMEOUT        (APP_ERROR | 66)
#define FWX_ERR_RESP_DRIVER_ERROR       (APP_ERROR | 67)
#define FWX_ERR_RESP_RESOURCE_ERROR     (APP_ERROR | 68)
#define FWX_ERR_RESP_RETRY_ERROR        (APP_ERROR | 69)
#define FWX_ERR_BUS_ENUMERATION         (APP_ERROR | 70)
#define FWX_ERR_MAX_DEVICE_CONTEXTS     (APP_ERROR | 71)
#define FWX_ERR_ISO_RESOURCES_IN_USE    (APP_ERROR | 72)
#define FWX_ERR_ISO_ALREADY_STARTED     (APP_ERROR | 73)
#define FWX_ERR_DMA_OP_FAILURE          (APP_ERROR | 74)
#define FWX_ERR_SYSTEM_REGISTRY         (APP_ERROR | 75)
#define FWX_ERR_HW_AUTHENTICITY_PASS_1  (APP_ERROR | 76)
#define FWX_ERR_HW_AUTHENTICITY_PASS_2  (APP_ERROR | 77)

#endif  //  FWXERROR_H 

