#define dev_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pm_runtime.h>
#include <linux/pci.h>
#include "pciehp.h"
#define SAFE_REMOVAL …
#define SURPRISE_REMOVAL …
static void set_slot_off(struct controller *ctrl)
{ … }
static int board_added(struct controller *ctrl)
{ … }
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)
{ … }