lkml.org 
[lkml]   [2015]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 01/71] atari_scsi: Fix SCSI host ID setting
    The NVRAM location of this byte is 16, as documented in
    http://toshyp.atari.org/en/004009.html

    This was confirmed by Michael Schmitz, by setting the SCSI host ID
    under EmuTOS and then checking the value in /proc/driver/nvram and
    /dev/nvram under Linux.

    Signed-off-by: Finn Thain <fthain@telegraphics.com.au>

    ---
    drivers/scsi/atari_scsi.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux/drivers/scsi/atari_scsi.c
    ===================================================================
    --- linux.orig/drivers/scsi/atari_scsi.c 2015-11-18 19:25:56.000000000 +1100
    +++ linux/drivers/scsi/atari_scsi.c 2015-11-18 19:32:58.000000000 +1100
    @@ -880,7 +880,7 @@ static int __init atari_scsi_probe(struc
    } else {
    /* Test if a host id is set in the NVRam */
    if (ATARIHW_PRESENT(TT_CLK) && nvram_check_checksum()) {
    - unsigned char b = nvram_read_byte(14);
    + unsigned char b = nvram_read_byte(16);

    /* Arbitration enabled? (for TOS)
    * If yes, use configured host ID



    \
     
     \ /
      Last update: 2015-11-18 10:41    [W:4.313 / U:0.484 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site