Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_FIREWIRE_CONSTANTS_H |
| 8 | #define _LINUX_FIREWIRE_CONSTANTS_H |
| 9 | #define TCODE_WRITE_QUADLET_REQUEST 0x0 |
| 10 | #define TCODE_WRITE_BLOCK_REQUEST 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define TCODE_WRITE_RESPONSE 0x2 |
| 12 | #define TCODE_READ_QUADLET_REQUEST 0x4 |
| 13 | #define TCODE_READ_BLOCK_REQUEST 0x5 |
| 14 | #define TCODE_READ_QUADLET_RESPONSE 0x6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define TCODE_READ_BLOCK_RESPONSE 0x7 |
| 16 | #define TCODE_CYCLE_START 0x8 |
| 17 | #define TCODE_LOCK_REQUEST 0x9 |
| 18 | #define TCODE_STREAM_DATA 0xa |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define TCODE_LOCK_RESPONSE 0xb |
| 20 | #define EXTCODE_MASK_SWAP 0x1 |
| 21 | #define EXTCODE_COMPARE_SWAP 0x2 |
| 22 | #define EXTCODE_FETCH_ADD 0x3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define EXTCODE_LITTLE_ADD 0x4 |
| 24 | #define EXTCODE_BOUNDED_ADD 0x5 |
| 25 | #define EXTCODE_WRAP_ADD 0x6 |
| 26 | #define EXTCODE_VENDOR_DEPENDENT 0x7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define TCODE_LOCK_MASK_SWAP (0x10 | EXTCODE_MASK_SWAP) |
| 28 | #define TCODE_LOCK_COMPARE_SWAP (0x10 | EXTCODE_COMPARE_SWAP) |
| 29 | #define TCODE_LOCK_FETCH_ADD (0x10 | EXTCODE_FETCH_ADD) |
| 30 | #define TCODE_LOCK_LITTLE_ADD (0x10 | EXTCODE_LITTLE_ADD) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define TCODE_LOCK_BOUNDED_ADD (0x10 | EXTCODE_BOUNDED_ADD) |
| 32 | #define TCODE_LOCK_WRAP_ADD (0x10 | EXTCODE_WRAP_ADD) |
| 33 | #define TCODE_LOCK_VENDOR_DEPENDENT (0x10 | EXTCODE_VENDOR_DEPENDENT) |
| 34 | #define RCODE_COMPLETE 0x0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define RCODE_CONFLICT_ERROR 0x4 |
| 36 | #define RCODE_DATA_ERROR 0x5 |
| 37 | #define RCODE_TYPE_ERROR 0x6 |
| 38 | #define RCODE_ADDRESS_ERROR 0x7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define RCODE_SEND_ERROR 0x10 |
| 40 | #define RCODE_CANCELLED 0x11 |
| 41 | #define RCODE_BUSY 0x12 |
| 42 | #define RCODE_GENERATION 0x13 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define RCODE_NO_ACK 0x14 |
| 44 | #define SCODE_100 0x0 |
| 45 | #define SCODE_200 0x1 |
| 46 | #define SCODE_400 0x2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define SCODE_800 0x3 |
| 48 | #define SCODE_1600 0x4 |
| 49 | #define SCODE_3200 0x5 |
| 50 | #define SCODE_BETA 0x3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define ACK_COMPLETE 0x1 |
| 52 | #define ACK_PENDING 0x2 |
| 53 | #define ACK_BUSY_X 0x4 |
| 54 | #define ACK_BUSY_A 0x5 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define ACK_BUSY_B 0x6 |
| 56 | #define ACK_DATA_ERROR 0xd |
| 57 | #define ACK_TYPE_ERROR 0xe |
| 58 | #define RETRY_1 0x00 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | #define RETRY_X 0x01 |
| 60 | #define RETRY_A 0x02 |
| 61 | #define RETRY_B 0x03 |
| 62 | #endif |