Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Allow 8 luns instead of 1. This enables access t...



details:   https://anonhg.NetBSD.org/src/rev/ff0593b1ed3e
branches:  trunk
changeset: 789139:ff0593b1ed3e
user:      kardel <kardel%NetBSD.org@localhost>
date:      Thu Aug 08 07:06:13 2013 +0000

description:
Allow 8 luns instead of 1. This enables access to the changer device on
a Dell PV-124T:
ch0 at scsibus0 target 9 lun 1: <DELL, PV-124T, 0086> changer removable
ch0: 16 slots, 1 drive, 1 picker, 0 portals

diffstat:

 sys/dev/pci/mpii.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8327bddb1128 -r ff0593b1ed3e sys/dev/pci/mpii.c
--- a/sys/dev/pci/mpii.c        Thu Aug 08 06:50:24 2013 +0000
+++ b/sys/dev/pci/mpii.c        Thu Aug 08 07:06:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.1 2012/04/19 17:50:51 bouyer Exp $ */
+/* $NetBSD: mpii.c,v 1.2 2013/08/08 07:06:13 kardel Exp $ */
 /*     OpenBSD: mpii.c,v 1.51 2012/04/11 13:29:14 naddy Exp    */
 /*
  * Copyright (c) 2010 Mike Belopuhov <mkb%crypt.org.ru@localhost>
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.1 2012/04/19 17:50:51 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.2 2013/08/08 07:06:13 kardel Exp $");
 
 #include "bio.h"
 
@@ -2296,7 +2296,7 @@
        chan->chan_bustype = &scsi_sas_bustype;
        chan->chan_channel = 0;
        chan->chan_flags = 0;
-       chan->chan_nluns = 1;
+       chan->chan_nluns = 8;
        chan->chan_ntargets = sc->sc_max_devices;
        chan->chan_id = -1;
 



Home | Main Index | Thread Index | Old Index