aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-06-28 10:50:40 -0400
committerJames Bottomley <jejb@titanic.(none)>2005-07-11 13:47:47 -0400
commit2a40342e0e72a2ba89aaa9e6c9a9eceb04741b24 (patch)
treecda0577cc5348df8e4662b9615af7941852be3a3 /drivers/scsi/aic7xxx/aic7xxx_osm.h
parentdfd287f6ee9be1e3ae8fe1160c185aac6ca83c6a (diff)
[SCSI] aic7xxx: remove ahc_tailq
now that we do normal PCI probing there's no need to keep a list of all HBAs. Rejections fixed up and Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.h')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.h b/drivers/scsi/aic7xxx/aic7xxx_osm.h
index 5c0c9f9725b2..0e47ac217549 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.h
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.h
@@ -509,15 +509,6 @@ void ahc_format_transinfo(struct info_str *info,
509 509
510/******************************** Locking *************************************/ 510/******************************** Locking *************************************/
511/* Lock protecting internal data structures */ 511/* Lock protecting internal data structures */
512static __inline void ahc_lockinit(struct ahc_softc *);
513static __inline void ahc_lock(struct ahc_softc *, unsigned long *flags);
514static __inline void ahc_unlock(struct ahc_softc *, unsigned long *flags);
515
516/* Lock held during ahc_list manipulation and ahc softc frees */
517extern spinlock_t ahc_list_spinlock;
518static __inline void ahc_list_lockinit(void);
519static __inline void ahc_list_lock(unsigned long *flags);
520static __inline void ahc_list_unlock(unsigned long *flags);
521 512
522static __inline void 513static __inline void
523ahc_lockinit(struct ahc_softc *ahc) 514ahc_lockinit(struct ahc_softc *ahc)
@@ -537,24 +528,6 @@ ahc_unlock(struct ahc_softc *ahc, unsigned long *flags)
537 spin_unlock_irqrestore(&ahc->platform_data->spin_lock, *flags); 528 spin_unlock_irqrestore(&ahc->platform_data->spin_lock, *flags);
538} 529}
539 530
540static __inline void
541ahc_list_lockinit(void)
542{
543 spin_lock_init(&ahc_list_spinlock);
544}
545
546static __inline void
547ahc_list_lock(unsigned long *flags)
548{
549 spin_lock_irqsave(&ahc_list_spinlock, *flags);
550}
551
552static __inline void
553ahc_list_unlock(unsigned long *flags)
554{
555 spin_unlock_irqrestore(&ahc_list_spinlock, *flags);
556}
557
558/******************************* PCI Definitions ******************************/ 531/******************************* PCI Definitions ******************************/
559/* 532/*
560 * PCIM_xxx: mask to locate subfield in register 533 * PCIM_xxx: mask to locate subfield in register
@@ -891,7 +864,6 @@ int ahc_platform_abort_scbs(struct ahc_softc *ahc, int target,
891irqreturn_t 864irqreturn_t
892 ahc_linux_isr(int irq, void *dev_id, struct pt_regs * regs); 865 ahc_linux_isr(int irq, void *dev_id, struct pt_regs * regs);
893void ahc_platform_flushwork(struct ahc_softc *ahc); 866void ahc_platform_flushwork(struct ahc_softc *ahc);
894int ahc_softc_comp(struct ahc_softc *, struct ahc_softc *);
895void ahc_done(struct ahc_softc*, struct scb*); 867void ahc_done(struct ahc_softc*, struct scb*);
896void ahc_send_async(struct ahc_softc *, char channel, 868void ahc_send_async(struct ahc_softc *, char channel,
897 u_int target, u_int lun, ac_code, void *); 869 u_int target, u_int lun, ac_code, void *);