Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/pci_hotplug.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <asm/eeh.h>
#include <asm/rtas.h>
#include <asm/pci-bridge.h>
#include "../pci.h"
#include "rpaphp.h"
Go to the source code of this file.
Macros | |
#define | DRIVER_VERSION "0.1" |
#define | DRIVER_AUTHOR "Linda Xie <[email protected]>" |
#define | DRIVER_DESC "RPA HOT Plug PCI Controller Driver" |
#define | MAX_LOC_CODE 128 |
Functions | |
LIST_HEAD (rpaphp_slot_head) | |
MODULE_AUTHOR (DRIVER_AUTHOR) | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
MODULE_LICENSE ("GPL") | |
module_param_named (debug, rpaphp_debug, bool, 0644) | |
int | rpaphp_get_drc_props (struct device_node *dn, int *drc_index, char **drc_name, char **drc_type, int *drc_power_domain) |
int | rpaphp_add_slot (struct device_node *dn) |
module_init (rpaphp_init) | |
module_exit (rpaphp_exit) | |
EXPORT_SYMBOL_GPL (rpaphp_add_slot) | |
EXPORT_SYMBOL_GPL (rpaphp_slot_head) | |
EXPORT_SYMBOL_GPL (rpaphp_get_drc_props) | |
Variables | |
bool | rpaphp_debug |
struct hotplug_slot_ops | rpaphp_hotplug_slot_ops |
#define DRIVER_AUTHOR "Linda Xie <[email protected]>" |
Definition at line 44 of file rpaphp_core.c.
#define DRIVER_DESC "RPA HOT Plug PCI Controller Driver" |
Definition at line 45 of file rpaphp_core.c.
#define DRIVER_VERSION "0.1" |
Definition at line 43 of file rpaphp_core.c.
#define MAX_LOC_CODE 128 |
Definition at line 47 of file rpaphp_core.c.
EXPORT_SYMBOL_GPL | ( | rpaphp_add_slot | ) |
EXPORT_SYMBOL_GPL | ( | rpaphp_slot_head | ) |
EXPORT_SYMBOL_GPL | ( | rpaphp_get_drc_props | ) |
LIST_HEAD | ( | rpaphp_slot_head | ) |
MODULE_AUTHOR | ( | DRIVER_AUTHOR | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
module_exit | ( | rpaphp_exit | ) |
module_init | ( | rpaphp_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param_named | ( | debug | , |
rpaphp_debug | , | ||
bool | , | ||
0644 | |||
) |
int rpaphp_add_slot | ( | struct device_node * | dn | ) |
rpaphp_add_slot – declare a hotplug slot to the hotplug subsystem. : device node of slot
This subroutine will register a hotplugable slot with the PCI hotplug infrastructure. This routine is typically called during boot time, if the hotplug slots are present at boot time, or is called later, by the dlpar add code, if the slot is being dynamically added during runtime.
If the device node points at an embedded (built-in) slot, this routine will just return without doing anything, since embedded slots cannot be hotplugged.
To remove a slot, it suffices to call rpaphp_deregister_slot().
Definition at line 304 of file rpaphp_core.c.
int rpaphp_get_drc_props | ( | struct device_node * | dn, |
int * | drc_index, | ||
char ** | drc_name, | ||
char ** | drc_type, | ||
int * | drc_power_domain | ||
) |
Definition at line 202 of file rpaphp_core.c.
bool rpaphp_debug |
Definition at line 40 of file rpaphp_core.c.
struct hotplug_slot_ops rpaphp_hotplug_slot_ops |
Definition at line 428 of file rpaphp_core.c.