mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
modules/mqnic: Export symbols
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
e4de3c2fb5
commit
56641b3471
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user