122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _LINUX_FIREWIRE_CONSTANTS_H
2022851890Sopenharmony_ci#define _LINUX_FIREWIRE_CONSTANTS_H
2122851890Sopenharmony_ci#define TCODE_WRITE_QUADLET_REQUEST 0x0
2222851890Sopenharmony_ci#define TCODE_WRITE_BLOCK_REQUEST 0x1
2322851890Sopenharmony_ci#define TCODE_WRITE_RESPONSE 0x2
2422851890Sopenharmony_ci#define TCODE_READ_QUADLET_REQUEST 0x4
2522851890Sopenharmony_ci#define TCODE_READ_BLOCK_REQUEST 0x5
2622851890Sopenharmony_ci#define TCODE_READ_QUADLET_RESPONSE 0x6
2722851890Sopenharmony_ci#define TCODE_READ_BLOCK_RESPONSE 0x7
2822851890Sopenharmony_ci#define TCODE_CYCLE_START 0x8
2922851890Sopenharmony_ci#define TCODE_LOCK_REQUEST 0x9
3022851890Sopenharmony_ci#define TCODE_STREAM_DATA 0xa
3122851890Sopenharmony_ci#define TCODE_LOCK_RESPONSE 0xb
3222851890Sopenharmony_ci#define EXTCODE_MASK_SWAP 0x1
3322851890Sopenharmony_ci#define EXTCODE_COMPARE_SWAP 0x2
3422851890Sopenharmony_ci#define EXTCODE_FETCH_ADD 0x3
3522851890Sopenharmony_ci#define EXTCODE_LITTLE_ADD 0x4
3622851890Sopenharmony_ci#define EXTCODE_BOUNDED_ADD 0x5
3722851890Sopenharmony_ci#define EXTCODE_WRAP_ADD 0x6
3822851890Sopenharmony_ci#define EXTCODE_VENDOR_DEPENDENT 0x7
3922851890Sopenharmony_ci#define TCODE_LOCK_MASK_SWAP (0x10 | EXTCODE_MASK_SWAP)
4022851890Sopenharmony_ci#define TCODE_LOCK_COMPARE_SWAP (0x10 | EXTCODE_COMPARE_SWAP)
4122851890Sopenharmony_ci#define TCODE_LOCK_FETCH_ADD (0x10 | EXTCODE_FETCH_ADD)
4222851890Sopenharmony_ci#define TCODE_LOCK_LITTLE_ADD (0x10 | EXTCODE_LITTLE_ADD)
4322851890Sopenharmony_ci#define TCODE_LOCK_BOUNDED_ADD (0x10 | EXTCODE_BOUNDED_ADD)
4422851890Sopenharmony_ci#define TCODE_LOCK_WRAP_ADD (0x10 | EXTCODE_WRAP_ADD)
4522851890Sopenharmony_ci#define TCODE_LOCK_VENDOR_DEPENDENT (0x10 | EXTCODE_VENDOR_DEPENDENT)
4622851890Sopenharmony_ci#define RCODE_COMPLETE 0x0
4722851890Sopenharmony_ci#define RCODE_CONFLICT_ERROR 0x4
4822851890Sopenharmony_ci#define RCODE_DATA_ERROR 0x5
4922851890Sopenharmony_ci#define RCODE_TYPE_ERROR 0x6
5022851890Sopenharmony_ci#define RCODE_ADDRESS_ERROR 0x7
5122851890Sopenharmony_ci#define RCODE_SEND_ERROR 0x10
5222851890Sopenharmony_ci#define RCODE_CANCELLED 0x11
5322851890Sopenharmony_ci#define RCODE_BUSY 0x12
5422851890Sopenharmony_ci#define RCODE_GENERATION 0x13
5522851890Sopenharmony_ci#define RCODE_NO_ACK 0x14
5622851890Sopenharmony_ci#define SCODE_100 0x0
5722851890Sopenharmony_ci#define SCODE_200 0x1
5822851890Sopenharmony_ci#define SCODE_400 0x2
5922851890Sopenharmony_ci#define SCODE_800 0x3
6022851890Sopenharmony_ci#define SCODE_1600 0x4
6122851890Sopenharmony_ci#define SCODE_3200 0x5
6222851890Sopenharmony_ci#define SCODE_BETA 0x3
6322851890Sopenharmony_ci#define ACK_COMPLETE 0x1
6422851890Sopenharmony_ci#define ACK_PENDING 0x2
6522851890Sopenharmony_ci#define ACK_BUSY_X 0x4
6622851890Sopenharmony_ci#define ACK_BUSY_A 0x5
6722851890Sopenharmony_ci#define ACK_BUSY_B 0x6
6822851890Sopenharmony_ci#define ACK_DATA_ERROR 0xd
6922851890Sopenharmony_ci#define ACK_TYPE_ERROR 0xe
7022851890Sopenharmony_ci#define RETRY_1 0x00
7122851890Sopenharmony_ci#define RETRY_X 0x01
7222851890Sopenharmony_ci#define RETRY_A 0x02
7322851890Sopenharmony_ci#define RETRY_B 0x03
7422851890Sopenharmony_ci#endif
75