brintos

brintos / linux-shallow public Read only

0
0
Text · 578 B · bd7381e Raw
25 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/* Copyright 2014 Cisco Systems, Inc.  All rights reserved. */3 4#ifndef _CQ_ENET_DESC_H_5#define _CQ_ENET_DESC_H_6 7#include "cq_desc.h"8 9/* Ethernet completion queue descriptor: 16B */10struct cq_enet_wq_desc {11	__le16 completed_index;12	__le16 q_number;13	u8 reserved[11];14	u8 type_color;15};16 17static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc,18	u8 *type, u8 *color, u16 *q_number, u16 *completed_index)19{20	cq_desc_dec((struct cq_desc *)desc, type,21		color, q_number, completed_index);22}23 24#endif /* _CQ_ENET_DESC_H_ */25