Lines Matching +full:ctrl +full:- +full:a

1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Copyright (C) 2001 Greg Kroah-Hartman ([email protected])
8 * Copyright (C) 2003-2004 Intel Corporation
35 #define ctrl_dbg(ctrl, format, arg...) \ argument
36 pci_dbg(ctrl->pcie->port, format, ## arg)
37 #define ctrl_err(ctrl, format, arg...) \ argument
38 pci_err(ctrl->pcie->port, format, ## arg)
39 #define ctrl_info(ctrl, format, arg...) \ argument
40 pci_info(ctrl->pcie->port, format, ## arg)
41 #define ctrl_warn(ctrl, format, arg...) \ argument
42 pci_warn(ctrl->pcie->port, format, ## arg)
47 * struct controller - PCIe hotplug controller
50 * (PCIe r6.2 sec 7.9.3); used to determine whether a hotplugged device
51 * was replaced with a different one during system sleep
53 * @inband_presence_disabled: In-Band Presence Detect Disable supported by
59 * the next write is allowed 1 second later, absent a Command Completed
62 * on reception of a Command Completed event
63 * @queue: wait queue to wake up on reception of a Command Completed event,
68 * @power_fault_detected: whether a power fault was detected by the hardware
80 * Status register during a slot reset which may cause them to flap
88 * PCIe hotplug has a 1:1 relationship between controller and slot, hence
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
156 #define ATTN_BUTTN(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_ABP) argument
157 #define POWER_CTRL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PCP) argument
158 #define MRL_SENS(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP) argument
159 #define ATTN_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP) argument
160 #define PWR_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP) argument
161 #define NO_CMD_CMPL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS) argument
162 #define PSN(ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19) argument
164 void pciehp_request(struct controller *ctrl, int action);
165 void pciehp_handle_button_press(struct controller *ctrl);
166 void pciehp_handle_disable_request(struct controller *ctrl);
167 void pciehp_handle_presence_or_link_change(struct controller *ctrl, u32 events);
168 int pciehp_configure_device(struct controller *ctrl);
169 void pciehp_unconfigure_device(struct controller *ctrl, bool presence);
172 int pcie_init_notification(struct controller *ctrl);
173 void pcie_shutdown_notification(struct controller *ctrl);
174 void pcie_clear_hotplug_events(struct controller *ctrl);
175 void pcie_enable_interrupt(struct controller *ctrl);
176 void pcie_disable_interrupt(struct controller *ctrl);
177 int pciehp_power_on_slot(struct controller *ctrl);
178 void pciehp_power_off_slot(struct controller *ctrl);
179 void pciehp_get_power_status(struct controller *ctrl, u8 *status);
181 #define INDICATOR_NOOP -1 /* Leave indicator unchanged */
182 void pciehp_set_indicators(struct controller *ctrl, int pwr, int attn);
184 void pciehp_get_latch_status(struct controller *ctrl, u8 *status);
185 int pciehp_query_power_fault(struct controller *ctrl);
186 int pciehp_card_present(struct controller *ctrl);
187 int pciehp_card_present_or_link_active(struct controller *ctrl);
188 int pciehp_check_link_status(struct controller *ctrl);
189 int pciehp_check_link_active(struct controller *ctrl);
190 void pciehp_release_ctrl(struct controller *ctrl);
201 static inline const char *slot_name(struct controller *ctrl) in slot_name() argument
203 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name()