提交 322f73f4 编写于 作者: S Simon Glass

dm: scsi: Add operations

Add operations for SCSI. These are not yet implemented, but we have the
struct.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
上级 4279efc4
...@@ -171,6 +171,26 @@ struct scsi_platdata { ...@@ -171,6 +171,26 @@ struct scsi_platdata {
unsigned long max_id; unsigned long max_id;
}; };
/* Operations for SCSI */
struct scsi_ops {
/**
* exec() - execute a command
*
* @dev: SCSI bus
* @cmd: Command to execute
* @return 0 if OK, -ve on error
*/
int (*exec)(struct udevice *dev, struct scsi_cmd *cmd);
/**
* bus_reset() - reset the bus
*
* @dev: SCSI bus to reset
* @return 0 if OK, -ve on error
*/
int (*bus_reset)(struct udevice *dev);
};
#ifndef CONFIG_DM_SCSI #ifndef CONFIG_DM_SCSI
void scsi_low_level_init(int busdevfunc); void scsi_low_level_init(int busdevfunc);
void scsi_init(void); void scsi_init(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册