Hridya Valsaraju | 3e32003 | 2016-08-08 11:12:30 -0700 | [diff] [blame] | 1 | package android.hardware.tests.msgq@1.0; |
| 2 | |
| 3 | interface ITestMsgQ { |
| 4 | |
| 5 | struct shm_t { |
| 6 | uint32_t fdIndex; |
| 7 | uint32_t offset; |
| 8 | uint32_t extent; |
| 9 | }; |
| 10 | struct WireGrantorDescriptor { |
| 11 | uint32_t flags; |
| 12 | shm_t shm; |
| 13 | }; |
| 14 | |
| 15 | struct WireMQDescriptor { |
| 16 | vec<WireGrantorDescriptor> grantors; |
| 17 | handle mq_handle; |
| 18 | uint32_t quantum; |
| 19 | uint32_t nQuanta; |
| 20 | uint32_t flags; |
| 21 | }; |
| 22 | |
| 23 | |
| 24 | configure() generates ( WireMQDescriptor mq_desc ); |
| 25 | requestWrite (int32_t count) generates (int32_t ret); |
| 26 | requestRead(int32_t count) generates (int32_t ret); |
| 27 | |
| 28 | }; |