/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | a2065.h | 4 * (C) Copyright 1995 by Geert Uytterhoeven <geert@linux-m68k.org> 6 * --------------------------------------------------------------------------- 15 * Written 1993-94 by Donald Becker. 17 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller 21 * --------------------------------------------------------------------------- 27 * --------------------------------------------------------------------------- 29 * The A2065 is a Zorro-II board made by Commodore/Ameristar. It contains: 31 * - an Am7990 Local Area Network Controller for Ethernet (LANCE) with 32 * both 10BASE-2 (thin coax) and AUI (DB-15) connectors 62 #define LE_C0_CERR 0x2000 /* No Heartbeat (10BASE-T) */ [all …]
|
H A D | 7990.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * 7990.h -- LANCE ethernet IC generic routines. 11 * in particular a2065.[ch]. The AMD C-LANCE datasheet was also helpful. 32 * too long (and overflow the RAM on shared-memory cards like the HP LANCE. 41 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 74 volatile unsigned short mode; /* Pre-set mode (reg. 15) */ 84 /* The Tx and Rx ring entries must be aligned on 8-byte boundaries. 85 * This will be true if this whole struct is 8-byte aligned. 114 int auto_select; /* cable-selection is by carrier */ [all …]
|
/openbmc/linux/drivers/net/ethernet/asix/ |
H A D | ax88796c_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 lockdep_assert_held(&ax_local->spi_lock); in ax88796c_soft_reset() 46 AX_WRITE(&ax_local->ax_spi, PSR_RESET, P0_PSR); in ax88796c_soft_reset() 47 AX_WRITE(&ax_local->ax_spi, PSR_RESET_CLR, P0_PSR); in ax88796c_soft_reset() 52 &ax_local->ax_spi, P0_PSR); in ax88796c_soft_reset() 56 temp = AX_READ(&ax_local->ax_spi, P4_SPICR); in ax88796c_soft_reset() 57 if (ax_local->priv_flags & AX_CAP_COMP) { in ax88796c_soft_reset() 58 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset() 60 ax_local->ax_spi.comp = 1; in ax88796c_soft_reset() 62 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset() [all …]
|
/openbmc/linux/sound/pci/cs5535audio/ |
H A D | cs5535audio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg) 6 #define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg) 7 #define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg) 8 #define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg) 9 #define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg) 34 #define EOP (1<<0) macro 118 /* disable Analog Input */ in olpc_capture_close() 120 /* disable the MIC Bias (so the recording LED turns off) */ in olpc_capture_close()
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | ll_temac.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm/dcr-regs.h> 125 * 29 2 EOP 191 * 29 2 EOP 241 #define XTE_RXC1_RXLT_MASK (1 << 25) /* Length/type check disable */ 317 * struct cdmac_bd - LocalLink buffer descriptor format 324 * 4 SOP TX - marks first desc/ RX marks first desct 325 * 5 EOP TX marks last desc/RX marks last desc 347 /* For non-device-tree devices */ 401 #define temac_ior(lp, o) ((lp)->temac_ior(lp, o)) [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | altera_tse.c | 19 #include <asm/dma-mapping.h> 41 next->descriptor_control = next->descriptor_control & in alt_sgdma_construct_descriptor() 45 desc->source = virt_to_phys(read_addr); in alt_sgdma_construct_descriptor() 46 desc->destination = virt_to_phys(write_addr); in alt_sgdma_construct_descriptor() 47 desc->next = virt_to_phys(next); in alt_sgdma_construct_descriptor() 48 desc->bytes_to_transfer = length_or_eop; in alt_sgdma_construct_descriptor() 52 * - Set "owned by hardware" bit in alt_sgdma_construct_descriptor() 53 * - Optionally set "generate EOP" bit in alt_sgdma_construct_descriptor() 54 * - Optionally set the "read from fixed address" bit in alt_sgdma_construct_descriptor() 55 * - Optionally set the "write to fixed address bit (which serves in alt_sgdma_construct_descriptor() [all …]
|
H A D | pic32_eth.c | 1 // SPDX-License-Identifier: GPL-2.0+ 41 if (!dm_gpio_is_valid(&priv->rst_gpio)) in board_netphy_reset() 45 dm_gpio_set_value(&priv->rst_gpio, 0); in board_netphy_reset() 47 dm_gpio_set_value(&priv->rst_gpio, 1); in board_netphy_reset() 56 struct pic32_ectl_regs *ectl_p = priv->ectl_regs; in pic32_mii_init() 57 struct pic32_emac_regs *emac_p = priv->emac_regs; in pic32_mii_init() 62 /* disable RX, TX & all transactions */ in pic32_mii_init() 63 writel(ETHCON_ON | ETHCON_TXRTS | ETHCON_RXEN, &ectl_p->con1.clr); in pic32_mii_init() 66 wait_for_bit_le32(&ectl_p->stat.raw, ETHSTAT_BUSY, false, in pic32_mii_init() 70 writel(ETHCON_ON, &ectl_p->con1.set); in pic32_mii_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_sgdma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 priv->txctrlreg = SGDMA_CTRLREG_ILASTD | in sgdma_initialize() 59 priv->rxctrlreg = SGDMA_CTRLREG_IDESCRIP | in sgdma_initialize() 63 INIT_LIST_HEAD(&priv->txlisthd); in sgdma_initialize() 64 INIT_LIST_HEAD(&priv->rxlisthd); in sgdma_initialize() 66 priv->rxdescphys = (dma_addr_t) 0; in sgdma_initialize() 67 priv->txdescphys = (dma_addr_t) 0; in sgdma_initialize() 69 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize() 70 (void __force *)priv->rx_dma_desc, in sgdma_initialize() 71 priv->rxdescmem, DMA_BIDIRECTIONAL); in sgdma_initialize() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb251xb.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip USB 2.0 Hi-Speed Hub Controller 10 - Richard Leitner <richard.leitner@skidata.com> 15 - microchip,usb2422 16 - microchip,usb2512b 17 - microchip,usb2512bi 18 - microchip,usb2513b 19 - microchip,usb2513bi [all …]
|
/openbmc/linux/drivers/net/ethernet/apple/ |
H A D | bmac.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * mace.h - definitions for the registers in the "Big Mac" 17 #define XIFC 0x000 /* low-level interface control */ 19 # define XIFLoopback 0x0002 /* Loopback-mode XIF enable */ 20 # define MIILoopback 0x0004 /* Loopback-mode MII enable */ 22 # define MIIBuffDisable 0x0008 /* MII receive buffer disable */ 48 #define STATUS 0x200 /* status--reading this clears it */ 49 #define INTDISABLE 0x210 /* interrupt enable/disable control */ 53 # define RxAlignCntExp 0x00000004 /* Align-error counter expired */ 54 # define RxCRCCntExp 0x00000008 /* CRC-error counter expired */ [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | xlnx_csu_dma.c | 25 #include "hw/qdev-properties.h" 36 * https://www.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers 121 paused = !!(s->regs[R_CTRL] & R_CTRL_PAUSE_STRM_MASK); in xlnx_csu_dma_is_paused() 122 paused |= !!(s->regs[R_CTRL] & R_CTRL_PAUSE_MEM_MASK); in xlnx_csu_dma_is_paused() 129 return s->r_size_last_word; in xlnx_csu_dma_get_eop() 134 return !!(s->regs[R_CTRL] & R_CTRL_AXI_BRST_TYPE_MASK); in xlnx_csu_dma_burst_is_fixed() 139 return !!(s->regs[R_CTRL2] & R_CTRL2_TIMEOUT_EN_MASK); in xlnx_csu_dma_timeout_enabled() 147 cnt = ARRAY_FIELD_EX32(s->regs, STATUS, DONE_CNT) + a; in xlnx_csu_dma_update_done_cnt() 148 ARRAY_FIELD_DP32(s->regs, STATUS, DONE_CNT, cnt); in xlnx_csu_dma_update_done_cnt() 156 bswap = s->regs[R_CTRL] & R_CTRL_ENDIANNESS_MASK; in xlnx_csu_dma_data_process() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | mes_v10_1.c | 51 struct amdgpu_device *adev = ring->adev; in mes_v10_1_ring_set_wptr() 53 if (ring->use_doorbell) { in mes_v10_1_ring_set_wptr() 54 atomic64_set((atomic64_t *)ring->wptr_cpu_addr, in mes_v10_1_ring_set_wptr() 55 ring->wptr); in mes_v10_1_ring_set_wptr() 56 WDOORBELL64(ring->doorbell_index, ring->wptr); in mes_v10_1_ring_set_wptr() 64 return *ring->rptr_cpu_addr; in mes_v10_1_ring_get_rptr() 71 if (ring->use_doorbell) in mes_v10_1_ring_get_wptr() 72 wptr = atomic64_read((atomic64_t *)ring->wptr_cpu_addr); in mes_v10_1_ring_get_wptr() 97 struct amdgpu_device *adev = mes->adev; in mes_v10_1_submit_pkt_and_poll_completion() 98 struct amdgpu_ring *ring = &mes->ring; in mes_v10_1_submit_pkt_and_poll_completion() [all …]
|
H A D | mes_v11_0.c | 59 struct amdgpu_device *adev = ring->adev; in mes_v11_0_ring_set_wptr() 61 if (ring->use_doorbell) { in mes_v11_0_ring_set_wptr() 62 atomic64_set((atomic64_t *)ring->wptr_cpu_addr, in mes_v11_0_ring_set_wptr() 63 ring->wptr); in mes_v11_0_ring_set_wptr() 64 WDOORBELL64(ring->doorbell_index, ring->wptr); in mes_v11_0_ring_set_wptr() 72 return *ring->rptr_cpu_addr; in mes_v11_0_ring_get_rptr() 79 if (ring->use_doorbell) in mes_v11_0_ring_get_wptr() 80 wptr = atomic64_read((atomic64_t *)ring->wptr_cpu_addr); in mes_v11_0_ring_get_wptr() 105 struct amdgpu_device *adev = mes->adev; in mes_v11_0_submit_pkt_and_poll_completion() 106 struct amdgpu_ring *ring = &mes->ring; in mes_v11_0_submit_pkt_and_poll_completion() [all …]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunhme.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 38 #define GREG_STAT_ACNTEXP 0x00000004 /* Align-error counter expired */ 39 #define GREG_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */ 40 #define GREG_STAT_LCNTEXP 0x00000010 /* Length-error counter expired */ 42 #define GREG_STAT_CVCNTEXP 0x00000040 /* Code-violation counter expired */ 46 #define GREG_STAT_MAXPKTERR 0x00000400 /* Max-packet size error */ 47 #define GREG_STAT_NCNTEXP 0x00000800 /* Normal-collision counter expired */ 48 #define GREG_STAT_ECNTEXP 0x00001000 /* Excess-collision counter expired */ 49 #define GREG_STAT_LCCNTEXP 0x00002000 /* Late-collision counter expired */ 50 #define GREG_STAT_FCNTEXP 0x00004000 /* First-collision counter expired */ [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 13 static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation."; 15 /* e1000_pci_tbl - PCI Device ID Table 197 static int debug = -1; 202 * e1000_get_hw_dev - helper function for getting netdev 210 struct e1000_adapter *adapter = hw->back; in e1000_get_hw_dev() 211 return adapter->netdev; in e1000_get_hw_dev() 215 * e1000_init_module - Driver Registration Routine 241 * e1000_exit_module - Driver Exit Cleanup Routine [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | netdev.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 36 static int debug = -1; 112 * __ew32_prepare - prepare to write to MAC CSR register on certain parts 127 while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i) in __ew32_prepare() 133 if (hw->adapter->flags2 & FLAG2_PCIM2PCI_ARBITER_WA) in __ew32() 136 writel(val, hw->hw_addr + reg); in __ew32() 140 * e1000_regdump - register printout routine 150 switch (reginfo->ofs) { in e1000_regdump() 164 pr_info("%-15s %08x\n", in e1000_regdump() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | altera_uart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * altera_uart.c -- Altera UART driver 5 * Based on mcf.c -- Freescale ColdFire UART driver 7 * (C) Copyright 2003-2007, Greg Ungerer <gerg@snapgear.com> 54 #define ALTERA_UART_STATUS_DCTS_MSK 0x0400 /* CTS logic-level change */ 56 #define ALTERA_UART_STATUS_EOP_MSK 0x1000 /* EOP written/read */ 72 #define ALTERA_UART_CONTROL_EOP_MSK 0x1000 /* Interrupt on EOP */ 75 * Local per-uart structure. 86 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl() 91 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel() [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | sl811-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 73 while (size--) { in sl811_read_buf() 86 while (size--) { in sl811_write_buf() 95 volatile memctl8xx_t *memctl = &immap->im_memctl; in usb_init_kup4x() 99 memctl = &immap->im_memctl; in usb_init_kup4x() 100 memctl->memc_or7 = 0xFFFF8726; in usb_init_kup4x() 101 memctl->memc_br7 = 0x50000401; /* start at 0x50000000 */ in usb_init_kup4x() 103 immap->im_cpm.cp_pbdat &= ~(BP_USB_VCC); in usb_init_kup4x() 105 immap->im_cpm.cp_pbpar &= ~(BP_USB_VCC); in usb_init_kup4x() 107 immap->im_cpm.cp_pbdir |= (BP_USB_VCC); in usb_init_kup4x() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | goku_udc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Toshiba TC86C001 ("Goku-S") USB Device Controller driver 5 * Copyright (C) 2000-2002 Lineo 12 * This device has ep0 and three semi-configurable bulk/interrupt endpoints. 14 * - Endpoint numbering is fixed: ep{1,2,3}-bulk 15 * - Gadget drivers can choose ep maxpacket (8/16/32/64) 16 * - Gadget drivers can choose direction (IN, OUT) 17 * - DMA works with ep1 (OUT transfers) and ep2 (IN transfers). 21 // #define USB_TRACE /* packet-level success messages */ 49 #define DRIVER_VERSION "30-Oct 2003" [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | uhci-hub.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * (C) Copyright 1999-2002 Johannes Erdfelt, johannes@erdfelt.com 19 USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */ 22 HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */ 41 /* A port that either is connected or has a changed-bit set will prevent 48 for (port = 0; port < uhci->rh_numports; ++port) { in any_ports_active() 51 test_bit(port, &uhci->port_c_suspend)) in any_ports_active() 72 for (port = 0; port < uhci->rh_numports; ++port) { in get_hub_status_data() 74 test_bit(port, &uhci->port_c_suspend)) in get_hub_status_data() 104 if (test_bit(port, &uhci->resuming_ports)) in uhci_finish_suspend() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 15 * i40e_fdir - Generate a Flow Director descriptor based on fdata 25 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fdir() 30 i = tx_ring->next_to_use; in i40e_fdir() 34 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_fdir() 37 (fdata->q_index << I40E_TXD_FLTR_QW0_QINDEX_SHIFT); in i40e_fdir() 40 (fdata->flex_off << I40E_TXD_FLTR_QW0_FLEXOFF_SHIFT); in i40e_fdir() 43 (fdata->pctype << I40E_TXD_FLTR_QW0_PCTYPE_SHIFT); in i40e_fdir() 47 ((u32)(fdata->dest_vsi ? : pf->vsi[pf->lan_vsi]->id) << in i40e_fdir() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | espi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * 61 adapter->regs + A_ESPI_CMD_ADDR); in tricn_write() 62 writel(0, adapter->regs + A_ESPI_GOSTAT); in tricn_write() 65 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write() 66 } while (busy && --attempts); in tricn_write() 69 pr_err("%s: TRICN write timed out\n", adapter->name); in tricn_write() 78 if (!(readl(adapter->regs + A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) { in tricn_init() 79 pr_err("%s: ESPI clock not ready\n", adapter->name); in tricn_init() 80 return -1; in tricn_init() [all …]
|
H A D | sge.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * 113 u32 Eop : 1; member 137 u32 Eop : 1; member 170 unsigned int in_use; /* # of in-use command descriptors */ 218 unsigned int avail; /* available bits - quota */ 255 unsigned int intrtimer_nres; /* no-resource interrupt timer */ 256 unsigned int fixed_intrtimer;/* non-adaptive interrupt timer */ 277 struct sched *s = sge->tx_sched; in tx_sched_stop() 280 tasklet_kill(&s->sched_tsk); in tx_sched_stop() [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pcie_intel_fpga.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-2018 Intel Corporation. All rights reserved 38 ((pcie->hip_base) + (reg) + (1 << 20)) 42 ((((bus != pcie->first_busno) ? TLP_FMTTYPE_CFGRD0 \ 47 ((((bus != pcie->first_busno) ? TLP_FMTTYPE_CFGWR0 \ 52 (((TLP_REQ_ID(pcie->first_busno, RP_DEVFN)) << 16) | (tag << 8) | (be)) 63 ((PCI_BUS(bdf) == pcie->first_busno) ? true : false) 69 * struct intel_fpga_pcie - Intel FPGA PCIe controller state 74 * first_busno stores the bus number of the PCIe root-port 105 writel(value, pcie->cra_base + reg); in cra_writel() [all …]
|
/openbmc/linux/drivers/net/ethernet/socionext/ |
H A D | netsec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 247 #define NETSEC_RX_BUF_SIZE (PAGE_SIZE - NETSEC_RX_BUF_NON_DATA) 333 writel(val, priv->ioaddr + reg_addr); in netsec_write() 338 return readl(priv->ioaddr + reg_addr); in netsec_read() 366 while (--timeout && netsec_read(priv, addr) & mask) in netsec_wait_while_busy() 372 while (--timeout && netsec_read(priv, addr) & mask) in netsec_wait_while_busy() 378 netdev_WARN(priv->ndev, "%s: timeout\n", __func__); in netsec_wait_while_busy() 380 return -ETIMEDOUT; in netsec_wait_while_busy() 417 } while (--timeout && (data & mask)); in netsec_mac_wait_while_busy() 430 } while (--timeout && (data & mask)); in netsec_mac_wait_while_busy() [all …]
|