Page MenuHomeFreeBSD

ufshci: add a control device node
ClosedPublic

Authored by jaeyoon on Thu, Sep 10, 8:23 AM.
Tags
None
Referenced Files
F174366517: D59558.diff
Fri, Oct 2, 5:35 PM
Unknown Object (File)
Sun, Sep 27, 12:50 PM
Unknown Object (File)
Sat, Sep 26, 11:15 PM
Unknown Object (File)
Sat, Sep 26, 9:25 PM
Unknown Object (File)
Sat, Sep 26, 2:46 PM
Unknown Object (File)
Fri, Sep 25, 4:53 AM
Unknown Object (File)
Thu, Sep 24, 8:04 AM
Unknown Object (File)
Thu, Sep 24, 7:25 AM
Subscribers
None

Details

Summary

The driver only exposed a CAM SIM. Userland had no way to reach the
device for anything that is not a SCSI command, so reading a descriptor
or an attribute was impossible.

Add /dev/ufshci%d as a root only node and the ioctl ABI header for it.
The node answers no ioctl yet. The header pulls in ufshci.h, which
declares bool only under _KERNEL, so include stdbool.h for userland the
way nvme.h already does.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable