Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ibmphp_core.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/wait.h>
#include "../pci.h"
#include <asm/pci_x86.h>
#include "ibmphp.h"

Go to the source code of this file.

Macros

#define attn_on(sl)   ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNON)
 
#define attn_off(sl)   ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNOFF)
 
#define attn_LED_blink(sl)   ibmphp_hpc_writeslot (sl, HPC_SLOT_BLINKLED)
 
#define get_ctrl_revision(sl, rev)   ibmphp_hpc_readslot (sl, READ_REVLEVEL, rev)
 
#define get_hpc_options(sl, opt)   ibmphp_hpc_readslot (sl, READ_HPCOPTIONS, opt)
 
#define DRIVER_VERSION   "0.6"
 
#define DRIVER_DESC   "IBM Hot Plug PCI Controller Driver"
 

Functions

 module_param (debug, bool, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Debugging mode enabled or not")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
int ibmphp_init_devno (struct slot **cur_slot)
 
int ibmphp_update_slot_info (struct slot *slot_cur)
 
int ibmphp_do_disable_slot (struct slot *slot_cur)
 
 module_init (ibmphp_init)
 
 module_exit (ibmphp_exit)
 

Variables

int ibmphp_debug
 
struct pci_busibmphp_pci_bus
 
struct hotplug_slot_ops ibmphp_hotplug_slot_ops
 

Macro Definition Documentation

#define attn_LED_blink (   sl)    ibmphp_hpc_writeslot (sl, HPC_SLOT_BLINKLED)

Definition at line 43 of file ibmphp_core.c.

#define attn_off (   sl)    ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNOFF)

Definition at line 42 of file ibmphp_core.c.

#define attn_on (   sl)    ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNON)

Definition at line 41 of file ibmphp_core.c.

#define DRIVER_DESC   "IBM Hot Plug PCI Controller Driver"

Definition at line 48 of file ibmphp_core.c.

#define DRIVER_VERSION   "0.6"

Definition at line 47 of file ibmphp_core.c.

#define get_ctrl_revision (   sl,
  rev 
)    ibmphp_hpc_readslot (sl, READ_REVLEVEL, rev)

Definition at line 44 of file ibmphp_core.c.

#define get_hpc_options (   sl,
  opt 
)    ibmphp_hpc_readslot (sl, READ_HPCOPTIONS, opt)

Definition at line 45 of file ibmphp_core.c.

Function Documentation

int ibmphp_do_disable_slot ( struct slot slot_cur)

Definition at line 1190 of file ibmphp_core.c.

int ibmphp_init_devno ( struct slot **  cur_slot)

Definition at line 135 of file ibmphp_core.c.

int ibmphp_update_slot_info ( struct slot slot_cur)

Definition at line 607 of file ibmphp_core.c.

MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( ibmphp_exit  )
module_init ( ibmphp_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( debug  ,
"Debugging mode enabled or not"   
)

Variable Documentation

int ibmphp_debug

Definition at line 50 of file ibmphp_core.c.

struct hotplug_slot_ops ibmphp_hotplug_slot_ops
Initial value:
= {
.set_attention_status = set_attention_status,
.enable_slot = enable_slot,
.disable_slot = ibmphp_disable_slot,
.hardware_test = NULL,
.get_power_status = get_power_status,
.get_attention_status = get_attention_status,
.get_latch_status = get_latch_status,
.get_adapter_status = get_adapter_present,
}

Definition at line 1272 of file ibmphp_core.c.

struct pci_bus* ibmphp_pci_bus

Definition at line 58 of file ibmphp_core.c.