Go to the documentation of this file.
19 #ifndef _SYS_HV_DRV_MPIPE_INTF_H
20 #define _SYS_HV_DRV_MPIPE_INTF_H
27 #define HV_MPIPE_NUM_BUFFER_STACKS \
28 (MPIPE_MMIO_INIT_DAT_GX36_1__BUFFER_STACK_MASK_WIDTH)
31 #define HV_MPIPE_NUM_NOTIF_RINGS (MPIPE_NUM_NOTIF_RINGS)
34 #define HV_MPIPE_NUM_NOTIF_GROUPS (MPIPE_NUM_NOTIF_GROUPS)
37 #define HV_MPIPE_NUM_BUCKETS (MPIPE_NUM_BUCKETS)
40 #define HV_MPIPE_NUM_LO_BUCKETS 4096
43 #define HV_MPIPE_NUM_HI_BUCKETS \
44 (HV_MPIPE_NUM_BUCKETS - HV_MPIPE_NUM_LO_BUCKETS)
47 #define HV_MPIPE_NUM_EDMA_RINGS \
48 (MPIPE_MMIO_INIT_DAT_GX36_1__EDMA_POST_MASK_WIDTH)
54 #define HV_MPIPE_ALLOC_FIXED 0x01
57 #define HV_MPIPE_CONFIG_MMIO_OFFSET \
58 (MPIPE_MMIO_ADDR__REGION_VAL_CFG << MPIPE_MMIO_ADDR__REGION_SHIFT)
61 #define HV_MPIPE_CONFIG_MMIO_SIZE (64 * 1024)
64 #define HV_MPIPE_FAST_MMIO_OFFSET \
65 (MPIPE_MMIO_ADDR__REGION_VAL_IDMA << MPIPE_MMIO_ADDR__REGION_SHIFT)
68 #define HV_MPIPE_FAST_MMIO_SIZE \
69 ((MPIPE_MMIO_ADDR__REGION_VAL_BSM + 1 - MPIPE_MMIO_ADDR__REGION_VAL_IDMA) \
70 << MPIPE_MMIO_ADDR__REGION_SHIFT)
80 #define HV_MPIPE_ALLOC_BUFFER_STACKS_BITS \
81 MPIPE_MMIO_INIT_DAT_GX36_1__BUFFER_STACK_MASK_WIDTH
84 #define HV_MPIPE_ALLOC_BUFFER_STACKS_RES_PER_BIT \
85 (HV_MPIPE_NUM_BUFFER_STACKS / HV_MPIPE_ALLOC_BUFFER_STACKS_BITS)
88 #define HV_MPIPE_ALLOC_NOTIF_RINGS_BITS \
89 MPIPE_MMIO_INIT_DAT_GX36_0__NOTIF_RING_MASK_WIDTH
92 #define HV_MPIPE_ALLOC_NOTIF_RINGS_RES_PER_BIT \
93 (HV_MPIPE_NUM_NOTIF_RINGS / HV_MPIPE_ALLOC_NOTIF_RINGS_BITS)
96 #define HV_MPIPE_ALLOC_NOTIF_GROUPS_BITS \
97 HV_MPIPE_NUM_NOTIF_GROUPS
100 #define HV_MPIPE_ALLOC_NOTIF_GROUPS_RES_PER_BIT \
101 (HV_MPIPE_NUM_NOTIF_GROUPS / HV_MPIPE_ALLOC_NOTIF_GROUPS_BITS)
104 #define HV_MPIPE_ALLOC_LO_BUCKETS_BITS \
105 MPIPE_MMIO_INIT_DAT_GX36_0__BUCKET_RELEASE_MASK_LO_WIDTH
108 #define HV_MPIPE_ALLOC_LO_BUCKETS_RES_PER_BIT \
109 (HV_MPIPE_NUM_LO_BUCKETS / HV_MPIPE_ALLOC_LO_BUCKETS_BITS)
112 #define HV_MPIPE_ALLOC_HI_BUCKETS_BITS \
113 MPIPE_MMIO_INIT_DAT_GX36_0__BUCKET_RELEASE_MASK_HI_WIDTH
116 #define HV_MPIPE_ALLOC_HI_BUCKETS_RES_PER_BIT \
117 (HV_MPIPE_NUM_HI_BUCKETS / HV_MPIPE_ALLOC_HI_BUCKETS_BITS)
120 #define HV_MPIPE_ALLOC_EDMA_RINGS_BITS \
121 MPIPE_MMIO_INIT_DAT_GX36_1__EDMA_POST_MASK_WIDTH
124 #define HV_MPIPE_ALLOC_EDMA_RINGS_RES_PER_BIT \
125 (HV_MPIPE_NUM_EDMA_RINGS / HV_MPIPE_ALLOC_EDMA_RINGS_BITS)
168 #define GXIO_MPIPE_LINK_NAME_LEN 32
182 #define GXIO_MPIPE_SYMBOL_NAME_LEN 128
214 #define GXIO_MPIPE_LINK_DATA 0x00000001UL
222 #define GXIO_MPIPE_LINK_NO_DATA 0x00000002UL
233 #define GXIO_MPIPE_LINK_EXCL_DATA 0x00000004UL
244 #define GXIO_MPIPE_LINK_STATS 0x00000008UL
252 #define GXIO_MPIPE_LINK_NO_STATS 0x00000010UL
270 #define GXIO_MPIPE_LINK_EXCL_STATS 0x00000020UL
281 #define GXIO_MPIPE_LINK_CTL 0x00000040UL
289 #define GXIO_MPIPE_LINK_NO_CTL 0x00000080UL
304 #define GXIO_MPIPE_LINK_EXCL_CTL 0x00000100UL
314 #define GXIO_MPIPE_LINK_AUTO_UP 0x00000200UL
325 #define GXIO_MPIPE_LINK_AUTO_UPDOWN 0x00000400UL
335 #define GXIO_MPIPE_LINK_AUTO_DOWN 0x00000800UL
345 #define GXIO_MPIPE_LINK_AUTO_NONE 0x00001000UL
358 #define GXIO_MPIPE_LINK_WAIT 0x00002000UL
370 #define GXIO_MPIPE_LINK_RECEIVE_JUMBO 0x010000
386 #define GXIO_MPIPE_LINK_SEND_PAUSE 0x020000
392 #define GXIO_MPIPE_LINK_RECEIVE_PAUSE 0x030000
408 #define GXIO_MPIPE_LINK_MAC 0x040000
414 #define GXIO_MPIPE_LINK_DISCARD_IF_DOWN 0x050000
420 #define GXIO_MPIPE_LINK_POSSIBLE_STATE 0x060000
429 #define GXIO_MPIPE_LINK_CURRENT_STATE 0x070000
449 #define GXIO_MPIPE_LINK_DESIRED_STATE 0x080000
454 #define GXIO_MPIPE_LINK_10M 0x0000000000000001UL
457 #define GXIO_MPIPE_LINK_100M 0x0000000000000002UL
460 #define GXIO_MPIPE_LINK_1G 0x0000000000000004UL
463 #define GXIO_MPIPE_LINK_10G 0x0000000000000008UL
466 #define GXIO_MPIPE_LINK_20G 0x0000000000000010UL
469 #define GXIO_MPIPE_LINK_25G 0x0000000000000020UL
472 #define GXIO_MPIPE_LINK_50G 0x0000000000000040UL
478 #define GXIO_MPIPE_LINK_ANYSPEED 0x0000000000000800UL
485 #define GXIO_MPIPE_LINK_SPEED_MASK 0x0000000000000FFFUL
490 #define GXIO_MPIPE_LINK_LOOP_MAC 0x0000000000001000UL
495 #define GXIO_MPIPE_LINK_LOOP_PHY 0x0000000000002000UL
502 #define GXIO_MPIPE_LINK_LOOP_EXT 0x0000000000004000UL
505 #define GXIO_MPIPE_LINK_LOOP_MASK 0x000000000000F000UL
510 #define GXIO_MPIPE_LINK_FDX 0x0000000000010000UL
515 #define GXIO_MPIPE_LINK_HDX 0x0000000000020000UL