event/octeontx2: add SSO HW device operations
[dpdk.git] / drivers / event / octeontx2 / otx2_evdev.h
index e1d2dcc..cccce1d 100644 (file)
@@ -82,6 +82,28 @@ enum otx2_sso_lf_type {
        SSO_LF_GWS
 };
 
+union otx2_sso_event {
+       uint64_t get_work0;
+       struct {
+               uint32_t flow_id:20;
+               uint32_t sub_event_type:8;
+               uint32_t event_type:4;
+               uint8_t op:2;
+               uint8_t rsvd:4;
+               uint8_t sched_type:2;
+               uint8_t queue_id;
+               uint8_t priority;
+               uint8_t impl_opaque;
+       };
+} __rte_aligned(64);
+
+enum {
+       SSO_SYNC_ORDERED,
+       SSO_SYNC_ATOMIC,
+       SSO_SYNC_UNTAGGED,
+       SSO_SYNC_EMPTY
+};
+
 struct otx2_sso_evdev {
        OTX2_DEV; /* Base class */
        uint8_t max_event_queues;