Path: blob/main/sys/compat/linuxkpi/common/include/net/page_pool/helpers.h
48582 views
/*-1* Copyright (c) 2023-2025 Bjoern A. Zeeb2*3* SPDX-License-Identifier: BSD-2-Clause4*/56#ifndef _LINUXKPI_NET_PAGE_POOL_HELPERS_H7#define _LINUXKPI_NET_PAGE_POOL_HELPERS_H89#include <linux/kernel.h> /* pr_debug */10#include <linux/types.h>11#include <linux/dma-mapping.h>12#include <net/page_pool/types.h>1314static inline struct page_pool *15page_pool_create(const struct page_pool_params *ppparams)16{1718pr_debug("%s: TODO\n", __func__);19return (NULL);20}2122static inline void23page_pool_destroy(struct page_pool *ppool)24{2526pr_debug("%s: TODO\n", __func__);27}2829static inline struct page *30page_pool_dev_alloc_frag(struct page_pool *ppool, uint32_t *offset,31size_t size)32{3334pr_debug("%s: TODO\n", __func__);35return (NULL);36}3738static inline dma_addr_t39page_pool_get_dma_addr(struct page *page)40{4142pr_debug("%s: TODO\n", __func__);43return (0);44}4546static inline enum dma_data_direction47page_pool_get_dma_dir(const struct page_pool *ppool)48{4950pr_debug("%s: TODO\n", __func__);51return (DMA_BIDIRECTIONAL);52}5354static inline void55page_pool_put_full_page(struct page_pool *ppool, struct page *page,56bool allow_direct)57{5859pr_debug("%s: TODO\n", __func__);60}6162static inline int63page_pool_ethtool_stats_get_count(void)64{6566pr_debug("%s: TODO\n", __func__);67return (0);68}6970static inline uint8_t *71page_pool_ethtool_stats_get_strings(uint8_t *x)72{7374pr_debug("%s: TODO\n", __func__);75return (x);76}7778#endif /* _LINUXKPI_NET_PAGE_POOL_HELPERS_H */798081