/linux/drivers/spi/ |
H A D | spi-falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #define DRV_NAME "sflash-falcon" 26 /* Serial Flash Configuration Register */ 28 /* Serial Flash Time Register */ 30 /* Serial Flash Status Register */ 32 /* Serial Flash Command Register */ 34 /* Serial Flash Address Register */ 36 /* Serial Flash Data Register */ 38 /* Serial Flash I/O Control Register */ 52 /* SCK Rise-edge Position */ [all …]
|
/linux/drivers/tty/ |
H A D | amiserial.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Serial driver for the amiga builtin port. 5 * This code was created by taking serial.c version 4.30 from kernel 9 * associated with the registers and bits of 16550 compatible UARTS - 10 * but only to keep track of status, etc in the state variables. It 12 * (non hardware specific) changes to serial.c. 33 * End of serial driver configuration section. 52 #include <linux/serial.h> 103 /* some serial hardware definitions */ 126 * ------------------------------------------------------------ [all …]
|
/linux/drivers/hid/intel-thc-hid/intel-quicki2c/ |
H A D | quicki2c-dev.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #include <linux/hid-over-i2c.h> 68 * struct quicki2c_subip_acpi_parameter - QuickI2C ACPI DSD parameters 83 * struct quicki2c_subip_acpi_config - QuickI2C ACPI DSD parameters 84 * @SMHX: Standard Mode (100 kbit/s) Serial Clock Line HIGH Period 85 * @SMLX: Standard Mode (100 kbit/s) Serial Clock Line LOW Period 86 * @SMTD: Standard Mode (100 kbit/s) Serial Data Line Transmit Hold Period 87 * @SMRD: Standard Mode (100 kbit/s) Serial Data Receive Hold Period 88 * @FMHX: Fast Mode (400 kbit/s) Serial Clock Line HIGH Period 89 * @FMLX: Fast Mode (400 kbit/s) Serial Clock Line LOW Period [all …]
|
/linux/drivers/usb/serial/ |
H A D | mxuport.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * mxuport.c - MOXA UPort series driver 8 * Supports the following Moxa USB to serial converters: 11 * 8 ports : UPort 1610-8, UPort 1650-8 12 * 16 ports : UPort 1610-16, UPort 1650-16 19 #include <linux/serial.h> 27 #include <linux/usb/serial.h> 72 #define RQ_VENDOR_SET_HIGH_PERFOR 0x11 /* Set hi-performance */ 90 #define RQ_VENDOR_GET_ROM_PROC 0x83 /* Get ROM process state */ 105 /* Definitions for serial event type */ [all …]
|
H A D | cp210x.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 6 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org) 10 * control thanks to Munir Nassar nassarmu@real-time.com 21 #include <linux/usb/serial.h> 26 #define DRIVER_DESC "Silicon Labs CP210x RS232 serial adaptor driver" 55 { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */ 56 { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */ 57 { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */ 58 { USB_DEVICE(0x0489, 0xE003) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */ [all …]
|
H A D | belkin_sa.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Definitions for Belkin USB Serial Adapter Driver 8 * This program is largely derived from work by the linux-usb group 9 * and associated source files. Please see the usb/serial files for 12 * See Documentation/usb/usb-serial.rst for more information on using this 15 * 12-Mar-2001 gkh 16 * Added GoHubs GO-COM232 device id. 18 * 06-Nov-2000 gkh 21 * 12-Oct-2000 William Greathouse 22 * First cut at supporting Belkin USB Serial Adapter F5U103 [all …]
|
H A D | pl2303.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Prolific PL2303 USB to serial adaptor driver 5 * Copyright (C) 2001-2007 Greg Kroah-Hartman (greg@kroah.com) 10 * See Documentation/usb/usb-serial.rst for more information on using this 20 #include <linux/serial.h> 26 #include <linux/usb/serial.h> 244 static int pl2303_vendor_read(struct usb_serial *serial, u16 value, in pl2303_vendor_read() argument 247 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read() 248 struct device *dev = &serial->interface->dev; in pl2303_vendor_read() 252 if (spriv->type == &pl2303_type_data[TYPE_HXN]) in pl2303_vendor_read() [all …]
|
H A D | kl5kusb105.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de> 10 * It was written out of frustration with the PalmConnect USB Serial adapter 15 * It seems that KLSI bought some silicon-design information from ScanLogic, 21 * on the protocol used (or find errors in my reverse-engineered stuff), please 25 * are adventurous, try it with any KLSI-based device and let me know how it 44 #include <linux/usb/serial.h> 47 #define DRIVER_AUTHOR "Utz-Uwe Haus <haus@uuhaus.de>, Johan Hovold <jhovold@gmail.com>" 48 #define DRIVER_DESC "KLSI KL5KUSB105 chipset USB->Serial Converter driver" 127 rc = usb_control_msg_send(port->serial->dev, in klsi_105_chg_port_settings() [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-bcm6328.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Álvaro Fernández Rojas <noltari@gmail.com> 15 However, on some devices there are Serial LEDs (LEDs connected to a 74x164 17 as spi-gpio. See 20 Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and 21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware 29 explained later in brcm,link-signal-sources). Even if a LED is hardware [all …]
|
/linux/net/rxrpc/ |
H A D | conn_event.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* connection-level event handling 17 #include "ar-internal.h" 20 * Set the completion state on an aborted connection. 28 if (conn->state ! in rxrpc_set_conn_aborted() 95 u32 serial, max_mtu, if_mtu, call_id, padding; rxrpc_conn_retransmit_call() local [all...] |
H A D | ar-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 #include <keys/rxrpc-type.h> 37 * Mark applied to socket buffers in skb->mark. skb->priority is used 46 RXRPC_SKB_MARK_REJECT_ABORT, /* Reject with ABORT (code in skb->priority) */ 47 RXRPC_SKB_MARK_REJECT_CONN_ABORT, /* Reject with connection ABORT (code in skb->priority) */ 65 * Per-network namespace data. 69 u32 epoch; /* Local epoch for detecting local-end reset */ 71 spinlock_t call_lock; /* Lock for ->calls */ 78 rwlock_t conn_lock; /* Lock for ->conn_proc_list, ->service_conns */ 87 struct mutex local_mutex; /* Lock for ->local_endpoints */ [all …]
|
/linux/Documentation/driver-api/serial/ |
H A D | driver.rst | 2 Low Level Serial API 6 This document is meant as a brief overview of some aspects of the new serial 10 The reference implementation is contained within amba-pl011.c. 14 Low Level Serial Hardware Driver 15 -------------------------------- 17 The low level serial hardware driver is responsible for supplying port 19 by uart_ops) to the core serial driver. The low level driver is also 25 --------------- 27 The serial core provides a few helper functions. This includes 37 ------- [all …]
|
/linux/drivers/parisc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 The VSC, GSC and HSC busses were used from the earliest 700-series 12 were also used in servers from the E-class to the K-class. They 17 bool "HP-PB bus support" 20 The HP-PB bus was used in the Nova class and K-class servers. 28 generation of PA-RISC cache-coherent machines. Programs the 36 many PA-RISC workstations & servers. It includes interfaces 37 for a parallel port, serial port, NCR 53c710 SCSI, Apricot 48 715/100. Wax includes an EISA adapter, a serial port (not always 67 Note that Dino also supplies one of the serial ports on certain [all …]
|
/linux/drivers/iio/chemical/ |
H A D | sps30_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Sensirion SPS30 particulate matter sensor serial driver 51 static int sps30_serial_xfer(struct sps30_state *state, const unsigned char *buf, size_t size) in sps30_serial_xfer() argument 53 struct serdev_device *serdev = to_serdev_device(state->dev); in sps30_serial_xfer() 54 struct sps30_serial_priv *priv = state->priv; in sps30_serial_xfer() 57 priv->num = 0; in sps30_serial_xfer() 58 priv->escaped = false; in sps30_serial_xfer() 59 priv->done = false; in sps30_serial_xfer() 65 return -EIO; in sps30_serial_xfer() 67 ret = wait_for_completion_interruptible_timeout(&priv->new_frame, SPS30_SERIAL_TIMEOUT); in sps30_serial_xfer() [all …]
|
H A D | scd30_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Sensirion SCD30 carbon dioxide sensor serial driver 55 static int scd30_serdev_xfer(struct scd30_state *state, char *txbuf, int txsize, in scd30_serdev_xfer() argument 58 struct serdev_device *serdev = to_serdev_device(state->dev); in scd30_serdev_xfer() 59 struct scd30_serdev_priv *priv = state->priv; in scd30_serdev_xfer() 62 priv->buf = rxbuf; in scd30_serdev_xfer() 63 priv->num_expected = rxsize; in scd30_serdev_xfer() 64 priv->num = 0; in scd30_serdev_xfer() 70 return -EIO; in scd30_serdev_xfer() 72 ret = wait_for_completion_interruptible_timeout(&priv->meas_ready, SCD30_SERDEV_TIMEOUT); in scd30_serdev_xfer() [all …]
|
/linux/drivers/iio/imu/bno055/ |
H A D | bno055_ser_core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Serial line interface for Bosh BNO055 IMU (via serdev). 4 * This file implements serial communication up to the register read/write 7 * Copyright (C) 2021-2022 Istituto Italiano di Tecnologia 33 * +------+------+-----+-----+----- ... ----+ 35 * +------+------+-----+-----+----- ... ----+ 38 * +------+----------+ 40 * +------+----------+ 45 * sw resets - bno055 on serial bus basically requires the hw reset pin). 48 * +------+------+-----+-----+ [all …]
|
/linux/arch/arm/include/asm/hardware/ |
H A D | sa1111.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * This file contains definitions for the SA-1111 Companion Chip. 8 * (Structure and naming borrowed from SA-1101.h, by Peter Danielsson.) 10 * Macro that calculates real address for registers in the SA-1111 50 * - The October 1999 errata (278260-007) says its bit 13, 1 to enable. 51 * - The Feb 2001 errata (278260-010) says that the previous errata 52 * (278260-009) is wrong, and its bit actually 12, fixed in spec 53 * 278242-003. 54 * - The SA1111 manual (278242) says bit 12, but 0 to enable. 55 * - Reality is bit 13, 1 to enable. [all …]
|
/linux/drivers/tty/serial/ |
H A D | mux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 ** serial driver for the Mux console found in some PA-RISC servers. 7 ** (c) Copyright 2002 Hewlett-Packard Company 18 #include <linux/serial.h> 26 #include <asm/parisc-device.h> 63 #define UART_PUT_CHAR(p, c) __raw_writel((c), (p)->membase + IO_DATA_REG_OFFSET) 64 #define UART_GET_FIFO_CNT(p) __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET) 67 * get_mux_port_count - Get the number of available ports on the Mux. 82 /* If this is the built-in Mux for the K-Class (Eole CAP/MUX), in get_mux_port_count() 86 if(dev->id.hversion == 0x15) in get_mux_port_count() [all …]
|
H A D | serial_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver core for serial ports 5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. 8 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd. 24 #include <linux/serial.h> /* for serial_state and serial_icounter_struct */ 38 * This is used to lock changes in serial line configuration. 43 * lockdep: port->lock is initialized in two places, but we 44 * want only one lock-class: 48 #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8) 55 static void uart_change_pm(struct uart_state *state, [all …]
|
H A D | serial_txx9.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (C) 2000-2002 Toshiba Corporation 12 * Serial driver for TX3927/TX4927/TX4925/TX4938 internal SIO controller 23 #include <linux/serial.h> 33 /* "ttyS" is used for standard serial driver */ 38 /* acts like standard serial driver */ 54 * Number of serial ports 60 /* TXX9 Serial Registers */ 161 switch (up->iotype) { in sio_in() 163 return __raw_readl(up->membase + offset); in sio_in() [all …]
|
/linux/include/linux/ |
H A D | serial_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 25 ((port)->cons && (port)->cons->index == (port)->line) 37 * struct uart_ops -- interface between serial_core and the driver 55 * This function sets the modem control lines for @port to the state 58 * - %TIOCM_RTS RTS signal. 59 * - %TIOCM_DTR DTR signal. 60 * - %TIOCM_OUT1 OUT1 signal. 61 * - %TIOCM_OUT2 OUT2 signal. 62 * - %TIOCM_LOOP Set the port into loopback mode. 68 * Locking: @port->lock taken. [all …]
|
/linux/security/keys/ |
H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 p = proc_create_seq("key-users", 0, NULL, &proc_key_users_ops); in key_proc_init() 53 panic("Cannot create /proc/key-users\n"); in key_proc_init() 71 if (kuid_has_mapping(user_ns, key->user->uid)) in key_serial_next() 86 if (id < key->serial) { in find_ge_key() 87 if (!minkey || minkey->serial > key->serial) in find_ge_key() 89 n = n->rb_left; in find_ge_key() 90 } else if (id > key->serial) { in find_ge_key() 91 n = n->rb_right; in find_ge_key() 103 if (kuid_has_mapping(user_ns, minkey->user->uid)) in find_ge_key() [all …]
|
/linux/drivers/platform/surface/ |
H A D | surface3_power.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2016-2018 Red Hat, Inc 6 * (C) Copyright 2016-2018 Benjamin Tissoires <benjamin.tissoires@gmail.com> 9 * This driver has been reverse-engineered by parsing the DSDT of the Surface 3 13 * - the driver is required for the ACPI BAT0 device to communicate to the chip 15 * - the various defines for the operation region functions to communicate with 17 * - the DSM 3f99e367-6220-4955-8b0f-06ef2ae79412 allows to trigger ACPI 21 * - there are 2 chips declared: 24 * - the battery chip uses a SMBus protocol (using plain SMBus allows non 84 char serial[SURFACE_3_STRLEN]; member [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-vinco.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 * 2015 Gregory CLEMENT <gregory.clement@free-electrons.com> 9 /dts-v1/; 17 stdout-path = "serial0:115200n8"; 26 clock-frequency = <32768>; 30 clock-frequency = <12000000>; 42 pinctrl-names = "default"; 43 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 46 vqmmc-supply = <&vcc_3v3_reg>; 47 vmmc-supply = <&vcc_3v3_reg>; [all …]
|
/linux/Documentation/usb/ |
H A D | usb-serial.rst | 2 USB serial 8 The USB serial driver currently supports a number of different USB to 9 serial converter products, as well as some devices that use a serial 19 Currently the driver can handle up to 256 different serial interfaces at 45 -------------------------------------- 58 ----------------------------------------------- 72 This goes against the current documentation for pilot-xfer and other 77 (this is usually /dev/ttyUSB1 if you do not have any other usb-serial 99 Kroah-Hartman at greg@kroah.com 103 ------------------- [all …]
|