Date: Fri, 8 May 2020 15:02:57 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: Mori Hiroki <yamori813@yahoo.co.jp> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: can not get mib from ar8316 on etherswitch Message-ID: <CAJ-VmontVzN_FM8PjvQcxTqbXzwQuiBxgND5JCDdCNFr7VCXHA@mail.gmail.com> In-Reply-To: <1913964975.170961.1585956280139.JavaMail.yahoo@mail.yahoo.co.jp> References: <1126553482.4132161.1585714894446.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1126553482.4132161.1585714894446.JavaMail.yahoo@mail.yahoo.co.jp> <1913964975.170961.1585956280139.JavaMail.yahoo@mail.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
hi! I can change the API to 32 bits. lemme do that on my test devices at home! -adrian On Fri, 3 Apr 2020 at 18:31, Mori Hiroki <yamori813@yahoo.co.jp> wrote: > > Hi > > I think this change have no compatibility. > But Atheros switch code use 32Bit address > value at register access. > > I make get mib script by mruby for AR8316 and RTL8366. > > https://github.com/ZRouter/ZRouter/tree/yamori813_modify/profiles/estools/files/usr/local/bin > > > I use this script on bsnmp-ucd. > > > ----- Original Message ----- > > From: Mori Hiroki <yamori813@yahoo.co.jp> > > To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> > > Cc: > > Date: 2020/4/1, Wed 13:21 > > Subject: can not get mib from ar8316 on etherswitch > > > > 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 > > > > _______________________________________________ > > freebsd-mips@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to > > "freebsd-mips-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmontVzN_FM8PjvQcxTqbXzwQuiBxgND5JCDdCNFr7VCXHA>