mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 19:11:37 +00:00
dm: scsi: Rearrange header file for driver model
Put the driver-model declarations first since we are migrating to that. Also drop scsi_init() when driver model is used. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
0fcd48fe00
commit
043682422c
1 changed files with 14 additions and 20 deletions
|
@ -158,26 +158,6 @@ typedef struct SCSI_cmd_block{
|
||||||
#define SCSI_WRITE_LONG 0x3F /* Write Long (O) */
|
#define SCSI_WRITE_LONG 0x3F /* Write Long (O) */
|
||||||
#define SCSI_WRITE_SAME 0x41 /* Write Same (O) */
|
#define SCSI_WRITE_SAME 0x41 /* Write Same (O) */
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* decleration of functions which have to reside in the LowLevel Part Driver
|
|
||||||
*/
|
|
||||||
|
|
||||||
int scsi_exec(ccb *pccb);
|
|
||||||
void scsi_bus_reset(void);
|
|
||||||
#if !defined(CONFIG_DM_SCSI)
|
|
||||||
void scsi_low_level_init(int busdevfunc);
|
|
||||||
#else
|
|
||||||
void scsi_low_level_init(int busdevfunc, struct udevice *dev);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/***************************************************************************
|
|
||||||
* functions residing inside cmd_scsi.c
|
|
||||||
*/
|
|
||||||
void scsi_init(void);
|
|
||||||
int scsi_scan(int mode);
|
|
||||||
|
|
||||||
#if defined(CONFIG_DM_SCSI)
|
|
||||||
/**
|
/**
|
||||||
* struct scsi_platdata - stores information about SCSI controller
|
* struct scsi_platdata - stores information about SCSI controller
|
||||||
*
|
*
|
||||||
|
@ -190,8 +170,22 @@ struct scsi_platdata {
|
||||||
unsigned long max_lun;
|
unsigned long max_lun;
|
||||||
unsigned long max_id;
|
unsigned long max_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(CONFIG_DM_SCSI)
|
||||||
|
void scsi_low_level_init(int busdevfunc, struct udevice *dev);
|
||||||
|
#else
|
||||||
|
void scsi_low_level_init(int busdevfunc);
|
||||||
|
void scsi_init(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int scsi_exec(ccb *pccb);
|
||||||
|
void scsi_bus_reset(void);
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
* functions residing inside cmd_scsi.c
|
||||||
|
*/
|
||||||
|
int scsi_scan(int mode);
|
||||||
|
|
||||||
#define SCSI_IDENTIFY 0xC0 /* not used */
|
#define SCSI_IDENTIFY 0xC0 /* not used */
|
||||||
|
|
||||||
/* Hardware errors */
|
/* Hardware errors */
|
||||||
|
|
Loading…
Add table
Reference in a new issue