[SCSI] bfa: add debugfs support
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 03:02:55 +0000 (20:02 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:32 +0000 (12:04 -0500)
commitab2a9ba189e889b3e8990e52e90d2cd9606b2aa1
tree0114a0fcb8caf0daee0fa23a8d9b788ad1eef0f2
parent08a17ced7a78064f4f03de7d68b8cd32581f0510
[SCSI] bfa: add debugfs support

- Add debugfs support to obtain firmware trace, driver trace
  and read/write to registers.

- debugfs hierarchy:
  /sys/kernel/debug/bfa/host#
   where the host number corresponds to the one under /sys/class/scsi_host/host#

- Following are the new debugfs entries added:
  drvtrc: collect current driver trace
  fwtrc: collect current firmware trace.
  fwsave: collect last saved fw trace as a result of firmware crash.
  regwr: write one word to chip register
  regrd: read one or more words from chip register.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/Makefile
drivers/scsi/bfa/bfad.c
drivers/scsi/bfa/bfad_debugfs.c [new file with mode: 0644]
drivers/scsi/bfa/bfad_drv.h