drivers/net/ethernet/intel/ice/ice_osdep.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/intel/ice/ice_osdep.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/intel/ice/ice_osdep.h- Extension
.h- Size
- 2659 bytes
- Lines
- 90
- 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
linux/types.hlinux/ctype.hlinux/delay.hlinux/io.hlinux/bitops.hlinux/ethtool.hlinux/etherdevice.hlinux/if_ether.hlinux/iopoll.hlinux/pci_ids.hlinux/io-64-nonatomic-lo-hi.hnet/udp_tunnel.h
Detected Declarations
struct ice_dma_memstruct ice_hw
Annotated Snippet
struct ice_dma_mem {
void *va;
dma_addr_t pa;
size_t size;
};
struct ice_hw;
struct device *ice_hw_to_dev(struct ice_hw *hw);
#ifdef CONFIG_DYNAMIC_DEBUG
#define ice_debug(hw, type, fmt, args...) \
dev_dbg(ice_hw_to_dev(hw), fmt, ##args)
#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
print_hex_dump_debug(prefix, DUMP_PREFIX_OFFSET, \
rowsize, groupsize, buf, len, false)
#else /* CONFIG_DYNAMIC_DEBUG */
#define ice_debug(hw, type, fmt, args...) \
do { \
if ((type) & (hw)->debug_mask) \
dev_info(ice_hw_to_dev(hw), fmt, ##args); \
} while (0)
#ifdef DEBUG
#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
do { \
if ((type) & (hw)->debug_mask) \
print_hex_dump_debug(prefix, DUMP_PREFIX_OFFSET,\
rowsize, groupsize, buf, \
len, false); \
} while (0)
#else /* DEBUG */
#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
do { \
struct ice_hw *hw_l = hw; \
if ((type) & (hw_l)->debug_mask) { \
u16 len_l = len; \
u8 *buf_l = buf; \
int i; \
for (i = 0; i < (len_l - 16); i += 16) \
ice_debug(hw_l, type, "0x%04X %16ph\n",\
i, ((buf_l) + i)); \
if (i < len_l) \
ice_debug(hw_l, type, "0x%04X %*ph\n", \
i, ((len_l) - i), ((buf_l) + i));\
} \
} while (0)
#endif /* DEBUG */
#endif /* CONFIG_DYNAMIC_DEBUG */
#define ice_debug_array(hw, type, rowsize, groupsize, buf, len) \
_ice_debug_array(hw, type, KBUILD_MODNAME, rowsize, groupsize, buf, len)
#define ice_debug_array_w_prefix(hw, type, prefix, buf, len) \
_ice_debug_array(hw, type, prefix, 16, 1, buf, len)
#endif /* _ICE_OSDEP_H_ */
Annotation
- Immediate include surface: `linux/types.h`, `linux/ctype.h`, `linux/delay.h`, `linux/io.h`, `linux/bitops.h`, `linux/ethtool.h`, `linux/etherdevice.h`, `linux/if_ether.h`.
- Detected declarations: `struct ice_dma_mem`, `struct ice_hw`.
- 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.