mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Update userspace utils
This commit is contained in:
parent
6d26adf916
commit
7d561c713f
@ -142,6 +142,7 @@ int main(int argc, char *argv[])
|
||||
struct mqnic_if *dev_interface = &dev->interfaces[interface];
|
||||
|
||||
printf("IF ID: 0x%08x\n", dev_interface->if_id);
|
||||
printf("IF features: 0x%08x\n", dev_interface->if_features);
|
||||
|
||||
printf("Event queue count: %d\n", dev_interface->event_queue_count);
|
||||
printf("Event queue offset: 0x%08x\n", dev_interface->event_queue_offset);
|
||||
@ -167,12 +168,17 @@ int main(int argc, char *argv[])
|
||||
struct mqnic_port *dev_port = &dev_interface->ports[port];
|
||||
|
||||
printf("Port ID: 0x%08x\n", dev_port->port_id);
|
||||
printf("Port features: 0x%08x\n", dev_port->port_features);
|
||||
printf("Port MTU: %d\n", dev_port->port_mtu);
|
||||
|
||||
printf("Sched count: %d\n", dev_port->sched_count);
|
||||
printf("Sched offset: 0x%08x\n", dev_port->sched_offset);
|
||||
printf("Sched stride: 0x%08x\n", dev_port->sched_stride);
|
||||
printf("Sched type: 0x%08x\n", dev_port->sched_type);
|
||||
|
||||
printf("TX MTU: %d\n", mqnic_reg_read32(dev_port->regs, MQNIC_PORT_REG_TX_MTU));
|
||||
printf("RX MTU: %d\n", mqnic_reg_read32(dev_port->regs, MQNIC_PORT_REG_RX_MTU));
|
||||
|
||||
if (dev->phc_count > 0)
|
||||
{
|
||||
printf("TDMA control: 0x%08x\n", mqnic_reg_read32(dev_port->regs, MQNIC_PORT_REG_TDMA_CTRL));
|
||||
|
@ -166,6 +166,7 @@ struct mqnic *mqnic_open(const char *dev_name)
|
||||
|
||||
port->port_id = mqnic_reg_read32(port->regs, MQNIC_PORT_REG_PORT_ID);
|
||||
port->port_features = mqnic_reg_read32(port->regs, MQNIC_PORT_REG_PORT_FEATURES);
|
||||
port->port_mtu = mqnic_reg_read32(port->regs, MQNIC_PORT_REG_PORT_MTU);
|
||||
|
||||
port->sched_count = mqnic_reg_read32(port->regs, MQNIC_PORT_REG_SCHED_COUNT);
|
||||
port->sched_offset = mqnic_reg_read32(port->regs, MQNIC_PORT_REG_SCHED_OFFSET);
|
||||
|
@ -61,6 +61,7 @@ struct mqnic_port {
|
||||
|
||||
uint32_t port_id;
|
||||
uint32_t port_features;
|
||||
uint32_t port_mtu;
|
||||
|
||||
uint32_t sched_count;
|
||||
uint32_t sched_offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user