can not get mib from ar8316 on etherswitch

Mori Hiroki yamori813 at yahoo.co.jp
Wed Apr 1 04:22:10 UTC 2020


Hi

I try to get mib from AR8316. But I can not get value.

AR8316 mib start from 0x20000. This is over 16bit.

But member is only 16Bit in sys/dev/etherswitch/etherswitch.h.

struct etherswitch_reg {
        uint16_t        reg;
        uint32_t        val;

};

I think good that is change to uint32_t at reg.

Do you think this ?

Thanks

Hiroki Mori



More information about the freebsd-mips mailing list