aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichal Piotrowski <michal.k.k.piotrowski@gmail.com>2006-09-25 19:59:04 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-26 13:39:00 -0400
commit16c8729a46b599bca647839556a33d0b59522e94 (patch)
tree0ae2abdbdcea755f297612ef8aa8c77d9e060573 /drivers
parent76be12de87c4601cf35a88f83d199b940d995c62 (diff)
[SCSI] drivers/scsi/nsp32.h: removal of old scsi code
Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/nsp32.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/scsi/nsp32.h b/drivers/scsi/nsp32.h
index 5addf9fb1e15..a976e8193d16 100644
--- a/drivers/scsi/nsp32.h
+++ b/drivers/scsi/nsp32.h
@@ -619,47 +619,5 @@ typedef struct _nsp32_hw_data {
619#define REQSACK_TIMEOUT_TIME 10000 /* max wait time for REQ/SACK assertion 619#define REQSACK_TIMEOUT_TIME 10000 /* max wait time for REQ/SACK assertion
620 or negation, 10000us == 10ms */ 620 or negation, 10000us == 10ms */
621 621
622/**************************************************************************
623 * Compatibility functions
624 */
625
626/* for Kernel 2.4 */
627#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
628# define scsi_register_host(template) scsi_register_module(MODULE_SCSI_HA, template)
629# define scsi_unregister_host(template) scsi_unregister_module(MODULE_SCSI_HA, template)
630# define scsi_host_put(host) scsi_unregister(host)
631# define pci_name(pci_dev) ((pci_dev)->slot_name)
632
633typedef void irqreturn_t;
634# define IRQ_NONE /* */
635# define IRQ_HANDLED /* */
636# define IRQ_RETVAL(x) /* */
637
638/* This is ad-hoc version of scsi_host_get_next() */
639static inline struct Scsi_Host *scsi_host_get_next(struct Scsi_Host *host)
640{
641 if (host == NULL) {
642 return scsi_hostlist;
643 } else {
644 return host->next;
645 }
646}
647
648/* This is ad-hoc version of scsi_host_hn_get() */
649static inline struct Scsi_Host *scsi_host_hn_get(unsigned short hostno)
650{
651 struct Scsi_Host *host;
652
653 for (host = scsi_host_get_next(NULL); host != NULL;
654 host = scsi_host_get_next(host)) {
655 if (host->host_no == hostno) {
656 break;
657 }
658 }
659
660 return host;
661}
662#endif
663
664#endif /* _NSP32_H */ 622#endif /* _NSP32_H */
665/* end */ 623/* end */