1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Fix register accesses

This commit is contained in:
Alex Forencich 2022-01-05 19:38:56 -08:00
parent 975ba91239
commit a4a26e7bc4

View File

@ -328,30 +328,30 @@ void mqnic_destroy_interface(struct mqnic_if **interface_ptr)
u32 mqnic_interface_get_rss_mask(struct mqnic_if *interface)
{
return ioread32(interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK);
return ioread32(interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK);
}
void mqnic_interface_set_rss_mask(struct mqnic_if *interface, u32 rss_mask)
{
iowrite32(rss_mask, interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK);
iowrite32(rss_mask, interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK);
}
u32 mqnic_interface_get_tx_mtu(struct mqnic_if *interface)
{
return ioread32(interface->if_ctrl_tx_rb + MQNIC_RB_IF_CTRL_TX_REG_MTU);
return ioread32(interface->if_ctrl_tx_rb->regs + MQNIC_RB_IF_CTRL_TX_REG_MTU);
}
void mqnic_interface_set_tx_mtu(struct mqnic_if *interface, u32 mtu)
{
iowrite32(mtu, interface->if_ctrl_tx_rb + MQNIC_RB_IF_CTRL_TX_REG_MTU);
iowrite32(mtu, interface->if_ctrl_tx_rb->regs + MQNIC_RB_IF_CTRL_TX_REG_MTU);
}
u32 mqnic_interface_get_rx_mtu(struct mqnic_if *interface)
{
return ioread32(interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_MTU);
return ioread32(interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_MTU);
}
void mqnic_interface_set_rx_mtu(struct mqnic_if *interface, u32 mtu)
{
iowrite32(mtu, interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_MTU);
iowrite32(mtu, interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_MTU);
}