2001-10-10 17:05:14

by Markus Döhr

[permalink] [raw]
Subject: [PATCH] for 2.4.11 to get the Compaq array driver compiled

diff -udr linux/include/scsi/scsi.h
linux-2.4.10-ac10enterprise64/include/scsi/scsi.h
--- linux/include/scsi/scsi.h Fri Apr 27 22:59:19 2001
+++ linux-2.4.10-ac10enterprise64/include/scsi/scsi.h Tue Oct 9 00:02:19
2001
@@ -214,6 +214,12 @@
/* Used to get the PCI location of a device */
#define SCSI_IOCTL_GET_PCI 0x5387

+/* Used to get Fibre Channel WWN and port_id from device */
+#define SCSI_IOCTL_FC_TARGET_ADDRESS 0x5387
+
+/* Used to invoke Target Defice Reset for Fibre Channel */
+#define SCSI_IOCTL_FC_TDR 0x5388
+
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically

I don't know if this patch is correct but it seems to work fine :-)
This is not fixed in 2.4.10 neither in 2.4.11.


Greetings,

--
Markus Doehr AUBI Baubschlaege GmbH
IT Admin/SAP R/3 Basis Zum Grafenwald
fon: +49 6503 917 152 54411 Hermeskeil
fax: +49 6503 917 190 http://www.aubi.de


2001-10-10 20:43:34

by Jonathan Lundell

[permalink] [raw]
Subject: Re: [PATCH] for 2.4.11 to get the Compaq array driver compiled

At 7:05 PM +0200 10/10/01, Markus D?hr wrote:
>diff -udr linux/include/scsi/scsi.h
>linux-2.4.10-ac10enterprise64/include/scsi/scsi.h
>--- linux/include/scsi/scsi.h Fri Apr 27 22:59:19 2001
>+++ linux-2.4.10-ac10enterprise64/include/scsi/scsi.h Tue Oct 9 00:02:19
>2001
>@@ -214,6 +214,12 @@
> /* Used to get the PCI location of a device */
> #define SCSI_IOCTL_GET_PCI 0x5387
>
>+/* Used to get Fibre Channel WWN and port_id from device */
>+#define SCSI_IOCTL_FC_TARGET_ADDRESS 0x5387
>+
>+/* Used to invoke Target Defice Reset for Fibre Channel */
>+#define SCSI_IOCTL_FC_TDR 0x5388
>+

No doubt there's some subtle reason for using 0x5387 twice? (Just curious.)
--
/Jonathan Lundell.