aic79xx: Print out signalling
Subsystems (2)
PATCH 4/4 aic79xx: Print out signalling
Hi all,
as aic7xxx already prints out the signalling we should do it for aic79xx also.
Cheers,
Hannes
Signature · 4 lines
Dr. Hannes Reinecke [email protected] SuSE Linux Products GmbH S390 & zSeries Maxfeldstraße 5 +49 911 74053 688 90409 Nürnberg http://www.suse.de
From: Hannes Reinecke <[email protected]>
Date: Mon Oct 23 12:57:57 2006 +0200
Subject: aic79xx: expose the bus settings to sysfs
This is a cross-post of a similar patch for aic7xxx; only it's a bit simpler here as we don't support HVD and all controller actually implement this register. I hope.
Signed-off-by Hannes Reinecke <[email protected]>
---
drivers/scsi/aic7xxx/aic79xx_osm.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)
1b8d86e6da593f28026986be12cd406789eb5ddc
drivers/scsi/aic7xxx/aic79xx_osm.c +19 -0
@@ -2692,7 +2692,25 @@ static void ahd_linux_set_hold_mcs(strucahd_unlock (ahd, &flags); } +static void ahd_linux_get_signalling (struct Scsi_Host *shost) +{ +struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; +unsigned long flags; +u8 mode; +ahd_lock (ahd, &flags); +ahd_pause (ahd); + mode =ahd_inb (ahd,SBLKCTL ); +ahd_unpause (ahd); +ahd_unlock (ahd, &flags); + +if (mode &ENAB40 ) +spi_signalling (shost) =SPI_SIGNAL_LVD ; +else if (mode &ENAB20 ) +spi_signalling (shost) =SPI_SIGNAL_SE ; +else +spi_signalling (shost) =SPI_SIGNAL_UNKNOWN ; +}static struct spi_function_template ahd_linux_transport_functions = { .set_offset = ahd_linux_set_offset,
@@ -2717,6 +2735,7 @@ static struct spi_function_template ahd_ .show_pcomp_en = 1, .set_hold_mcs = ahd_linux_set_hold_mcs, .show_hold_mcs = 1, + .get_signalling = ahd_linux_get_signalling, }; static int __init
Signature · 1 line
1.3.1