/linux/arch/x86/kernel/ |
H A D | probe_roms.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/pci.h> 17 #include <asm/pci-direct.h> 79 /* does this oprom support the given pci device, or any of the devices 84 struct pci_driver *drv = to_pci_driver(pdev->dev.driver); in match_id() 87 if (pdev->vendor == vendor && pdev->device == device) in match_id() 90 for (id = drv ? drv->id_table : NULL; id && id->vendor; id++) in match_id() 91 if (id->vendor == vendor && id->device == device) in match_id() 94 return id && id->vendor; in match_id() 125 if (res->end == 0) in find_oprom() [all …]
|
/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/pci.h> 22 MODULE_DEVICE_TABLE(pci, pdsc_id_table); 28 dev_dbg(pdsc->dev, "%s: jiffies %ld\n", __func__, jiffies); in pdsc_wdtimer_cb() 29 mod_timer(&pdsc->wdtimer, in pdsc_wdtimer_cb() 30 round_jiffies(jiffies + pdsc->wdtimer_period)); in pdsc_wdtimer_cb() 32 queue_work(pdsc->wq, &pdsc->health_work); in pdsc_wdtimer_cb() 37 struct pdsc_dev_bar *bars = pdsc->bars; in pdsc_unmap_bars() 40 pdsc->info_regs = NULL; in pdsc_unmap_bars() 41 pdsc->cmd_regs = NULL; in pdsc_unmap_bars() [all …]
|
/linux/drivers/video/ |
H A D | sticore.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/video/console/sticore.c - 7 * Copyright (C) 2001-2023 Helge Deller <deller@gmx.de> 8 * Copyright (C) 2001-2002 Thomas Bogendoerfer <tsbogend@alpha.franken.de> 11 * - call STI in virtual mode rather than in real mode 12 * - screen blanking with state_mgmt() in text mode STI ? 13 * - try to make it work on m68k hp workstations ;) 24 #include <linux/pci.h> 29 #include <asm/parisc-device.h> 48 if (IS_ENABLED(CONFIG_64BIT) && sti->do_call64) { in store_sti_val() [all …]
|
/linux/include/uapi/linux/ |
H A D | virtio_pci.h | 2 * Virtio PCI driver 4 * This module allows virtio devices to be used over a virtual PCI device. 46 /* A 32-bit r/o bitmask of the features supported by the host */ 49 /* A 32-bit r/w bitmask of features activated by the guest */ 52 /* A 32-bit r/w PFN for the currently selected queue */ 55 /* A 16-bit r/o queue size for the currently selected queue */ 58 /* A 16-bit r/w queue selector */ 61 /* A 16-bit r/w queue notifier */ 64 /* An 8-bit device status register. */ 67 /* An 8-bit r/o interrupt status register. Reading the value will return the [all …]
|
/linux/arch/x86/pci/ |
H A D | pcbios.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * BIOS32 and PCI BIOS handling. 8 #include <linux/pci.h> 16 #include <asm/pci-functions.h> 22 /* PCI signature: "PCI " */ 25 /* PCI service signature: "$PCI" */ 28 /* PCI BIOS hardware mechanism flags */ 36 * - AH: return code 51 * We could make the 0xe0000-0x100000 range rox, but this can break 61 set_memory_x(PAGE_OFFSET + BIOS_BEGIN, (BIOS_END - BIOS_BEGIN) >> PAGE_SHIFT); in set_bios_x() [all …]
|
/linux/drivers/vdpa/octeon_ep/ |
H A D | octep_vdpa_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #define MBOX_RSP_TO_ERR(val) (-(((val) & MBOX_RC_MASK) >> 2)) 34 u16 sig; member 52 return (struct octep_mbox __iomem *)(oct_hw->dev_cfg + MBOX_OFFSET); in octep_get_mbox() 59 return readx_poll_timeout(ioread32, &mbox->sts, val, MBOX_AVAIL(val), 10, in octep_wait_for_mbox_avail() 67 return readx_poll_timeout(ioread32, &mbox->sts, val, MBOX_RSP(val), 10, in octep_wait_for_mbox_rsp() 71 static inline void octep_write_hdr(struct octep_mbox __iomem *mbox, u16 id, u16 sig) in octep_write_hdr() argument 73 iowrite16(id, &mbox->hdr.id); in octep_write_hdr() 74 iowrite16(sig, &mbox->hdr.sig); in octep_write_hdr() 79 return ioread16(&mbox->hdr.sig); in octep_read_sig() [all …]
|
/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/pci.h> 18 /* ---------- OCM stuff ---------- */ 28 char sig[2]; member 55 .sig = {0x4D, 0x4F}, /* signature */ 92 char sig[4]; member 108 * asd_read_ocm_seg - read an on chip memory (OCM) segment 120 if (unlikely(asd_ha->iospace)) in asd_read_ocm_seg() 123 for ( ; size > 0; size--, offs++, p++) in asd_read_ocm_seg() 138 if (dir->sig[0] != 'M' || dir->sig[1] != 'O') { in asd_read_ocm_dir() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/pci.h> 30 MODULE_DEVICE_TABLE(pci, otx2_vf_id_table); 40 if (msg->id >= MBOX_MSG_MAX) { in otx2vf_process_vfaf_mbox_msg() 41 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 42 "Mbox msg with unknown ID %d\n", msg->id); in otx2vf_process_vfaf_mbox_msg() 46 if (msg->sig != OTX2_MBOX_RSP_SIG) { in otx2vf_process_vfaf_mbox_msg() 47 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 49 msg->sig, msg->id); in otx2vf_process_vfaf_mbox_msg() 53 if (msg->rc == MBOX_MSG_INVALID) { in otx2vf_process_vfaf_mbox_msg() [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | snps,dw-pcie-ep.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pci/snps,dw-pcie-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jingoo Han <jingoohan1@gmail.com> 11 - Gustavo Pimentel <gustavo.pimentel@synopsys.com> 16 # Please create a separate DT-schema for your DWC PCIe Endpoint controller 17 # and make sure it's assigned with the vendor-specific compatible string. 21 const: snps,dw-pcie-ep 23 - compatible [all …]
|
/linux/drivers/media/pci/mgb4/ |
H A D | mgb4_sysfs_out.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2021-2023 Digiteq Automotive 26 voutdev = vindev->mgbdev->vout[i]; in loopin_cnt() 30 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopin_cnt() 31 voutdev->config->regs.config); in loopin_cnt() 32 if ((config & 0xc) >> 2 == vindev->config->id) in loopin_cnt() 43 mutex_lock(dev->lock); in is_busy() 44 ret = vb2_is_busy(dev->queue); in is_busy() 45 mutex_unlock(dev->lock); in is_busy() 58 return sprintf(buf, "%d\n", voutdev->config->id); in output_id_show() [all …]
|
/linux/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * ACPI PCI Hot Plug IBM Extension 23 #include <linux/pci.h> 27 #include "../pci.h" 31 #define DRIVER_DESC "ACPI Hot Plug PCI Controller Driver IBM extension" 40 /* these are the names for the IBM ACPI pseudo-device */ 44 #define hpslot_to_sun(A) (to_slot(A)->sun) 46 /* union apci_descriptor - allows access to the 52 char sig[4]; member 74 /* struct notification - keeps info about the device [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 31 #include <linux/pci.h> 36 #include <linux/dma-mapping.h> 83 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 84 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E1_V15 "bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 87 #define FW_FILE_NAME_E1H_V15 "bnx2x/bnx2x-e1h-" FW_FILE_VERSION_V15 ".fw" 88 #define FW_FILE_NAME_E2_V15 "bnx2x/bnx2x-e2-" FW_FILE_VERSION_V15 ".fw" 117 MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X " [all …]
|
/linux/drivers/cdx/controller/ |
H A D | mc_cdx_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 22 * | | \--- Response 23 * | \------- Error 24 * \------------------------------ Resync (always set) 76 * - To advance a shared memory request if XFLAGS_EVREQ was set 77 * - As a notification (link state, i2c event), controlled 89 * - LEVEL==INFO Command succeeded 90 * - LEVEL==ERR Command failed 101 * non-existent MCDI command MC_CMD_DEBUG_LOG. [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_coredump.c | 1 /* Broadcom NetXtreme-C/E network driver. 12 #include <linux/pci.h> 22 __le16 *seq_ptr = msg + info->seq_off; in bnxt_hwrm_dbg_dma_data() 29 dma_buf = hwrm_req_dma_slice(bp, msg, info->dma_len, &dma_handle); in bnxt_hwrm_dbg_dma_data() 32 return -ENOMEM; in bnxt_hwrm_dbg_dma_data() 35 hwrm_req_timeout(bp, msg, bp->hwrm_cmd_max_timeout); in bnxt_hwrm_dbg_dma_data() 41 cmn_req->host_dest_addr = cpu_to_le64(dma_handle); in bnxt_hwrm_dbg_dma_data() 42 cmn_req->host_buf_len = cpu_to_le32(info->dma_len); in bnxt_hwrm_dbg_dma_data() 49 len = le16_to_cpu(*((__le16 *)(resp + info->data_len_off))); in bnxt_hwrm_dbg_dma_data() 51 cmn_req->req_type == cpu_to_le16(HWRM_DBG_COREDUMP_LIST)) { in bnxt_hwrm_dbg_dma_data() [all …]
|
/linux/sound/pci/nm256/ |
H A D | nm256.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/pci.h> 178 u32 buf; /* offset from chip->buffer */ 201 u32 buffer_start; /* start offset from pci resource 0 */ 231 struct pci_dev *pci; member 245 * PCI ids 254 MODULE_DEVICE_TABLE(pci, snd_nm256_ids); 264 return readb(chip->cport + offset); in snd_nm256_readb() 270 return readw(chip->cport + offset); in snd_nm256_readw() 276 return readl(chip->cport + offset); in snd_nm256_readl() [all …]
|
/linux/drivers/comedi/drivers/tests/ |
H A D | ni_routes_test.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 28 #define B(x) ((x) - NI_NAMES_BASE) 32 static const char *pci_6070e = "pci-6070e"; 33 static const char *pci_6220 = "pci-6220"; 34 static const char *pci_fake = "pci-fake"; 185 int last = NI_NAMES_BASE - 1; in route_set_dests_in_order() 187 for (i = 0; i < devroutes->n_route_sets; ++i) { in route_set_dests_in_order() 188 if (last >= devroutes->routes[i].dest) in route_set_dests_in_order() 190 last = devroutes->routes[i].dest; in route_set_dests_in_order() [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Derived from ivtv-driver.c 11 #include "cx18-driver.h" 12 #include "cx18-io.h" 13 #include "cx18-version.h" 14 #include "cx18-cards.h" 15 #include "cx18-i2c.h" 16 #include "cx18-irq.h" 17 #include "cx18-gpio.h" 18 #include "cx18-firmware.h" [all …]
|
/linux/drivers/media/common/ |
H A D | ttpci-eeprom.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Retrieve encoded MAC address from 24C16 serial 2-wire EEPROM, 16 Copyright (C) 2002-2003 Ralph Metzler <rjkm@metzlerbros.de> 29 #include "ttpci-eeprom.h" 60 /* In case there is a sig check failure have the orig contents available */ in getmac_tt() 70 return -ENODEV; in getmac_tt() 94 return -ENODEV; in ttpci_eeprom_decode_mac() 121 return (-ENODEV); in ttpci_eeprom_read_encodedMAC() 135 if (ret != 0) { /* Will only be -ENODEV */ in ttpci_eeprom_parse_mac() 159 MODULE_DESCRIPTION("Decode dvb_net MAC address from EEPROM of PCI DVB cards made by Siemens, Techno…
|
/linux/sound/pci/riptide/ |
H A D | riptide.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 - 02/15/2004 first release 11 This Driver is based on the OSS Driver version from Linuxant (riptide-0.6lnxtbeta03111100) 17 ----------------------------- -------- ----- 23 ----------------------------- -------- ----- 29 ----------------------------- -------- ----- 36 ----------------------------- -------- ----- 44 ----------------------------- -------- ----- 59 ----------------------------- -------- ----- 65 ----------------------------- -------- ----- [all …]
|
/linux/drivers/net/ethernet/sis/ |
H A D | sis190.c | 31 #include <linux/pci.h> 35 #include <linux/dma-mapping.h> 159 TxDMAShift = 8, /* DMA burst value (0-7) is shift this many bits */ 191 LSEN = 0x08000000, // TSO ? -- FR 224 RxDescCountMask = 0x7f000000, // multi-desc pkt when > 1 ? -- FR 329 { "SiS 190 PCI Fast Ethernet adapter" }, 330 { "SiS 191 PCI Gigabit Ethernet adapter" }, 339 MODULE_DEVICE_TABLE(pci, sis190_pci_tbl); 345 } debug = { -1 }; 349 MODULE_PARM_DESC(rx_copybreak, "Copy breakpoint for copy-only-tiny-frames"); [all …]
|
/linux/arch/x86/kernel/cpu/microcode/ |
H A D | amd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2008-2011 Advanced Micro Devices Inc. 9 * 2013-2018 Borislav Petkov <bp@alien8.de> 30 #include <linux/pci.h> 164 static u16 find_equiv_id(struct equiv_cpu_table *et, u32 sig) in find_equiv_id() argument 172 if (!et || !et->num_entries) in find_equiv_id() 175 for (i = 0; i < et->num_entries; i++) { in find_equiv_id() 176 struct equiv_cpu_entry *e = &et->entry[i]; in find_equiv_id() 178 if (sig == e->installed_cpu) in find_equiv_id() 179 return e->equiv_cpu; in find_equiv_id() [all …]
|
/linux/drivers/pci/ |
H A D | pci-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI support in ACPI 13 #include <linux/pci.h> 17 #include <linux/pci-acpi.h> 18 #include <linux/pci-ecam.h> 22 #include "pci.h" 25 * The GUID is defined in the PCI Firmware Specification available 26 * here to PCI-SIG members: 27 * https://members.pcisig.com/wg/PCI-SIG/document/15350 36 struct device *dev = &adev->dev; in acpi_get_rc_addr() [all …]
|
/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_dev.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2017 - 2019 Pensando Systems, Inc */ 17 struct ionic_lif *lif = ionic->lif; in ionic_watchdog_cb() 21 mod_timer(&ionic->watchdog_timer, in ionic_watchdog_cb() 22 round_jiffies(jiffies + ionic->watchdog_period)); in ionic_watchdog_cb() 28 dev_dbg(ionic->dev, "%s: hb %d running %d UP %d\n", in ionic_watchdog_cb() 29 __func__, hb, netif_running(lif->netdev), in ionic_watchdog_cb() 30 test_bit(IONIC_LIF_F_UP, lif->state)); in ionic_watchdog_cb() 33 !test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_watchdog_cb() 36 if (test_bit(IONIC_LIF_F_FILTER_SYNC_NEEDED, lif->state) && in ionic_watchdog_cb() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_fw.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (c) 2003-2014 QLogic Corporation 10 #include <linux/nvme-fc.h> 78 /* Bits 15-0 of word 0 */ 80 /* Bits 15-0 of word 3 */ 87 uint16_t prli_nvme_svc_param_word_0; /* Bits 15-0 of word 0 */ 88 uint16_t prli_nvme_svc_param_word_3; /* Bits 15-0 of word 3 */ 111 u8 prli_svc_param_word_0[2]; /* Bits 15-0 of word 0 */ 112 u8 prli_svc_param_word_3[2]; /* Bits 15-0 of word 3 */ 119 u8 port_node_name[WWN_SIZE]; /* B7 most sig, B0 least sig */ [all …]
|
/linux/Documentation/driver-api/ |
H A D | eisa.rst | 5 :Author: Marc Zyngier <maz@wild-wind.fr.eu.org> 11 status as other much more mainstream busses such as PCI or USB. This 23 - The bus code implements most of the generic code. It is shared 29 - The bus root driver implements the glue between the bus hardware 37 - The driver offers the bus a list of devices that it manages, and 90 char sig[EISA_SIG_LEN]; 102 optionally be paired with a driver-dependent value 106 Documentation/driver-api/driver-model/driver.rst. Only .name, 155 dev generic device (see Documentation/driver-api/driver-model/device.rst) 187 A comma-separated list of slots to be enabled, even if the firmware [all …]
|