~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/hsi/hsi_char.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  * Part of the HSI character device driver.
  4  *
  5  * Copyright (C) 2010 Nokia Corporation. All rights reserved.
  6  *
  7  * Contact: Andras Domokos <andras.domokos at nokia.com>
  8  */
  9 
 10 #ifndef __HSI_CHAR_H
 11 #define __HSI_CHAR_H
 12 
 13 #include <linux/types.h>
 14 
 15 #define HSI_CHAR_MAGIC          'k'
 16 #define HSC_IOW(num, dtype)     _IOW(HSI_CHAR_MAGIC, num, dtype)
 17 #define HSC_IOR(num, dtype)     _IOR(HSI_CHAR_MAGIC, num, dtype)
 18 #define HSC_IOWR(num, dtype)    _IOWR(HSI_CHAR_MAGIC, num, dtype)
 19 #define HSC_IO(num)             _IO(HSI_CHAR_MAGIC, num)
 20 
 21 #define HSC_RESET               HSC_IO(16)
 22 #define HSC_SET_PM              HSC_IO(17)
 23 #define HSC_SEND_BREAK          HSC_IO(18)
 24 #define HSC_SET_RX              HSC_IOW(19, struct hsc_rx_config)
 25 #define HSC_GET_RX              HSC_IOW(20, struct hsc_rx_config)
 26 #define HSC_SET_TX              HSC_IOW(21, struct hsc_tx_config)
 27 #define HSC_GET_TX              HSC_IOW(22, struct hsc_tx_config)
 28 
 29 #define HSC_PM_DISABLE          0
 30 #define HSC_PM_ENABLE           1
 31 
 32 #define HSC_MODE_STREAM         1
 33 #define HSC_MODE_FRAME          2
 34 #define HSC_FLOW_SYNC           0
 35 #define HSC_ARB_RR              0
 36 #define HSC_ARB_PRIO            1
 37 
 38 struct hsc_rx_config {
 39         __u32 mode;
 40         __u32 flow;
 41         __u32 channels;
 42 };
 43 
 44 struct hsc_tx_config {
 45         __u32 mode;
 46         __u32 channels;
 47         __u32 speed;
 48         __u32 arb_mode;
 49 };
 50 
 51 #endif /* __HSI_CHAR_H */
 52 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php