Add network device driver model, netdev

This commit is contained in:
Scott Feldman
2023-03-28 12:18:59 -07:00
committed by Ron Evans
parent 00b1b4fbfb
commit 276feecc20
128 changed files with 6389 additions and 15539 deletions
+15 -3
View File
@@ -1,5 +1,17 @@
//go:build wifidebug
package wifinina
var _debug = true
type debug uint8
const (
debugBasic debug = 1 << iota // show fw version, mac addr, etc
debugNetdev // show netdev entry points
debugCmd // show non-chatty wifinina cmds
debugDetail // show chatty wifinina cmds
debugOff = 0
debugAll = debugBasic | debugNetdev | debugCmd | debugDetail
)
func debugging(want debug) bool {
return (_debug & want) != 0
}