Skip to content

Commit

Permalink
[driver] add basic scsi support
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored and SamulKyull committed Dec 19, 2024
1 parent 1afa3f1 commit a853218
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/drivers/ufs/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ int scsi_scan_dev(ufs_device_t *dev) {
blk_desc_t bd;
blk_desc_t *bdesc;

uint32_t id = 0;
uint32_t lun = 0

/* init dev desc */
bd.target = 0xff;
bd.lun = 0xff;

if (scsi_detect_dev(dev, 0, 0, &bd)) {
if (scsi_detect_dev(dev, id, lun, &bd)) {
printk_warning("UFS: scsi scan device failed\n");
return -1;
}
Expand Down

0 comments on commit a853218

Please sign in to comment.