drivers/net/wireless/ath/ath6kl/hif-ops.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath6kl/hif-ops.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath6kl/hif-ops.h- Extension
.h- Size
- 5077 bytes
- Lines
- 188
- Domain
- Driver Families
- Bucket
- drivers/net
- 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
hif.hdebug.h
Detected Declarations
function Copyrightfunction hif_write_asyncfunction ath6kl_hif_irq_enablefunction ath6kl_hif_irq_disablefunction hif_scatter_req_addfunction ath6kl_hif_enable_scatterfunction ath6kl_hif_scat_req_rwfunction ath6kl_hif_cleanup_scatterfunction ath6kl_hif_suspendfunction ath6kl_hif_diag_read32function ath6kl_hif_diag_write32function ath6kl_hif_bmi_readfunction ath6kl_hif_bmi_writefunction ath6kl_hif_resumefunction ath6kl_hif_power_onfunction ath6kl_hif_power_offfunction ath6kl_hif_stopfunction ath6kl_hif_pipe_sendfunction ath6kl_hif_pipe_get_defaultfunction ath6kl_hif_pipe_map_servicefunction ath6kl_hif_pipe_get_free_queue_number
Annotated Snippet
#ifndef HIF_OPS_H
#define HIF_OPS_H
#include "hif.h"
#include "debug.h"
static inline int hif_read_write_sync(struct ath6kl *ar, u32 addr, u8 *buf,
u32 len, u32 request)
{
ath6kl_dbg(ATH6KL_DBG_HIF,
"hif %s sync addr 0x%x buf 0x%p len %d request 0x%x\n",
(request & HIF_WRITE) ? "write" : "read",
addr, buf, len, request);
return ar->hif_ops->read_write_sync(ar, addr, buf, len, request);
}
static inline int hif_write_async(struct ath6kl *ar, u32 address, u8 *buffer,
u32 length, u32 request,
struct htc_packet *packet)
{
ath6kl_dbg(ATH6KL_DBG_HIF,
"hif write async addr 0x%x buf 0x%p len %d request 0x%x\n",
address, buffer, length, request);
return ar->hif_ops->write_async(ar, address, buffer, length,
request, packet);
}
static inline void ath6kl_hif_irq_enable(struct ath6kl *ar)
{
ath6kl_dbg(ATH6KL_DBG_HIF, "hif irq enable\n");
return ar->hif_ops->irq_enable(ar);
}
static inline void ath6kl_hif_irq_disable(struct ath6kl *ar)
{
ath6kl_dbg(ATH6KL_DBG_HIF, "hif irq disable\n");
return ar->hif_ops->irq_disable(ar);
}
static inline struct hif_scatter_req *hif_scatter_req_get(struct ath6kl *ar)
{
return ar->hif_ops->scatter_req_get(ar);
}
static inline void hif_scatter_req_add(struct ath6kl *ar,
struct hif_scatter_req *s_req)
{
return ar->hif_ops->scatter_req_add(ar, s_req);
}
static inline int ath6kl_hif_enable_scatter(struct ath6kl *ar)
{
return ar->hif_ops->enable_scatter(ar);
}
static inline int ath6kl_hif_scat_req_rw(struct ath6kl *ar,
struct hif_scatter_req *scat_req)
{
return ar->hif_ops->scat_req_rw(ar, scat_req);
}
static inline void ath6kl_hif_cleanup_scatter(struct ath6kl *ar)
{
return ar->hif_ops->cleanup_scatter(ar);
}
static inline int ath6kl_hif_suspend(struct ath6kl *ar,
struct cfg80211_wowlan *wow)
{
ath6kl_dbg(ATH6KL_DBG_HIF, "hif suspend\n");
return ar->hif_ops->suspend(ar, wow);
}
/*
* Read from the ATH6KL through its diagnostic window. No cooperation from
* the Target is required for this.
*/
static inline int ath6kl_hif_diag_read32(struct ath6kl *ar, u32 address,
u32 *value)
{
return ar->hif_ops->diag_read32(ar, address, value);
}
/*
* Write to the ATH6KL through its diagnostic window. No cooperation from
* the Target is required for this.
Annotation
- Immediate include surface: `hif.h`, `debug.h`.
- Detected declarations: `function Copyright`, `function hif_write_async`, `function ath6kl_hif_irq_enable`, `function ath6kl_hif_irq_disable`, `function hif_scatter_req_add`, `function ath6kl_hif_enable_scatter`, `function ath6kl_hif_scat_req_rw`, `function ath6kl_hif_cleanup_scatter`, `function ath6kl_hif_suspend`, `function ath6kl_hif_diag_read32`.
- Atlas domain: Driver Families / drivers/net.
- 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.