From owner-freebsd-drivers@FreeBSD.ORG Mon Jun 19 23:15:51 2006 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E6EA16A474 for ; Mon, 19 Jun 2006 23:15:51 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 116D043D46 for ; Mon, 19 Jun 2006 23:15:51 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (s8h9nk6fav5j58bb@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k5JNFoRD020647; Mon, 19 Jun 2006 16:15:50 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k5JNFlcV020646; Mon, 19 Jun 2006 16:15:47 -0700 (PDT) (envelope-from jmg) Date: Mon, 19 Jun 2006 16:15:47 -0700 From: John-Mark Gurney To: Joe Holden Message-ID: <20060619231546.GE1142@funkthat.com> Mail-Followup-To: Joe Holden , Matthew Jacob , freebsd-drivers@freebsd.org References: <4487F5CE.4090601@joeholden.co.uk> <7579f7fb0606081044i7598fefn4bb64d55c8acdbc2@mail.gmail.com> <4488A2B6.8040108@joeholden.co.uk> <7579f7fb0606081551v13771ec7y9d262f15c695a004@mail.gmail.com> <44893245.1060008@joeholden.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44893245.1060008@joeholden.co.uk> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-drivers@freebsd.org Subject: Re: LSI Logic FC919X Controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 23:15:51 -0000 Joe Holden wrote this message on Fri, Jun 09, 2006 at 09:33 +0100: > Matthew Jacob wrote: > > Oh- 919X, not 919. > > > > See if this patch works for you: > > ------------------------------------------------------------------------ > > > > ? DOMAIN_VALIDATION_CODE > > Index: mpt_pci.c > > =================================================================== > > RCS file: /home/ncvs/src/sys/dev/mpt/mpt_pci.c,v > > retrieving revision 1.33 > > diff -u -r1.33 mpt_pci.c > > --- mpt_pci.c 2 Jun 2006 18:50:39 -0000 1.33 > > +++ mpt_pci.c 8 Jun 2006 22:48:27 -0000 > > @@ -130,6 +130,10 @@ > > #define PCI_PRODUCT_LSI_FC929X 0x0626 > > #endif > > > > +#ifndef PCI_PRODUCT_LSI_FC919X > > +#define PCI_PRODUCT_LSI_FC919X 0x0628 > > +#endif > > + > > #ifndef PCI_PRODUCT_LSI_FC7X04X > > #define PCI_PRODUCT_LSI_FC7X04X 0x0640 > > #endif > > @@ -225,6 +229,9 @@ > > case PCI_PRODUCT_LSI_FC929: > > desc = "LSILogic FC929 FC Adapter"; > > break; > > + case PCI_PRODUCT_LSI_FC919X: > > + desc = "LSILogic FC919X FC Adapter"; > > + break; > > case PCI_PRODUCT_LSI_FC929X: > > desc = "LSILogic FC929X 2Gb/s FC Adapter"; > > break; > > @@ -373,6 +380,7 @@ > > case PCI_PRODUCT_LSI_FC909A: > > case PCI_PRODUCT_LSI_FC919: > > case PCI_PRODUCT_LSI_FC929: > > + case PCI_PRODUCT_LSI_FC919X: > > case PCI_PRODUCT_LSI_FC7X04X: > > mpt->is_fc = 1; > > break; > > > Hi Matthew, this patch appears to have worked, however it also appears > to have been detected first, which has broken my fstab, is there any way > to order disks/hardware detection? Hmmm.. you used to be able to wire down the scsi bus using: controller scbus0 at ncr0 disk da0 at scbus0 target 0 disk da1 at scbus0 target 1 disk da4 at scbus0 target 2 disk da2 at scbus0 target 4 I'm not sure -current still supports it though.. The other thing that you can do is use labels... geom_label will provide disk devices based upon their labeled names... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."