NTB: Add hw.ntb sysctl node
This commit is contained in:
parent
dcd132eeb4
commit
ac0378166c
@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/queue.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/sockio.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/taskqueue.h>
|
||||
#include <net/if.h>
|
||||
#include <net/if_media.h>
|
||||
|
@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/module.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/rman.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <machine/bus.h>
|
||||
@ -232,6 +233,8 @@ static devclass_t ntb_devclass;
|
||||
DRIVER_MODULE(ntb_hw, pci, ntb_pci_driver, ntb_devclass, NULL, NULL);
|
||||
MODULE_VERSION(ntb_hw, 1);
|
||||
|
||||
SYSCTL_NODE(_hw, OID_AUTO, ntb, CTLFLAG_RW, 0, "NTB sysctls");
|
||||
|
||||
/*
|
||||
* OS <-> Driver linkage functions
|
||||
*/
|
||||
|
@ -44,6 +44,8 @@ enum ntb_hw_event {
|
||||
NTB_EVENT_HW_LINK_DOWN,
|
||||
};
|
||||
|
||||
SYSCTL_DECL(_hw_ntb);
|
||||
|
||||
typedef void (*ntb_db_callback)(void *data, int db_num);
|
||||
typedef void (*ntb_event_callback)(void *data, enum ntb_hw_event event);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user