Lines Matching +full:back +full:- +full:powering

1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
304 u8 pcix_speed_capability; /* PCI-X */
305 u8 pcix_support; /* PCI-X */
386 #define msg_button_on "PCI slot #%d - powering on due to button press.\n"
387 #define msg_button_off "PCI slot #%d - powering off due to button press.\n"
388 #define msg_button_cancel "PCI slot #%d - action canceled due to button press.\n"
389 #define msg_button_ignore "PCI slot #%d - button press ignored. (action in progress...)\n"
448 return hotplug_slot_name(&slot->hotplug_slot); in slot_name()
459 * Puts node back in the resource list pointed to by head
466 node->next = *head; in return_resource()
474 misc = readw(ctrl->hpc_reg + MISC); in set_SOGO()
476 writew(misc, ctrl->hpc_reg + MISC); in set_SOGO()
484 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
486 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
494 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
496 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
504 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED()
515 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
517 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
524 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
526 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
534 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()
537 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()
545 slot_enable = readb(ctrl->hpc_reg + SLOT_ENABLE); in slot_disable()
547 writeb(slot_enable, ctrl->hpc_reg + SLOT_ENABLE); in slot_disable()
555 slot_enable = readb(ctrl->hpc_reg + SLOT_ENABLE); in slot_enable()
557 writeb(slot_enable, ctrl->hpc_reg + SLOT_ENABLE); in slot_enable()
565 slot_enable = readb(ctrl->hpc_reg + SLOT_ENABLE); in is_slot_enabled()
573 return readb(ctrl->hpc_reg + SLOT_ENABLE); in read_slot_enable()
578 * get_controller_speed - find the current frequency/mode of controller.
589 if (ctrl->pcix_support) { in get_controller_speed()
590 curr_freq = readb(ctrl->hpc_reg + NEXT_CURR_FREQ); in get_controller_speed()
603 misc = readw(ctrl->hpc_reg + MISC); in get_controller_speed()
609 * get_adapter_speed - find the max supported frequency/mode of adapter.
618 u32 temp_dword = readl(ctrl->hpc_reg + NON_INT_INPUT); in get_adapter_speed()
620 if (ctrl->pcix_support) { in get_adapter_speed()
637 slot_power = readb(ctrl->hpc_reg + SLOT_POWER); in enable_slot_power()
639 writeb(slot_power, ctrl->hpc_reg + SLOT_POWER); in enable_slot_power()
646 slot_power = readb(ctrl->hpc_reg + SLOT_POWER); in disable_slot_power()
648 writeb(slot_power, ctrl->hpc_reg + SLOT_POWER); in disable_slot_power()
656 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_attention_status()
666 hp_slot = slot->device - ctrl->slot_device_offset; in get_slot_enabled()
678 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_latch_status()
679 dbg("%s: slot->device = %d, ctrl->slot_device_offset = %d\n", in cpq_get_latch_status()
680 __func__, slot->device, ctrl->slot_device_offset); in cpq_get_latch_status()
682 status = (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)); in cpq_get_latch_status()
695 hp_slot = slot->device - ctrl->slot_device_offset; in get_presence_status()
697 tempdword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); in get_presence_status()
709 dbg("%s - start\n", __func__); in wait_for_ctrl_irq()
710 add_wait_queue(&ctrl->queue, &wait); in wait_for_ctrl_irq()
713 remove_wait_queue(&ctrl->queue, &wait); in wait_for_ctrl_irq()
715 retval = -EINTR; in wait_for_ctrl_irq()
717 dbg("%s - end\n", __func__); in wait_for_ctrl_irq()
725 return ((cpqhp_routing_table->size - sizeof(struct irq_routing_table)) / in cpqhp_routing_table_length()