diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
commit | 99a7e12f34b3661a0d1354eef83a0eef4df5e34c (patch) | |
tree | 3560aca9ca86792f9ab7bd87861ea143a1b3c7a3 /drivers/scsi/hosts.h | |
parent | e73a04659c0b8cdee4dd40e58630e2cf63afb316 (diff) |
Merge with Linux 2.3.38.
Diffstat (limited to 'drivers/scsi/hosts.h')
-rw-r--r-- | drivers/scsi/hosts.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.h b/drivers/scsi/hosts.h index 18a9bf45c..a2c810f97 100644 --- a/drivers/scsi/hosts.h +++ b/drivers/scsi/hosts.h @@ -397,6 +397,16 @@ struct Scsi_Host __attribute__ ((aligned (sizeof(unsigned long)))); }; +/* + * These two functions are used to allocate and free a pseudo device + * which will connect to the host adapter itself rather than any + * physical device. You must deallocate when you are done with the + * thing. This physical pseudo-device isn't real and won't be available + * from any high-level drivers. + */ +extern void scsi_free_host_dev(Scsi_Device * SDpnt); +extern Scsi_Device * scsi_get_host_dev(struct Scsi_Host * SHpnt); + extern struct Scsi_Host * scsi_hostlist; extern struct Scsi_Device_Template * scsi_devicelist; @@ -437,6 +447,8 @@ struct Scsi_Device_Template struct module * module; /* Used for loadable modules */ unsigned char scsi_type; unsigned char major; + unsigned char min_major; /* Minimum major in range. */ + unsigned char max_major; /* Maximum major in range. */ unsigned char nr_dev; /* Number currently attached */ unsigned char dev_noticed; /* Number of devices detected. */ unsigned char dev_max; /* Current size of arrays */ @@ -447,7 +459,8 @@ struct Scsi_Device_Template void (*finish)(void); /* Perform initialization after attachment */ int (*attach)(Scsi_Device *); /* Attach devices to arrays */ void (*detach)(Scsi_Device *); - int (*init_command)(Scsi_Cmnd *); /* Used by new queueing code. */ + int (*init_command)(Scsi_Cmnd *); /* Used by new queueing code. + Selects command for blkdevs */ }; extern struct Scsi_Device_Template sd_template; |