Page MenuHomeFreeBSD

ufshci: add a control device node
ClosedPublic

Authored by jaeyoon on Thu, Sep 10, 8:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 17, 2:28 AM
Unknown Object (File)
Wed, Sep 16, 9:13 PM
Unknown Object (File)
Wed, Sep 16, 2:08 AM
Unknown Object (File)
Tue, Sep 15, 11:57 PM
Unknown Object (File)
Tue, Sep 15, 10:01 PM
Unknown Object (File)
Tue, Sep 15, 10:08 AM
Unknown Object (File)
Tue, Sep 15, 7:07 AM
Unknown Object (File)
Mon, Sep 14, 2:55 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76728
Build 73611: arc lint + arc unit