Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/safe/safe.c
Show All 12 Lines | |||||
static void safe_reset_board(struct safe_softc *); | static void safe_reset_board(struct safe_softc *); | ||||
static void safe_init_board(struct safe_softc *); | static void safe_init_board(struct safe_softc *); | ||||
static void safe_init_pciregs(device_t dev); | static void safe_init_pciregs(device_t dev); | ||||
static void safe_cleanchip(struct safe_softc *); | static void safe_cleanchip(struct safe_softc *); | ||||
static void safe_totalreset(struct safe_softc *); | static void safe_totalreset(struct safe_softc *); | ||||
static int safe_free_entry(struct safe_softc *, struct safe_ringentry *); | static int safe_free_entry(struct safe_softc *, struct safe_ringentry *); | ||||
static SYSCTL_NODE(_hw, OID_AUTO, safe, CTLFLAG_RD, 0, | static SYSCTL_NODE(_hw, OID_AUTO, safe, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"SafeNet driver parameters"); | "SafeNet driver parameters"); | ||||
#ifdef SAFE_DEBUG | #ifdef SAFE_DEBUG | ||||
static void safe_dump_dmastatus(struct safe_softc *, const char *); | static void safe_dump_dmastatus(struct safe_softc *, const char *); | ||||
static void safe_dump_ringstate(struct safe_softc *, const char *); | static void safe_dump_ringstate(struct safe_softc *, const char *); | ||||
static void safe_dump_intrstate(struct safe_softc *, const char *); | static void safe_dump_intrstate(struct safe_softc *, const char *); | ||||
static void safe_dump_request(struct safe_softc *, const char *, | static void safe_dump_request(struct safe_softc *, const char *, | ||||
struct safe_ringentry *); | struct safe_ringentry *); | ||||
Show All 24 Lines | |||||
safe_dump_intrstate(sc, "safe0"); | safe_dump_intrstate(sc, "safe0"); | ||||
else if (strncmp(dmode, "ring", 4) == 0) | else if (strncmp(dmode, "ring", 4) == 0) | ||||
safe_dump_ring(sc, "safe0"); | safe_dump_ring(sc, "safe0"); | ||||
else | else | ||||
return EINVAL; | return EINVAL; | ||||
} | } | ||||
return error; | return error; | ||||
} | } | ||||
SYSCTL_PROC(_hw_safe, OID_AUTO, dump, CTLTYPE_STRING | CTLFLAG_RW, | SYSCTL_PROC(_hw_safe, OID_AUTO, dump, | ||||
0, 0, sysctl_hw_safe_dump, "A", "Dump driver state"); | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, 0, | ||||
sysctl_hw_safe_dump, "A", | |||||
"Dump driver state"); | |||||
#endif /* SAFE_DEBUG */ | #endif /* SAFE_DEBUG */ | ||||
Context not available. |