Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2020 08:24:40 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: can not get mib from ar8316 on etherswitch
Message-ID:  <1913964975.170961.1585956280139.JavaMail.yahoo@mail.yahoo.co.jp>
In-Reply-To: <1126553482.4132161.1585714894446.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>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

I think this change have no compatibility.
But Atheros switch code use 32Bit address=C2=A0
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/f=
iles/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:=20
> Date: 2020/4/1, Wed 13:21
> Subject: can not get mib from ar8316 on etherswitch
>=20
> Hi
>=20
> I try to get mib from AR8316. But I can not get value.
>=20
> AR8316 mib start from 0x20000. This is over 16bit.
>=20
> But member is only 16Bit in=C2=A0sys/dev/etherswitch/etherswitch.h.
>=20
> struct etherswitch_reg {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0uint16_t=C2=A0 =C2=A0 =C2=A0 =C2=A0 reg;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t=C2=A0 =C2=A0 =C2=A0 =C2=A0 val;
>=20
> };
>=20
> I think good that is change to=C2=A0uint32_t at reg.
>=20
> Do you think this ?
>=20
> Thanks
>=20
> Hiroki Mori
>=20
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-mips=20
> To unsubscribe, send any mail to=20
> "freebsd-mips-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1913964975.170961.1585956280139.JavaMail.yahoo>