linux/include/uapi/linux/firewire-constants.h

/*
 * IEEE 1394 constants.
 *
 * Copyright (C) 2005-2007  Kristian Hoegsberg <[email protected]>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

#ifndef _LINUX_FIREWIRE_CONSTANTS_H
#define _LINUX_FIREWIRE_CONSTANTS_H

#define TCODE_WRITE_QUADLET_REQUEST
#define TCODE_WRITE_BLOCK_REQUEST
#define TCODE_WRITE_RESPONSE
#define TCODE_READ_QUADLET_REQUEST
#define TCODE_READ_BLOCK_REQUEST
#define TCODE_READ_QUADLET_RESPONSE
#define TCODE_READ_BLOCK_RESPONSE
#define TCODE_CYCLE_START
#define TCODE_LOCK_REQUEST
#define TCODE_STREAM_DATA
#define TCODE_LOCK_RESPONSE

#define EXTCODE_MASK_SWAP
#define EXTCODE_COMPARE_SWAP
#define EXTCODE_FETCH_ADD
#define EXTCODE_LITTLE_ADD
#define EXTCODE_BOUNDED_ADD
#define EXTCODE_WRAP_ADD
#define EXTCODE_VENDOR_DEPENDENT

/* Linux firewire-core (Juju) specific tcodes */
#define TCODE_LOCK_MASK_SWAP
#define TCODE_LOCK_COMPARE_SWAP
#define TCODE_LOCK_FETCH_ADD
#define TCODE_LOCK_LITTLE_ADD
#define TCODE_LOCK_BOUNDED_ADD
#define TCODE_LOCK_WRAP_ADD
#define TCODE_LOCK_VENDOR_DEPENDENT

#define RCODE_COMPLETE
#define RCODE_CONFLICT_ERROR
#define RCODE_DATA_ERROR
#define RCODE_TYPE_ERROR
#define RCODE_ADDRESS_ERROR

/* Linux firewire-core (Juju) specific rcodes */
#define RCODE_SEND_ERROR
#define RCODE_CANCELLED
#define RCODE_BUSY
#define RCODE_GENERATION
#define RCODE_NO_ACK

#define SCODE_100
#define SCODE_200
#define SCODE_400
#define SCODE_800
#define SCODE_1600
#define SCODE_3200
#define SCODE_BETA

#define ACK_COMPLETE
#define ACK_PENDING
#define ACK_BUSY_X
#define ACK_BUSY_A
#define ACK_BUSY_B
#define ACK_DATA_ERROR
#define ACK_TYPE_ERROR

#define RETRY_1
#define RETRY_X
#define RETRY_A
#define RETRY_B

#endif /* _LINUX_FIREWIRE_CONSTANTS_H */