/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved. * Copyright 2007 Nuova Systems, Inc. All rights reserved. */ #ifndef _RQ_ENET_DESC_H_ #define _RQ_ENET_DESC_H_ /* Ethernet receive queue descriptor: 16B */ struct rq_enet_desc { … }; enum rq_enet_type_types { … }; #define RQ_ENET_ADDR_BITS … #define RQ_ENET_LEN_BITS … #define RQ_ENET_LEN_MASK … #define RQ_ENET_TYPE_BITS … #define RQ_ENET_TYPE_MASK … static inline void rq_enet_desc_enc(struct rq_enet_desc *desc, u64 address, u8 type, u16 length) { … } static inline void rq_enet_desc_dec(struct rq_enet_desc *desc, u64 *address, u8 *type, u16 *length) { … } #endif /* _RQ_ENET_DESC_H_ */