1 /***************************************************************************** 2 * Copyright ©2017-2019 Gemalto – a Thales Company. All rights Reserved. 3 * 4 * This copy is licensed under the Apache License, Version 2.0 (the "License"); 5 * You may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * http://www.apache.org/licenses/LICENSE-2.0 or https://www.apache.org/licenses/LICENSE-2.0.html 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 * See the License for the specific language governing permissions and limitations under the License. 11 12 ****************************************************************************/ 13 14 /** 15 * @file 16 * $Author$ 17 * $Revision$ 18 * $Date$ 19 * 20 * Interface to transport to transparently send/receive data. 21 * 22 */ 23 24 #ifndef SPI_H 25 #define SPI_H 26 27 int spi_setup(struct se_gto_ctx *ctx); 28 int spi_teardown(struct se_gto_ctx *ctx); 29 int spi_write(int fd, const void *buf, size_t count); 30 int spi_read(int fd, void *buf, size_t count); 31 32 #endif /* SPI_H */ 33