Lines Matching +full:disable +full:- +full:port +full:- +full:power +full:- +full:control
1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Copyright (C) 2001 Greg Kroah-Hartman ([email protected])
8 * Copyright (C) 2003-2004 Intel Corporation
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
53 * @inband_presence_disabled: In-Band Presence Detect Disable supported by
56 * @slot_ctrl: cached copy of the Slot Control register
57 * @ctrl_lock: serializes writes to the Slot Control register
58 * @cmd_started: jiffies when the Slot Control register was last written;
61 * @cmd_busy: flag set on Slot Control register write, cleared by IRQ handler
64 * used for synchronous writes to the Slot Control register
68 * @power_fault_detected: whether a power fault was detected by the hardware
86 * used for synchronous slot enable/disable request via sysfs
98 u16 slot_ctrl; /* control register access */
126 * Power Indicator is blinking
128 * Power Indicator is blinking
144 * hence must be greater than its 16-bit width.
146 * %DISABLE_SLOT: Disable the slot in response to a user request via sysfs or
149 * hotplug port was inaccessible when the interrupt occurred, requiring
151 * hotplug port accessible by runtime resuming its parents to D0
156 #define ATTN_BUTTN(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_ABP)
157 #define POWER_CTRL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PCP)
158 #define MRL_SENS(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP)
159 #define ATTN_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP)
160 #define PWR_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP)
161 #define NO_CMD_CMPL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)
162 #define PSN(ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)
181 #define INDICATOR_NOOP -1 /* Leave indicator unchanged */
203 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name()