* [PATCH] make scsi_ioctl.h useable without including scsi.h
@ 2002-11-17 15:32 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2002-11-17 15:32 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi
*grr* - silly typedefs..
--- 1.1/include/scsi/scsi_ioctl.h Tue Feb 5 12:39:50 2002
+++ edited/include/scsi/scsi_ioctl.h Sun Nov 17 14:32:25 2002
@@ -17,6 +17,8 @@
#ifdef __KERNEL__
+struct scsi_device;
+
/*
* Structures used for scsi_ioctl et al.
*/
@@ -33,19 +35,15 @@
} Scsi_Idlun;
/* Fibre Channel WWN, port_id struct */
-typedef struct scsi_fctargaddress
-{
+typedef struct scsi_fctargaddress {
__u32 host_port_id;
unsigned char host_wwn[8]; // include NULL term.
} Scsi_FCTargAddress;
-extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
-extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
-extern int scsi_ioctl_send_command(Scsi_Device *dev,
- Scsi_Ioctl_Command *arg);
-
-#endif
-
-#endif
-
+extern int scsi_ioctl(struct scsi_device *, int, void *);
+extern int kernel_scsi_ioctl(struct scsi_device *, int , void *);
+extern int scsi_ioctl_send_command(struct scsi_device *,
+ struct scsi_ioctl_command *);
+#endif /* __KERNEL__ */
+#endif /* _SCSI_IOCTL_H */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-17 15:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-17 15:32 [PATCH] make scsi_ioctl.h useable without including scsi.h Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.