aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/eeh.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2006-09-15 19:56:35 -0400
committerPaul Mackerras <paulus@samba.org>2006-09-21 08:59:10 -0400
commitcb5b562444c27cf53f5d297bd7a89807ea614cf3 (patch)
tree462b0ed5aad52c2595dc6f906eaf6e82919bd0da /arch/powerpc/platforms/pseries/eeh.c
parentaf525592187951a595c73de11b48969a13b5d5a3 (diff)
[POWERPC] EEH: code comment cleanup
Clean up subroutine documentation; mostly formatting changes, with some new content. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r--arch/powerpc/platforms/pseries/eeh.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c
index 5a23ce5e16ff..fb91842fc819 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -449,7 +449,11 @@ EXPORT_SYMBOL(eeh_check_failure);
449/* ------------------------------------------------------------- */ 449/* ------------------------------------------------------------- */
450/* The code below deals with error recovery */ 450/* The code below deals with error recovery */
451 451
452/** Return negative value if a permanent error, else return 452/**
453 * eeh_slot_availability - returns error status of slot
454 * @pdn pci device node
455 *
456 * Return negative value if a permanent error, else return
453 * a number of milliseconds to wait until the PCI slot is 457 * a number of milliseconds to wait until the PCI slot is
454 * ready to be used. 458 * ready to be used.
455 */ 459 */
@@ -477,8 +481,10 @@ eeh_slot_availability(struct pci_dn *pdn)
477 return -1; 481 return -1;
478} 482}
479 483
480/** rtas_pci_slot_reset raises/lowers the pci #RST line 484/**
481 * state: 1/0 to raise/lower the #RST 485 * rtas_pci_slot_reset - raises/lowers the pci #RST line
486 * @pdn pci device node
487 * @state: 1/0 to raise/lower the #RST
482 * 488 *
483 * Clear the EEH-frozen condition on a slot. This routine 489 * Clear the EEH-frozen condition on a slot. This routine
484 * asserts the PCI #RST line if the 'state' argument is '1', 490 * asserts the PCI #RST line if the 'state' argument is '1',
@@ -518,8 +524,9 @@ rtas_pci_slot_reset(struct pci_dn *pdn, int state)
518 } 524 }
519} 525}
520 526
521/** rtas_set_slot_reset -- assert the pci #RST line for 1/4 second 527/**
522 * dn -- device node to be reset. 528 * rtas_set_slot_reset -- assert the pci #RST line for 1/4 second
529 * @pdn: pci device node to be reset.
523 * 530 *
524 * Return 0 if success, else a non-zero value. 531 * Return 0 if success, else a non-zero value.
525 */ 532 */
@@ -582,6 +589,8 @@ rtas_set_slot_reset(struct pci_dn *pdn)
582 589
583/** 590/**
584 * __restore_bars - Restore the Base Address Registers 591 * __restore_bars - Restore the Base Address Registers
592 * @pdn: pci device node
593 *
585 * Loads the PCI configuration space base address registers, 594 * Loads the PCI configuration space base address registers,
586 * the expansion ROM base address, the latency timer, and etc. 595 * the expansion ROM base address, the latency timer, and etc.
587 * from the saved values in the device node. 596 * from the saved values in the device node.