From 56641b34719843b36dbf1b36d31c4faf71bd8bcf Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 25 Apr 2022 00:47:37 -0700 Subject: [PATCH] modules/mqnic: Export symbols Signed-off-by: Alex Forencich --- modules/mqnic/mqnic_if.c | 10 ++++++++++ modules/mqnic/mqnic_reg_block.c | 3 +++ modules/mqnic/mqnic_sched_block.c | 2 ++ modules/mqnic/mqnic_scheduler.c | 2 ++ 4 files changed, 17 insertions(+) diff --git a/modules/mqnic/mqnic_if.c b/modules/mqnic/mqnic_if.c index 0a8f4ee08..1d276fad5 100644 --- a/modules/mqnic/mqnic_if.c +++ b/modules/mqnic/mqnic_if.c @@ -333,54 +333,64 @@ u32 mqnic_interface_get_tx_mtu(struct mqnic_if *interface) { return ioread32(interface->if_ctrl_rb->regs + MQNIC_RB_IF_CTRL_REG_TX_MTU); } +EXPORT_SYMBOL(mqnic_interface_get_tx_mtu); void mqnic_interface_set_tx_mtu(struct mqnic_if *interface, u32 mtu) { iowrite32(mtu, interface->if_ctrl_rb->regs + MQNIC_RB_IF_CTRL_REG_TX_MTU); } +EXPORT_SYMBOL(mqnic_interface_set_tx_mtu); u32 mqnic_interface_get_rx_mtu(struct mqnic_if *interface) { return ioread32(interface->if_ctrl_rb->regs + MQNIC_RB_IF_CTRL_REG_RX_MTU); } +EXPORT_SYMBOL(mqnic_interface_get_rx_mtu); void mqnic_interface_set_rx_mtu(struct mqnic_if *interface, u32 mtu) { iowrite32(mtu, interface->if_ctrl_rb->regs + MQNIC_RB_IF_CTRL_REG_RX_MTU); } +EXPORT_SYMBOL(mqnic_interface_set_rx_mtu); u32 mqnic_interface_get_rx_queue_map_offset(struct mqnic_if *interface, int port) { return ioread32(interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_OFFSET); } +EXPORT_SYMBOL(mqnic_interface_get_rx_queue_map_offset); void mqnic_interface_set_rx_queue_map_offset(struct mqnic_if *interface, int port, u32 val) { iowrite32(val, interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_OFFSET); } +EXPORT_SYMBOL(mqnic_interface_set_rx_queue_map_offset); u32 mqnic_interface_get_rx_queue_map_rss_mask(struct mqnic_if *interface, int port) { return ioread32(interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_RSS_MASK); } +EXPORT_SYMBOL(mqnic_interface_get_rx_queue_map_rss_mask); void mqnic_interface_set_rx_queue_map_rss_mask(struct mqnic_if *interface, int port, u32 val) { iowrite32(val, interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_RSS_MASK); } +EXPORT_SYMBOL(mqnic_interface_set_rx_queue_map_rss_mask); u32 mqnic_interface_get_rx_queue_map_app_mask(struct mqnic_if *interface, int port) { return ioread32(interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_APP_MASK); } +EXPORT_SYMBOL(mqnic_interface_get_rx_queue_map_app_mask); void mqnic_interface_set_rx_queue_map_app_mask(struct mqnic_if *interface, int port, u32 val) { iowrite32(val, interface->rx_queue_map_rb->regs + MQNIC_RB_RX_QUEUE_MAP_CH_OFFSET + MQNIC_RB_RX_QUEUE_MAP_CH_STRIDE*port + MQNIC_RB_RX_QUEUE_MAP_CH_REG_APP_MASK); } +EXPORT_SYMBOL(mqnic_interface_set_rx_queue_map_app_mask); diff --git a/modules/mqnic/mqnic_reg_block.c b/modules/mqnic/mqnic_reg_block.c index 4652f1ee7..8655cd634 100644 --- a/modules/mqnic/mqnic_reg_block.c +++ b/modules/mqnic/mqnic_reg_block.c @@ -96,6 +96,7 @@ fail: kfree(reg_block_list); return NULL; } +EXPORT_SYMBOL(mqnic_enumerate_reg_block_list); struct mqnic_reg_block *mqnic_find_reg_block(struct mqnic_reg_block *list, u32 type, u32 version, int index) { @@ -114,8 +115,10 @@ struct mqnic_reg_block *mqnic_find_reg_block(struct mqnic_reg_block *list, u32 t return NULL; } +EXPORT_SYMBOL(mqnic_find_reg_block); void mqnic_free_reg_block_list(struct mqnic_reg_block *list) { kfree(list); } +EXPORT_SYMBOL(mqnic_free_reg_block_list); diff --git a/modules/mqnic/mqnic_sched_block.c b/modules/mqnic/mqnic_sched_block.c index f4d3d28d9..d4ef002b1 100644 --- a/modules/mqnic/mqnic_sched_block.c +++ b/modules/mqnic/mqnic_sched_block.c @@ -127,6 +127,7 @@ int mqnic_activate_sched_block(struct mqnic_sched_block *block) return 0; } +EXPORT_SYMBOL(mqnic_activate_sched_block); void mqnic_deactivate_sched_block(struct mqnic_sched_block *block) { @@ -137,3 +138,4 @@ void mqnic_deactivate_sched_block(struct mqnic_sched_block *block) if (block->sched[k]) mqnic_scheduler_disable(block->sched[k]); } +EXPORT_SYMBOL(mqnic_deactivate_sched_block); diff --git a/modules/mqnic/mqnic_scheduler.c b/modules/mqnic/mqnic_scheduler.c index 1d325cf85..fb6c3791d 100644 --- a/modules/mqnic/mqnic_scheduler.c +++ b/modules/mqnic/mqnic_scheduler.c @@ -95,9 +95,11 @@ int mqnic_scheduler_enable(struct mqnic_sched *sched) return 0; } +EXPORT_SYMBOL(mqnic_scheduler_enable); void mqnic_scheduler_disable(struct mqnic_sched *sched) { // disable scheduler iowrite32(0, sched->rb->regs + MQNIC_RB_SCHED_RR_REG_CTRL); } +EXPORT_SYMBOL(mqnic_scheduler_disable);