drivers/crypto/intel/qat/qat_common/adf_gen6_pm.h
Source file repositories/reference/linux-study-clean/drivers/crypto/intel/qat/qat_common/adf_gen6_pm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/intel/qat/qat_common/adf_gen6_pm.h- Extension
.h- Size
- 1422 bytes
- Lines
- 53
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bits.hlinux/time.h
Detected Declarations
struct adf_accel_devfunction adf_gen6_init_dev_pm_data
Annotated Snippet
#ifndef ADF_GEN6_PM_H
#define ADF_GEN6_PM_H
#include <linux/bits.h>
#include <linux/time.h>
struct adf_accel_dev;
/* Power management */
#define ADF_GEN6_PM_POLL_DELAY_US 20
#define ADF_GEN6_PM_POLL_TIMEOUT_US USEC_PER_SEC
#define ADF_GEN6_PM_STATUS 0x50A00C
#define ADF_GEN6_PM_INTERRUPT 0x50A028
/* Power management source in ERRSOU2 and ERRMSK2 */
#define ADF_GEN6_PM_SOU BIT(18)
/* cpm_pm_interrupt bitfields */
#define ADF_GEN6_PM_DRV_ACTIVE BIT(20)
#define ADF_GEN6_PM_DEFAULT_IDLE_FILTER 0x6
/* cpm_pm_status bitfields */
#define ADF_GEN6_PM_INIT_STATE BIT(21)
#define ADF_GEN6_PM_CPM_PM_STATE_MASK GENMASK(22, 20)
/* fusectl0 bitfields */
#define ADF_GEN6_PM_ENABLE_PM_MASK BIT(21)
#define ADF_GEN6_PM_ENABLE_PM_IDLE_MASK BIT(22)
#define ADF_GEN6_PM_ENABLE_DEEP_PM_IDLE_MASK BIT(23)
/* cpm_pm_fw_init bitfields */
#define ADF_GEN6_PM_IDLE_FILTER_MASK GENMASK(5, 3)
#define ADF_GEN6_PM_IDLE_ENABLE_MASK BIT(2)
/* ssm_pm_enable bitfield */
#define ADF_GEN6_PM_SSM_PM_ENABLE_MASK BIT(0)
/* ssm_pm_domain_status bitfield */
#define ADF_GEN6_PM_DOMAIN_POWERED_UP_MASK BIT(0)
#ifdef CONFIG_DEBUG_FS
void adf_gen6_init_dev_pm_data(struct adf_accel_dev *accel_dev);
#else
static inline void adf_gen6_init_dev_pm_data(struct adf_accel_dev *accel_dev)
{
}
#endif /* CONFIG_DEBUG_FS */
#endif /* ADF_GEN6_PM_H */
Annotation
- Immediate include surface: `linux/bits.h`, `linux/time.h`.
- Detected declarations: `struct adf_accel_dev`, `function adf_gen6_init_dev_pm_data`.
- Atlas domain: Driver Families / drivers/crypto.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.