| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| library fuchsia.driver.transport.test; |
| |
| using zx; |
| |
| const MAX_TRANSFER_SIZE uint32 = 4096; |
| |
| protocol TestDevice { |
| /// Sets the test data that can be retrieved from this device using a runtime channel. |
| SetTestData(struct { |
| in vector<uint8>:MAX_TRANSFER_SIZE; |
| }) -> (struct {}) error zx.status; |
| }; |
| |
| protocol TestDeviceChild { |
| /// Returns the test data stored in the parent device using the runtime channel. |
| GetParentDataOverDriverTransport() -> (struct { |
| out vector<uint8>:MAX_TRANSFER_SIZE; |
| }) error zx.status; |
| }; |
| |
| @discoverable |
| @transport("Driver") |
| protocol DriverTransportProtocol { |
| /// Returns the test data stored in the parent device. |
| TransmitData() -> (struct { |
| out vector<uint8>:MAX_TRANSFER_SIZE; |
| }) error zx.status; |
| }; |