xref: /openbmc/linux/drivers/scsi/snic/cq_enet_desc.h (revision f5c27da4)
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 */
10 struct cq_enet_wq_desc {
11 	__le16 completed_index;
12 	__le16 q_number;
13 	u8 reserved[11];
14 	u8 type_color;
15 };
16 
17 static 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