[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2913e1bf-819e-4edb-8721-5b123e6c6c55@lunn.ch>
Date: Sat, 7 Oct 2023 17:39:51 +0200
From: Andrew Lunn <andrew@...n.ch>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: tmgross@...ch.edu, netdev@...r.kernel.org,
rust-for-linux@...r.kernel.org, miguel.ojeda.sandonis@...il.com,
greg@...ah.com
Subject: Re: [PATCH v2 3/3] net: phy: add Rust Asix PHY driver
> reexporting all the BMCR_ values by hand doesn't sound fun. Can we
> automaticall generate such?
The C22 address space only have a max of 32, and no more are expected.
C45 address space can have in theory 32 x 65536, although in practice
it is sparsely populated. But new values are added every so often. So
generated at build time from the #defines would be better.
Andrew
Powered by blists - more mailing lists