linux/drivers/pci/hotplug/pciehp_ctrl.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * PCI Express Hot Plug Controller Driver
 *
 * Copyright (C) 1995,2001 Compaq Computer Corporation
 * Copyright (C) 2001 Greg Kroah-Hartman ([email protected])
 * Copyright (C) 2001 IBM Corp.
 * Copyright (C) 2003-2004 Intel Corporation
 *
 * All rights reserved.
 *
 * Send feedback to <[email protected]>, <[email protected]>
 *
 */

#define dev_fmt(fmt)

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pm_runtime.h>
#include <linux/pci.h>
#include "pciehp.h"

/* The following routines constitute the bulk of the
   hotplug controller logic
 */

#define SAFE_REMOVAL
#define SURPRISE_REMOVAL

static void set_slot_off(struct controller *ctrl)
{}

/**
 * board_added - Called after a board has been added to the system.
 * @ctrl: PCIe hotplug controller where board is added
 *
 * Turns power on for the board.
 * Configures board.
 */
static int board_added(struct controller *ctrl)
{}

/**
 * remove_board - Turn off slot and Power Indicator
 * @ctrl: PCIe hotplug controller where board is being removed
 * @safe_removal: whether the board is safely removed (versus surprise removed)
 */
static void remove_board(struct controller *ctrl, bool safe_removal)
{}

static int pciehp_enable_slot(struct controller *ctrl);
static int pciehp_disable_slot(struct controller *ctrl, bool safe_removal);

void pciehp_request(struct controller *ctrl, int action)
{}

void pciehp_queue_pushbutton_work(struct work_struct *work)
{}

void pciehp_handle_button_press(struct controller *ctrl)
{}

void pciehp_handle_disable_request(struct controller *ctrl)
{}

void pciehp_handle_presence_or_link_change(struct controller *ctrl, u32 events)
{}

static int __pciehp_enable_slot(struct controller *ctrl)
{}

static int pciehp_enable_slot(struct controller *ctrl)
{}

static int __pciehp_disable_slot(struct controller *ctrl, bool safe_removal)
{}

static int pciehp_disable_slot(struct controller *ctrl, bool safe_removal)
{}

int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot)
{}

int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot)
{}