HomeFreeBSD

nvme: Add OAES bit-field definitions

Description

nvme: Add OAES bit-field definitions

Create definitions for the Optional Asynchronous Events Supported (OAES)
values. Also adds a helper macro for the common use case of "mask and
shift". E.g.

value = NVME_CTRLR_DATA_OAES_NS_ATTR_MASK << NVME_CTRLR_DATA_OAES_NS_ATTR_SHIFT;

becomes

value = NVMEB(NVME_CTRLR_DATA_OAES_NS_ATTR);

(cherry picked from commit e71afa1202750b7cc8d49e77b7eed0114ece1657)

Details

Provenance
chuckAuthored on Feb 21 2022, 6:34 PM
Parents
rG5f3cd10138a1: Update fsdb(8) to reflect new structure of fsck_ffs(8).
Branches
Unknown
Tags
Unknown