scsi_host.h (e881a172dac4d9ea3b2a1540041d872963c269bd) | scsi_host.h (d139b9bd0e52dda14fd13412e7096e68b56d0076) |
---|---|
1#ifndef _SCSI_SCSI_HOST_H 2#define _SCSI_SCSI_HOST_H 3 4#include <linux/device.h> 5#include <linux/list.h> 6#include <linux/types.h> 7#include <linux/workqueue.h> 8#include <linux/mutex.h> --- 669 unchanged lines hidden (view full) --- 678 679 /* 680 * Points to the transport data (if any) which is allocated 681 * separately 682 */ 683 void *shost_data; 684 685 /* | 1#ifndef _SCSI_SCSI_HOST_H 2#define _SCSI_SCSI_HOST_H 3 4#include <linux/device.h> 5#include <linux/list.h> 6#include <linux/types.h> 7#include <linux/workqueue.h> 8#include <linux/mutex.h> --- 669 unchanged lines hidden (view full) --- 678 679 /* 680 * Points to the transport data (if any) which is allocated 681 * separately 682 */ 683 void *shost_data; 684 685 /* |
686 * Points to the physical bus device we'd use to do DMA 687 * Needed just in case we have virtual hosts. 688 */ 689 struct device *dma_dev; 690 691 /* |
|
686 * We should ensure that this is aligned, both for better performance 687 * and also because some compilers (m68k) don't automatically force 688 * alignment to a long boundary. 689 */ 690 unsigned long hostdata[0] /* Used for storage of host specific stuff */ 691 __attribute__ ((aligned (sizeof(unsigned long)))); 692}; 693 --- 27 unchanged lines hidden (view full) --- 721 shost->shost_state == SHOST_DEL_RECOVERY || 722 shost->tmf_in_progress; 723} 724 725extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *); 726extern void scsi_flush_work(struct Scsi_Host *); 727 728extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int); | 692 * We should ensure that this is aligned, both for better performance 693 * and also because some compilers (m68k) don't automatically force 694 * alignment to a long boundary. 695 */ 696 unsigned long hostdata[0] /* Used for storage of host specific stuff */ 697 __attribute__ ((aligned (sizeof(unsigned long)))); 698}; 699 --- 27 unchanged lines hidden (view full) --- 727 shost->shost_state == SHOST_DEL_RECOVERY || 728 shost->tmf_in_progress; 729} 730 731extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *); 732extern void scsi_flush_work(struct Scsi_Host *); 733 734extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int); |
729extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *); | 735extern int __must_check scsi_add_host_with_dma(struct Scsi_Host *, 736 struct device *, 737 struct device *); |
730extern void scsi_scan_host(struct Scsi_Host *); 731extern void scsi_rescan_device(struct device *); 732extern void scsi_remove_host(struct Scsi_Host *); 733extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *); 734extern void scsi_host_put(struct Scsi_Host *t); 735extern struct Scsi_Host *scsi_host_lookup(unsigned short); 736extern const char *scsi_host_state_name(enum scsi_host_state); 737 738extern u64 scsi_calculate_bounce_limit(struct Scsi_Host *); 739 | 738extern void scsi_scan_host(struct Scsi_Host *); 739extern void scsi_rescan_device(struct device *); 740extern void scsi_remove_host(struct Scsi_Host *); 741extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *); 742extern void scsi_host_put(struct Scsi_Host *t); 743extern struct Scsi_Host *scsi_host_lookup(unsigned short); 744extern const char *scsi_host_state_name(enum scsi_host_state); 745 746extern u64 scsi_calculate_bounce_limit(struct Scsi_Host *); 747 |
748static inline int __must_check scsi_add_host(struct Scsi_Host *host, 749 struct device *dev) 750{ 751 return scsi_add_host_with_dma(host, dev, dev); 752} 753 |
|
740static inline struct device *scsi_get_device(struct Scsi_Host *shost) 741{ 742 return shost->shost_gendev.parent; 743} 744 745/** 746 * scsi_host_scan_allowed - Is scanning of this host allowed 747 * @shost: Pointer to Scsi_Host. --- 116 unchanged lines hidden --- | 754static inline struct device *scsi_get_device(struct Scsi_Host *shost) 755{ 756 return shost->shost_gendev.parent; 757} 758 759/** 760 * scsi_host_scan_allowed - Is scanning of this host allowed 761 * @shost: Pointer to Scsi_Host. --- 116 unchanged lines hidden --- |