![]() |
|
|||
0001 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 0002 /* 0003 * Copyright (c) 2015, Integrated Device Technology Inc. 0004 * Copyright (c) 2015, Prodrive Technologies 0005 * Copyright (c) 2015, RapidIO Trade Association 0006 * All rights reserved. 0007 * 0008 * This software is available to you under a choice of one of two licenses. 0009 * You may choose to be licensed under the terms of the GNU General Public 0010 * License(GPL) Version 2, or the BSD-3 Clause license below: 0011 * 0012 * Redistribution and use in source and binary forms, with or without 0013 * modification, are permitted provided that the following conditions are met: 0014 * 0015 * 1. Redistributions of source code must retain the above copyright notice, 0016 * this list of conditions and the following disclaimer. 0017 * 0018 * 2. Redistributions in binary form must reproduce the above copyright notice, 0019 * this list of conditions and the following disclaimer in the documentation 0020 * and/or other materials provided with the distribution. 0021 * 0022 * 3. Neither the name of the copyright holder nor the names of its contributors 0023 * may be used to endorse or promote products derived from this software without 0024 * specific prior written permission. 0025 * 0026 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0027 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 0028 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 0029 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 0030 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 0031 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 0032 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 0033 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 0034 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 0035 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 0036 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0037 */ 0038 0039 #ifndef _RIO_CM_CDEV_H_ 0040 #define _RIO_CM_CDEV_H_ 0041 0042 #include <linux/types.h> 0043 0044 struct rio_cm_channel { 0045 __u16 id; 0046 __u16 remote_channel; 0047 __u16 remote_destid; 0048 __u8 mport_id; 0049 }; 0050 0051 struct rio_cm_msg { 0052 __u16 ch_num; 0053 __u16 size; 0054 __u32 rxto; /* receive timeout in mSec. 0 = blocking */ 0055 __u64 msg; 0056 }; 0057 0058 struct rio_cm_accept { 0059 __u16 ch_num; 0060 __u16 pad0; 0061 __u32 wait_to; /* accept timeout in mSec. 0 = blocking */ 0062 }; 0063 0064 /* RapidIO Channelized Messaging Driver IOCTLs */ 0065 #define RIO_CM_IOC_MAGIC 'c' 0066 0067 #define RIO_CM_EP_GET_LIST_SIZE _IOWR(RIO_CM_IOC_MAGIC, 1, __u32) 0068 #define RIO_CM_EP_GET_LIST _IOWR(RIO_CM_IOC_MAGIC, 2, __u32) 0069 #define RIO_CM_CHAN_CREATE _IOWR(RIO_CM_IOC_MAGIC, 3, __u16) 0070 #define RIO_CM_CHAN_CLOSE _IOW(RIO_CM_IOC_MAGIC, 4, __u16) 0071 #define RIO_CM_CHAN_BIND _IOW(RIO_CM_IOC_MAGIC, 5, struct rio_cm_channel) 0072 #define RIO_CM_CHAN_LISTEN _IOW(RIO_CM_IOC_MAGIC, 6, __u16) 0073 #define RIO_CM_CHAN_ACCEPT _IOWR(RIO_CM_IOC_MAGIC, 7, struct rio_cm_accept) 0074 #define RIO_CM_CHAN_CONNECT _IOW(RIO_CM_IOC_MAGIC, 8, struct rio_cm_channel) 0075 #define RIO_CM_CHAN_SEND _IOW(RIO_CM_IOC_MAGIC, 9, struct rio_cm_msg) 0076 #define RIO_CM_CHAN_RECEIVE _IOWR(RIO_CM_IOC_MAGIC, 10, struct rio_cm_msg) 0077 #define RIO_CM_MPORT_GET_LIST _IOWR(RIO_CM_IOC_MAGIC, 11, __u32) 0078 0079 #endif /* _RIO_CM_CDEV_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |