| .. | .. |
|---|
| 30 | 30 | #define DMA_BUF_TE_ENQ 0x642d7465 |
|---|
| 31 | 31 | #define DMA_BUF_TE_ACK 0x68692100 |
|---|
| 32 | 32 | |
|---|
| 33 | | -struct dma_buf_te_ioctl_version |
|---|
| 34 | | -{ |
|---|
| 33 | +struct dma_buf_te_ioctl_version { |
|---|
| 35 | 34 | int op; /**< Must be set to DMA_BUF_TE_ENQ by client, driver will set it to DMA_BUF_TE_ACK */ |
|---|
| 36 | 35 | int major; /**< Major version */ |
|---|
| 37 | 36 | int minor; /**< Minor version */ |
|---|
| 38 | 37 | }; |
|---|
| 39 | 38 | |
|---|
| 40 | | -struct dma_buf_te_ioctl_alloc |
|---|
| 41 | | -{ |
|---|
| 39 | +struct dma_buf_te_ioctl_alloc { |
|---|
| 42 | 40 | __u64 size; /* size of buffer to allocate, in pages */ |
|---|
| 43 | 41 | }; |
|---|
| 44 | 42 | |
|---|
| 45 | | -struct dma_buf_te_ioctl_status |
|---|
| 46 | | -{ |
|---|
| 43 | +struct dma_buf_te_ioctl_status { |
|---|
| 47 | 44 | /* in */ |
|---|
| 48 | 45 | int fd; /* the dma_buf to query, only dma_buf objects exported by this driver is supported */ |
|---|
| 49 | 46 | /* out */ |
|---|
| .. | .. |
|---|
| 52 | 49 | int cpu_mappings; /* number of cpu mappings (active 'mmap's) */ |
|---|
| 53 | 50 | }; |
|---|
| 54 | 51 | |
|---|
| 55 | | -struct dma_buf_te_ioctl_set_failing |
|---|
| 56 | | -{ |
|---|
| 52 | +struct dma_buf_te_ioctl_set_failing { |
|---|
| 57 | 53 | /* in */ |
|---|
| 58 | 54 | int fd; /* the dma_buf to set failure mode for, only dma_buf objects exported by this driver is supported */ |
|---|
| 59 | 55 | |
|---|
| .. | .. |
|---|
| 63 | 59 | int fail_mmap; |
|---|
| 64 | 60 | }; |
|---|
| 65 | 61 | |
|---|
| 66 | | -struct dma_buf_te_ioctl_fill |
|---|
| 67 | | -{ |
|---|
| 62 | +struct dma_buf_te_ioctl_fill { |
|---|
| 68 | 63 | int fd; |
|---|
| 69 | 64 | unsigned int value; |
|---|
| 70 | 65 | }; |
|---|