mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove unsafe and non-functional DDB functions that I added long ago
for debugging.
This commit is contained in:
parent
c45420ccac
commit
548b549ade
1 changed files with 0 additions and 37 deletions
|
|
@ -4378,40 +4378,3 @@ em_enable_vectors_82574(if_ctx_t ctx)
|
|||
device_printf(dev, "Writing to eeprom: done\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef DDB
|
||||
DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
|
||||
{
|
||||
devclass_t dc;
|
||||
int max_em;
|
||||
|
||||
dc = devclass_find("em");
|
||||
max_em = devclass_get_maxunit(dc);
|
||||
|
||||
for (int index = 0; index < (max_em - 1); index++) {
|
||||
device_t dev;
|
||||
dev = devclass_get_device(dc, index);
|
||||
if (device_get_driver(dev) == &em_driver) {
|
||||
struct adapter *adapter = device_get_softc(dev);
|
||||
em_if_init(adapter->ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
DB_COMMAND(em_dump_queue, em_ddb_dump_queue)
|
||||
{
|
||||
devclass_t dc;
|
||||
int max_em;
|
||||
|
||||
dc = devclass_find("em");
|
||||
max_em = devclass_get_maxunit(dc);
|
||||
|
||||
for (int index = 0; index < (max_em - 1); index++) {
|
||||
device_t dev;
|
||||
dev = devclass_get_device(dc, index);
|
||||
if (device_get_driver(dev) == &em_driver)
|
||||
em_print_debug_info(device_get_softc(dev));
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue