| 69 | } |
| 70 | |
| 71 | static rt_err_t nvme_enable_ctrl(struct rt_nvme_controller *nvme) |
| 72 | { |
| 73 | nvme->ctrl_config &= ~RT_NVME_CC_SHN_MASK; |
| 74 | nvme->ctrl_config |= RT_NVME_CC_ENABLE; |
| 75 | nvme_writel(nvme, RT_NVME_REG_CC, nvme->ctrl_config); |
| 76 | |
| 77 | return nvme_poll_csts(nvme, RT_NVME_CSTS_RDY, RT_NVME_CSTS_RDY); |
| 78 | } |
| 79 | |
| 80 | static rt_err_t nvme_disable_ctrl(struct rt_nvme_controller *nvme) |
| 81 | { |
no test coverage detected