X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhinic%2Fbase%2Fhinic_pmd_eqs.h;h=5e6dc3914b7ccb87ead11b3a3083a29348aa6326;hb=437dbd2fd4289c32e2937a1e7dbe95645457dfff;hp=fdb98544d971dde76772d7a4968ebaae5c372354;hpb=78f6c5dbe2e29ce16deff907dd05a06161310fe9;p=dpdk.git diff --git a/drivers/net/hinic/base/hinic_pmd_eqs.h b/drivers/net/hinic/base/hinic_pmd_eqs.h index fdb98544d9..5e6dc3914b 100644 --- a/drivers/net/hinic/base/hinic_pmd_eqs.h +++ b/drivers/net/hinic/base/hinic_pmd_eqs.h @@ -9,6 +9,10 @@ #define HINIC_AEQN_START 0 #define HINIC_MAX_AEQS 4 +#define HINIC_MIN_AEQS 2 +#define HINIC_AEQN_0 0 +#define HINIC_AEQN_1 1 +#define HINIC_AEQN_2 2 #define HINIC_EQ_MAX_PAGES 8 @@ -21,9 +25,6 @@ #define HINIC_DEFAULT_AEQ_LEN 64 -#define HINIC_RECV_NEXT_AEQE HINIC_ERROR -#define HINIC_RECV_DONE HINIC_OK - #define GET_EQ_ELEMENT(eq, idx) \ (((u8 *)(eq)->virt_addr[(idx) / (eq)->num_elem_in_pg]) + \ (((u32)(idx) & ((eq)->num_elem_in_pg - 1)) * (eq)->elem_size)) @@ -58,7 +59,7 @@ enum hinic_aeq_type { struct hinic_eq { struct hinic_hwdev *hwdev; u16 q_id; - enum hinic_eq_type type; + u16 type; u32 page_size; u16 eq_len;