]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: scsi: Separate the non-command code into its own file
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:09 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit11f610edf01abc96ca10e82e1752648ee911705b
tree370d72bd424842e317f82ca5bee07c6f4c82b762
parentd508c82ba90dd92fa3b70875d3419c9d1b5493c0
dm: scsi: Separate the non-command code into its own file

At present the SCSI command code includes both the command-processing code
and the core SCSI functions and data structures.

Separate the latter into its own file, adding functions as needed to avoid
the command code accessing data structures directly. This functions use the
new legacy block functions.

With this commit:
- There is no CONFIG option referenced from the command code
- The concept of a 'current SCSI device' is confined to the command code

This will make it easier to convert this code to driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/Makefile
cmd/scsi.c
common/Makefile
common/scsi.c [new file with mode: 0644]