/openbmc/qemu/hw/char/ |
H A D | escc.c | 4 * Copyright (c) 2003-2005 Fabrice Bellard 27 #include "hw/qdev-properties.h" 28 #include "hw/qdev-properties-system.h" 45 * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt 70 * 2006-Aug-10 Igor Kovalenko : Renamed KBDQueue to SERIOQueue, implemented 74 * 2010-May-23 Artyom Tarasenko: Reworked IUS logic 77 #define CHN_C(s) ((s)->chn == escc_chn_b ? 'b' : 'a') 202 return s->bit_swap ? s->it_shift + 1 : s->it_shift; in reg_shift() 207 return s->bit_swap ? s->it_shift : s->it_shift + 1; in chn_shift() 213 ESCCSERIOQueue *q = &s->queue; in clear_queue() [all …]
|
/openbmc/qemu/include/hw/char/ |
H A D | escc.h | 4 #include "chardev/char-fe.h" 5 #include "chardev/char-serial.h" 41 int disabled; member 44 ESCCChnID chn; /* this channel, A (base+4) or B (base+0) */ member 57 struct ESCCChannelState chn[2]; member 61 uint32_t disabled; member
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | mt8195-afe-pcm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Trevor Wu <trevor.wu@mediatek.com> 14 const: mediatek,mt8195-audio 25 reset-names: 28 memory-region: 31 Shared memory region for AFE memif. A "shared-dma-pool". 32 See ../reserved-memory/reserved-memory.txt for details. [all …]
|
H A D | mediatek,mt8188-afe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8188-afe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Trevor Wu <trevor.wu@mediatek.com> 14 const: mediatek,mt8188-afe 25 reset-names: 28 memory-region: 31 Shared memory region for AFE memif. A "shared-dma-pool". 32 See ../reserved-memory/reserved-memory.yaml for details. [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | rockchip_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2016, Fuzhou Rockchip Electronics Co., Ltd 4 * Caesar Wang <wxt@rock-chips.com> 55 * struct chip_tsadc_table - hold information about chip-specific differences 69 * struct rockchip_tsadc_chip - hold the private data of tsadc chip 72 * @tshut_temp: the hardware-controlled shutdown temperature value 73 * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO) 74 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH) 80 * @set_tshut_temp: set the hardware-controlled shutdown temperature 81 * @set_tshut_mode: set the hardware-controlled shutdown mode [all …]
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | io.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Lee Revell <rlrevell@joe-job.com> 5 * James Courtier-Dutton <James@superbug.co.uk> 23 if (snd_BUG_ON(reg & (emu->audigy ? (0xffff0000 & ~A_PTR_ADDRESS_MASK) in check_ptr_reg() 31 unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, unsigned int chn) in snd_emu10k1_ptr_read() argument 37 regptr = (reg << 16) | chn; in snd_emu10k1_ptr_read() 41 spin_lock_irqsave(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() 42 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read() 43 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read() 44 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_emu10k1_ptr_read() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | soundcard.h | 2 * Copyright by Hannu Savolainen 1993-1997 228 #define WAVE_UNSIGNED 0x02 /* bit 1 = Signed - Unsigned data. */ 229 #define WAVE_LOOPING 0x04 /* bit 2 = looping enabled-1. */ 233 #define WAVE_ENVELOPES 0x40 /* bit 6 = Enable envelopes - 1 */ 269 int panning; /* -128=left, 127=right */ 378 /* undefined 0x14 - 0x1f */ 395 /* undefined 0x46 - 0x4f */ 401 /* undefined 0x54 - 0x5a */ 414 /* undefined 0x66 - 0x78 */ 415 /* reserved 0x79 - 0x7f */ [all …]
|
/openbmc/linux/include/sound/ |
H A D | wavefront.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * Copyright (c) by Paul Barton-Davis <pbd@op.net> 15 of 22 bytes, corresponding to 16-bit alignment (as would have been 16 the case on the original platform, MS-DOS). If this is not done, 17 then WavePatch-format files cannot be read/written correctly. 51 between a 16-bit view of the world and a 32-bit one. 70 /* Pseudo-commands not part of the WaveFront command set. 154 /* OR-values for MIDI status bits */ 169 disabled. If they do show up as input, the results are unpredictable. 379 #define WF_SAMPLE_IS_8BIT(smpl) ((smpl)->SampleResolution&2) [all …]
|
H A D | emu10k1.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 #include <sound/pcm-indirect.h> 25 /* ------------------- DEFINES -------------------- */ 33 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */ 41 // This is used to define hardware bit-fields (sub-registers) by combining 44 // The non-concatenating (_NC) variant should be used directly only for 45 // sub-registers that do not follow the <register>_<field> naming pattern. 55 // Macros for manipulating values of bit-fields declared using the above macros. 59 // single sub-register at a time. 62 #define REG_MASK0(r) ((1U << REG_SIZE(r)) - 1U) [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 31 #include <linux/dma/ti-cppi5.h> 32 #include <linux/dma/k3-udma-glue.h> 37 #include "am65-cpsw-nuss.h" 38 #include "am65-cpsw-switchdev.h" 39 #include "k3-cppi-desc-pool.h" 40 #include "am65-cpts.h" 117 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 146 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac() [all …]
|
/openbmc/linux/sound/soc/pxa/ |
H A D | pxa-ssp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pxa-ssp.c -- ALSA Soc Audio Layer 30 #include <sound/pxa2xx-lib.h> 33 #include "pxa-ssp.h" 55 dev_dbg(ssp->dev, "SSCR0 0x%08x SSCR1 0x%08x SSTO 0x%08x\n", in dump_registers() 59 dev_dbg(ssp->dev, "SSPSP 0x%08x SSSR 0x%08x SSACD 0x%08x\n", in dump_registers() 67 dma->addr_width = width4 ? DMA_SLAVE_BUSWIDTH_4_BYTES : in pxa_ssp_set_dma_params() 69 dma->maxburst = 16; in pxa_ssp_set_dma_params() 70 dma->addr = ssp->phys_base + SSDR; in pxa_ssp_set_dma_params() 77 struct ssp_device *ssp = priv->ssp; in pxa_ssp_startup() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | mixer_scarlett2.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * - 6i6/18i8/18i20 Gen 2 9 * - Solo/2i2/4i4/8i6/18i8/18i20 Gen 3 10 * - Clarett 2Pre/4Pre/8Pre USB 11 * - Clarett+ 2Pre/4Pre/8Pre 13 * Copyright (c) 2018-2023 by Geoffrey D. Bennett <g at b4.vu> 14 * Copyright (c) 2020-2021 by Vladimir Sadovnikov <sadko4u@gmail.com> 34 * (firmware 1083) using usbmon in July-August 2018. 57 * and talkback added in May-June 2021. 71 * This ALSA mixer gives access to (model-dependent): [all …]
|
/openbmc/linux/Documentation/sound/cards/ |
H A D | hdspm.rst | 2 Software Interface ALSA-DSP MADI Driver 5 (translated from German, so no good English ;-), 7 2004 - winfried ritsch 11 the Controls and startup-options are ALSA-Standard and only the 19 ------------------ 21 * number of channels -- depends on transmission mode 25 since unused DMA channels are disabled and less memory is 29 * Single Speed -- 1..64 channels 37 * Double Speed -- 1..32 channels 40 Note: Choosing the 56-channel mode for [all …]
|
/openbmc/u-boot/arch/arm/mach-rockchip/rk3036/ |
H A D | sdram_rk3036.c | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 17 * (due to 4K SRAM size limits), so these are hard-coded 277 * 100: lpddr2-s2 278 * 101: lpddr2-s4 284 /* 0: 1 chn, 1: 2 chn */ 329 struct rk3036_pll *pll = &priv->cru->pll[1]; in rkdclk_init() 331 /* pll enter slow-mode */ in rkdclk_init() 332 rk_clrsetreg(&priv->cru->cru_mode_con, DPLL_MODE_MASK, in rkdclk_init() 336 rk_setreg(&pll->con1, 1 << PLL_DSMPD_SHIFT); in rkdclk_init() 338 rk_clrsetreg(&pll->con0, in rkdclk_init() [all …]
|
/openbmc/fb-ipmi-oem/src/ |
H A D | selcommands.cpp | 3 * Copyright (c) 2018-present Facebook. 9 * http://www.apache.org/licenses/LICENSE-2.0 22 #include <phosphor-logging/log.hpp> 58 //---------------------------------------------------------------------- 60 //---------------------------------------------------------------------- 95 return -1; in fromHexStr() 100 return -1; in fromHexStr() 191 return -1; in clear() 222 return -1; in getEntry() 235 return -1; in addEntry() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_picmg.c | 22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. 77 lprintf(LOG_NOTICE, " properties - get PICMG properties"); in ipmi_picmg_help() 78 lprintf(LOG_NOTICE, " frucontrol - FRU control"); in ipmi_picmg_help() 79 lprintf(LOG_NOTICE, " addrinfo - get address information"); in ipmi_picmg_help() 80 lprintf(LOG_NOTICE, " activate - activate a FRU"); in ipmi_picmg_help() 81 lprintf(LOG_NOTICE, " deactivate - deactivate a FRU"); in ipmi_picmg_help() 82 lprintf(LOG_NOTICE, " policy get - get the FRU activation policy"); in ipmi_picmg_help() 83 lprintf(LOG_NOTICE, " policy set - set the FRU activation policy"); in ipmi_picmg_help() 84 lprintf(LOG_NOTICE, " portstate get - get port state"); in ipmi_picmg_help() 86 " portstate getdenied - get all denied[disabled] port description"); in ipmi_picmg_help() [all …]
|
/openbmc/linux/sound/pci/ca0106/ |
H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 50 * Implement support for Line-in capture on SB Live 24bit. 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ 93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 107 #define INTE_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|
/openbmc/linux/drivers/xen/events/ |
H A D | events_base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * must dynamically map irqs<->event channels. The event channels 15 * 1. Inter-domain notifications. This includes all the virtual 16 * device events, since they're driven by front-ends in another domain 18 * 2. VIRQs, typically used for timers. These are per-cpu events. 20 * 4. PIRQs - Hardware interrupts. 59 #include <xen/xen-ops.h> 87 * type - enum xen_irq_type 88 * event channel - irq->event channel mapping 89 * cpu - cpu this event channel is bound to [all …]
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * debugfs.c - DesignWare USB3 DRD Controller DebugFS file 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 287 struct dwc3 *dwc = s->private; in dwc3_host_lsp() 293 dbc_enabled = !!(dwc->hwparams.hwparams1 & DWC3_GHWPARAMS1_ENDBC); in dwc3_host_lsp() 295 sel = dwc->dbg_lsp_select; in dwc3_host_lsp() 303 dwc3_writel(dwc->regs, DWC3_GDBGLSPMUX, reg); in dwc3_host_lsp() 304 val = dwc3_readl(dwc->regs, DWC3_GDBGLSP); in dwc3_host_lsp() 309 dwc3_writel(dwc->regs, DWC3_GDBGLSPMUX, reg); in dwc3_host_lsp() 310 val = dwc3_readl(dwc->regs, DWC3_GDBGLSP); in dwc3_host_lsp() [all …]
|
/openbmc/u-boot/drivers/ram/rockchip/ |
H A D | sdram_rk3188.c | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 12 #include <dt-structs.h> 103 rk_clrsetreg(&cru->cru_softrst_con[5], in ddr_reset() 116 rk_clrsetreg(&cru->cru_softrst_con[5], in ddr_phy_ctl_reset() 128 clrbits_le32(&publ->acdllcr, ACDLLCR_DLLSRST); in phy_pctrl_reset() 130 clrbits_le32(&publ->datx8[i].dxdllcr, DXDLLCR_DLLSRST); in phy_pctrl_reset() 133 setbits_le32(&publ->acdllcr, ACDLLCR_DLLSRST); in phy_pctrl_reset() 135 setbits_le32(&publ->datx8[i].dxdllcr, DXDLLCR_DLLSRST); in phy_pctrl_reset() 151 clrbits_le32(&publ->dllgcr, SBIAS_BYPASS); in phy_dll_bypass_set() 153 setbits_le32(&publ->dllgcr, SBIAS_BYPASS); in phy_dll_bypass_set() [all …]
|
H A D | sdram_rk3288.c | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 12 #include <dt-structs.h> 102 rk_clrsetreg(&cru->cru_softrst_con[10], in ddr_reset() 115 rk_clrsetreg(&cru->cru_softrst_con[10], in ddr_phy_ctl_reset() 127 clrbits_le32(&publ->acdllcr, ACDLLCR_DLLSRST); in phy_pctrl_reset() 129 clrbits_le32(&publ->datx8[i].dxdllcr, DXDLLCR_DLLSRST); in phy_pctrl_reset() 132 setbits_le32(&publ->acdllcr, ACDLLCR_DLLSRST); in phy_pctrl_reset() 134 setbits_le32(&publ->datx8[i].dxdllcr, DXDLLCR_DLLSRST); in phy_pctrl_reset() 150 clrbits_le32(&publ->dllgcr, SBIAS_BYPASS); in phy_dll_bypass_set() 152 setbits_le32(&publ->dllgcr, SBIAS_BYPASS); in phy_dll_bypass_set() [all …]
|
/openbmc/linux/drivers/tty/vt/ |
H A D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Some additional features added by Christoph Niemann (ChN), March 1993 15 * 11-11-96: SAK should now work in the raw mode (Martin Mares) 18 * Merge with the m68k keyboard driver and split-off of the PC low-level 21 * 27-05-97: Added support for the Magic SysRq Key (Martin Mares) 22 * 30-07-98: Dead keys redone, aeb@cwi.nl. 23 * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) 116 [ KT_FN ] = ARRAY_SIZE(func_table) - 1, 117 [ KT_SPEC ] = ARRAY_SIZE(fn_handler) - 1, 118 [ KT_PAD ] = NR_PAD - 1, [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | it87.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * it87.c - Part of lm_sensors, Linux kernel modules for hardware 6 * The IT8705F is an LPC-based Super I/O part that contains UARTs, a 41 * Copyright (C) 2005-2010 Jean Delvare <jdelvare@suse.de> 53 #include <linux/hwmon-sysfs.h> 54 #include <linux/hwmon-vid.h> 126 return -EBUSY; in superio_enter() 211 /*----- The IT87 registers -----*/ 221 * Super-I/O configuration space. 230 * for fan divisors. Later IT8712F revisions must use 16-bit tachometer [all …]
|
/openbmc/linux/net/bluetooth/rfcomm/ |
H A D | core.c | 44 static int channel_mtu = -1; 75 /* ---- RFCOMM frame parsing macros ---- */ 83 #define __session_dir(s) ((s)->initiator ? 0x00 : 0x01) 87 #define __dlci(dir, chn) (((chn & 0x1f) << 1) | dir) argument 111 /* ---- RFCOMM FCS computation ---- */ 113 /* reversed, 8-bit, poly=0x07 */ 162 return 0xff - __crc(data); in __fcs() 168 return 0xff - rfcomm_crc_table[__crc(data) ^ data[2]]; in __fcs2() 182 /* ---- L2CAP callbacks ---- */ 185 BT_DBG("%p state %d", sk, sk->sk_state); in rfcomm_l2state_change() [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | dwc3.rst | 15 1. Peripheral-only configuration 16 2. Host-only configuration 17 3. Dual-Role configuration 46 pipe - ep0) 49 4. Scatter-list support 58 These features have all been exercised with many of the **in-tree** 67 for new-comers to read the code and understand how it behaves. 83 --------------------------------- 88 receive a Mass Storage *CBW* [#cbw]_, req->length must either be set 91 to a throw-away buffer for the remaining length. Without this, OUT [all …]
|