Commit Graph

5 Commits

Author SHA1 Message Date
Michel Pollet
cdca612df2 Added a mii_cycle_t type
Instead of using the sub-standard __int128

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 16:57:04 +01:00
Michel Pollet
3ee2a36d38 mish: Removed globals.
Removed big horrible global used by mish commands, now use the parameter
made for it.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:29:41 +01:00
Michel Pollet
5d0abefadf Added mii_dispose() -- clean up everything
Seems there are no leaks; only blocks left non-freed are the queue of
drivers, which is static anyway

Also added a MII_TERMINATE state to quit any 'main' loop.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:25:43 +01:00
Michel Pollet
73059bfd93 sw: Added a big soft switch bitfield
These are fetched often, so might as well cache them into a bitfield,
also removed the old BSR state, as it might as well be in that bitfield.

Converted all the user of these soft switches to this new bitfield.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-28 06:23:02 +01:00
Michel Pollet
f7a56ebc01 Initial Commit
Cleaned up for release at last!

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 08:50:14 +01:00