| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _LINUX_FIREWIRE_CDEV_H | 
|  | 20 | #define _LINUX_FIREWIRE_CDEV_H | 
|  | 21 | #include <linux/ioctl.h> | 
|  | 22 | #include <linux/types.h> | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #include <linux/firewire-constants.h> | 
|  | 24 | #define FW_CDEV_EVENT_BUS_RESET 0x00 | 
|  | 25 | #define FW_CDEV_EVENT_RESPONSE 0x01 | 
|  | 26 | #define FW_CDEV_EVENT_REQUEST 0x02 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define FW_CDEV_EVENT_ISO_INTERRUPT 0x03 | 
|  | 28 | #define FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED 0x04 | 
|  | 29 | #define FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED 0x05 | 
|  | 30 | #define FW_CDEV_EVENT_REQUEST2 0x06 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define FW_CDEV_EVENT_PHY_PACKET_SENT 0x07 | 
|  | 32 | #define FW_CDEV_EVENT_PHY_PACKET_RECEIVED 0x08 | 
|  | 33 | #define FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL 0x09 | 
|  | 34 | struct fw_cdev_event_common { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __u64 closure; | 
|  | 36 | __u32 type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 37 | }; | 
|  | 38 | struct fw_cdev_event_bus_reset { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __u64 closure; | 
|  | 40 | __u32 type; | 
|  | 41 | __u32 node_id; | 
|  | 42 | __u32 local_node_id; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __u32 bm_node_id; | 
|  | 44 | __u32 irm_node_id; | 
|  | 45 | __u32 root_node_id; | 
|  | 46 | __u32 generation; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | }; | 
|  | 48 | struct fw_cdev_event_response { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | __u64 closure; | 
|  | 50 | __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u32 rcode; | 
|  | 52 | __u32 length; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 53 | __u32 data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | struct fw_cdev_event_request { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 56 | __u64 closure; | 
|  | 57 | __u32 type; | 
|  | 58 | __u32 tcode; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | __u64 offset; | 
|  | 60 | __u32 handle; | 
|  | 61 | __u32 length; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 62 | __u32 data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | }; | 
|  | 64 | struct fw_cdev_event_request2 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 65 | __u64 closure; | 
|  | 66 | __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 | __u32 tcode; | 
|  | 68 | __u64 offset; | 
|  | 69 | __u32 source_node_id; | 
|  | 70 | __u32 destination_node_id; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | __u32 card; | 
|  | 72 | __u32 generation; | 
|  | 73 | __u32 handle; | 
|  | 74 | __u32 length; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 75 | __u32 data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | }; | 
|  | 77 | struct fw_cdev_event_iso_interrupt { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 78 | __u64 closure; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | __u32 type; | 
|  | 80 | __u32 cycle; | 
|  | 81 | __u32 header_length; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 82 | __u32 header[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | }; | 
|  | 84 | struct fw_cdev_event_iso_interrupt_mc { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 85 | __u64 closure; | 
|  | 86 | __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 87 | __u32 completed; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | }; | 
|  | 89 | struct fw_cdev_event_iso_resource { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 90 | __u64 closure; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 91 | __u32 type; | 
|  | 92 | __u32 handle; | 
|  | 93 | __s32 channel; | 
|  | 94 | __s32 bandwidth; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 95 | }; | 
|  | 96 | struct fw_cdev_event_phy_packet { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 97 | __u64 closure; | 
|  | 98 | __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 99 | __u32 rcode; | 
|  | 100 | __u32 length; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 101 | __u32 data[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 102 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 103 | union fw_cdev_event { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 104 | struct fw_cdev_event_common common; | 
|  | 105 | struct fw_cdev_event_bus_reset bus_reset; | 
|  | 106 | struct fw_cdev_event_response response; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 107 | struct fw_cdev_event_request request; | 
|  | 108 | struct fw_cdev_event_request2 request2; | 
|  | 109 | struct fw_cdev_event_iso_interrupt iso_interrupt; | 
|  | 110 | struct fw_cdev_event_iso_interrupt_mc iso_interrupt_mc; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 111 | struct fw_cdev_event_iso_resource iso_resource; | 
|  | 112 | struct fw_cdev_event_phy_packet phy_packet; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 113 | }; | 
|  | 114 | #define FW_CDEV_IOC_GET_INFO _IOWR('#', 0x00, struct fw_cdev_get_info) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 115 | #define FW_CDEV_IOC_SEND_REQUEST _IOW('#', 0x01, struct fw_cdev_send_request) | 
|  | 116 | #define FW_CDEV_IOC_ALLOCATE _IOWR('#', 0x02, struct fw_cdev_allocate) | 
|  | 117 | #define FW_CDEV_IOC_DEALLOCATE _IOW('#', 0x03, struct fw_cdev_deallocate) | 
|  | 118 | #define FW_CDEV_IOC_SEND_RESPONSE _IOW('#', 0x04, struct fw_cdev_send_response) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 119 | #define FW_CDEV_IOC_INITIATE_BUS_RESET _IOW('#', 0x05, struct fw_cdev_initiate_bus_reset) | 
|  | 120 | #define FW_CDEV_IOC_ADD_DESCRIPTOR _IOWR('#', 0x06, struct fw_cdev_add_descriptor) | 
|  | 121 | #define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IOW('#', 0x07, struct fw_cdev_remove_descriptor) | 
|  | 122 | #define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IOWR('#', 0x08, struct fw_cdev_create_iso_context) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 123 | #define FW_CDEV_IOC_QUEUE_ISO _IOWR('#', 0x09, struct fw_cdev_queue_iso) | 
|  | 124 | #define FW_CDEV_IOC_START_ISO _IOW('#', 0x0a, struct fw_cdev_start_iso) | 
|  | 125 | #define FW_CDEV_IOC_STOP_ISO _IOW('#', 0x0b, struct fw_cdev_stop_iso) | 
|  | 126 | #define FW_CDEV_IOC_GET_CYCLE_TIMER _IOR('#', 0x0c, struct fw_cdev_get_cycle_timer) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 127 | #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE _IOWR('#', 0x0d, struct fw_cdev_allocate_iso_resource) | 
|  | 128 | #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE _IOW('#', 0x0e, struct fw_cdev_deallocate) | 
|  | 129 | #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE _IOW('#', 0x0f, struct fw_cdev_allocate_iso_resource) | 
|  | 130 | #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE _IOW('#', 0x10, struct fw_cdev_allocate_iso_resource) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 131 | #define FW_CDEV_IOC_GET_SPEED _IO('#', 0x11) | 
|  | 132 | #define FW_CDEV_IOC_SEND_BROADCAST_REQUEST _IOW('#', 0x12, struct fw_cdev_send_request) | 
|  | 133 | #define FW_CDEV_IOC_SEND_STREAM_PACKET _IOW('#', 0x13, struct fw_cdev_send_stream_packet) | 
|  | 134 | #define FW_CDEV_IOC_GET_CYCLE_TIMER2 _IOWR('#', 0x14, struct fw_cdev_get_cycle_timer2) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 135 | #define FW_CDEV_IOC_SEND_PHY_PACKET _IOWR('#', 0x15, struct fw_cdev_send_phy_packet) | 
|  | 136 | #define FW_CDEV_IOC_RECEIVE_PHY_PACKETS _IOW('#', 0x16, struct fw_cdev_receive_phy_packets) | 
|  | 137 | #define FW_CDEV_IOC_SET_ISO_CHANNELS _IOW('#', 0x17, struct fw_cdev_set_iso_channels) | 
|  | 138 | #define FW_CDEV_IOC_FLUSH_ISO _IOW('#', 0x18, struct fw_cdev_flush_iso) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 139 | struct fw_cdev_get_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 140 | __u32 version; | 
|  | 141 | __u32 rom_length; | 
|  | 142 | __u64 rom; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 143 | __u64 bus_reset; | 
|  | 144 | __u64 bus_reset_closure; | 
|  | 145 | __u32 card; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 146 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 147 | struct fw_cdev_send_request { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 148 | __u32 tcode; | 
|  | 149 | __u32 length; | 
|  | 150 | __u64 offset; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 151 | __u64 closure; | 
|  | 152 | __u64 data; | 
|  | 153 | __u32 generation; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 154 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 155 | struct fw_cdev_send_response { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 156 | __u32 rcode; | 
|  | 157 | __u32 length; | 
|  | 158 | __u64 data; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 159 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 160 | }; | 
|  | 161 | struct fw_cdev_allocate { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 162 | __u64 offset; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 163 | __u64 closure; | 
|  | 164 | __u32 length; | 
|  | 165 | __u32 handle; | 
|  | 166 | __u64 region_end; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 167 | }; | 
|  | 168 | struct fw_cdev_deallocate { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 169 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 170 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 171 | #define FW_CDEV_LONG_RESET 0 | 
|  | 172 | #define FW_CDEV_SHORT_RESET 1 | 
|  | 173 | struct fw_cdev_initiate_bus_reset { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 174 | __u32 type; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 175 | }; | 
|  | 176 | struct fw_cdev_add_descriptor { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 177 | __u32 immediate; | 
|  | 178 | __u32 key; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 179 | __u64 data; | 
|  | 180 | __u32 length; | 
|  | 181 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 182 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 183 | struct fw_cdev_remove_descriptor { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 184 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 185 | }; | 
|  | 186 | #define FW_CDEV_ISO_CONTEXT_TRANSMIT 0 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 187 | #define FW_CDEV_ISO_CONTEXT_RECEIVE 1 | 
|  | 188 | #define FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL 2 | 
|  | 189 | struct fw_cdev_create_iso_context { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 190 | __u32 type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 191 | __u32 header_size; | 
|  | 192 | __u32 channel; | 
|  | 193 | __u32 speed; | 
|  | 194 | __u64 closure; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 195 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 196 | }; | 
|  | 197 | struct fw_cdev_set_iso_channels { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 198 | __u64 channels; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 199 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 200 | }; | 
|  | 201 | #define FW_CDEV_ISO_PAYLOAD_LENGTH(v) (v) | 
|  | 202 | #define FW_CDEV_ISO_INTERRUPT (1 << 16) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 203 | #define FW_CDEV_ISO_SKIP (1 << 17) | 
|  | 204 | #define FW_CDEV_ISO_SYNC (1 << 17) | 
|  | 205 | #define FW_CDEV_ISO_TAG(v) ((v) << 18) | 
|  | 206 | #define FW_CDEV_ISO_SY(v) ((v) << 20) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 207 | #define FW_CDEV_ISO_HEADER_LENGTH(v) ((v) << 24) | 
|  | 208 | struct fw_cdev_iso_packet { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 209 | __u32 control; | 
| Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 210 | __u32 header[]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 211 | }; | 
|  | 212 | struct fw_cdev_queue_iso { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 213 | __u64 packets; | 
|  | 214 | __u64 data; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 215 | __u32 size; | 
|  | 216 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 217 | }; | 
|  | 218 | #define FW_CDEV_ISO_CONTEXT_MATCH_TAG0 1 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 219 | #define FW_CDEV_ISO_CONTEXT_MATCH_TAG1 2 | 
|  | 220 | #define FW_CDEV_ISO_CONTEXT_MATCH_TAG2 4 | 
|  | 221 | #define FW_CDEV_ISO_CONTEXT_MATCH_TAG3 8 | 
|  | 222 | #define FW_CDEV_ISO_CONTEXT_MATCH_ALL_TAGS 15 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 223 | struct fw_cdev_start_iso { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 224 | __s32 cycle; | 
|  | 225 | __u32 sync; | 
|  | 226 | __u32 tags; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 227 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 228 | }; | 
|  | 229 | struct fw_cdev_stop_iso { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 230 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 231 | }; | 
|  | 232 | struct fw_cdev_flush_iso { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 233 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 234 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 235 | struct fw_cdev_get_cycle_timer { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 236 | __u64 local_time; | 
|  | 237 | __u32 cycle_timer; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 238 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 239 | struct fw_cdev_get_cycle_timer2 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 240 | __s64 tv_sec; | 
|  | 241 | __s32 tv_nsec; | 
|  | 242 | __s32 clk_id; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 243 | __u32 cycle_timer; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 244 | }; | 
|  | 245 | struct fw_cdev_allocate_iso_resource { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 246 | __u64 closure; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 247 | __u64 channels; | 
|  | 248 | __u32 bandwidth; | 
|  | 249 | __u32 handle; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 250 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 251 | struct fw_cdev_send_stream_packet { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 252 | __u32 length; | 
|  | 253 | __u32 tag; | 
|  | 254 | __u32 channel; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 255 | __u32 sy; | 
|  | 256 | __u64 closure; | 
|  | 257 | __u64 data; | 
|  | 258 | __u32 generation; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 259 | __u32 speed; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 260 | }; | 
|  | 261 | struct fw_cdev_send_phy_packet { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 262 | __u64 closure; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 263 | __u32 data[2]; | 
|  | 264 | __u32 generation; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 265 | }; | 
|  | 266 | struct fw_cdev_receive_phy_packets { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 267 | __u64 closure; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 268 | }; | 
|  | 269 | #define FW_CDEV_VERSION 3 | 
|  | 270 | #endif |