• Home
  • Raw
  • Download

Lines Matching +full:pcie +full:- +full:5

1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
26 #include "../pcie/portdrv.h"
36 pci_dbg(ctrl->pcie->port, format, ## arg)
38 pci_err(ctrl->pcie->port, format, ## arg)
40 pci_info(ctrl->pcie->port, format, ## arg)
42 pci_warn(ctrl->pcie->port, format, ## arg)
47 * struct controller - PCIe hotplug controller
48 * @pcie: pointer to the controller's PCIe port service device
50 * @inband_presence_disabled: In-Band Presence Detect Disable supported by
51 * controller and disabled per spec recommendation (PCIe r5.0, appendix I
57 * interrupt (PCIe r4.0, sec 6.7.3.2)
72 * @button_work: work item to turn the slot on or off after 5 seconds
85 * PCIe hotplug has a 1:1 relationship between controller and slot, hence
89 struct pcie_device *pcie; member
121 * @BLINKINGON_STATE: slot will be powered on after the 5 second delay,
123 * @BLINKINGOFF_STATE: slot will be powered off after the 5 second delay,
134 #define ON_STATE 5
140 * hence must be greater than its 16-bit width.
143 * an Attention Button press after the 5 second delay
152 #define ATTN_BUTTN(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_ABP)
153 #define POWER_CTRL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PCP)
154 #define MRL_SENS(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP)
155 #define ATTN_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP)
156 #define PWR_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP)
157 #define NO_CMD_CMPL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)
158 #define PSN(ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)
177 #define INDICATOR_NOOP -1 /* Leave indicator unchanged */
199 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name()