mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
There's no need export the device interface methods of miibus(4).
This commit is contained in:
parent
99172ab4b8
commit
dcf47c2ba5
2 changed files with 6 additions and 7 deletions
|
|
@ -56,10 +56,13 @@ MODULE_VERSION(miibus, 1);
|
|||
|
||||
#include "miibus_if.h"
|
||||
|
||||
static device_attach_t miibus_attach;
|
||||
static bus_child_location_str_t miibus_child_location_str;
|
||||
static bus_child_pnpinfo_str_t miibus_child_pnpinfo_str;
|
||||
static device_detach_t miibus_detach;
|
||||
static bus_hinted_child_t miibus_hinted_child;
|
||||
static bus_print_child_t miibus_print_child;
|
||||
static device_probe_t miibus_probe;
|
||||
static bus_read_ivar_t miibus_read_ivar;
|
||||
static miibus_readreg_t miibus_readreg;
|
||||
static miibus_statchg_t miibus_statchg;
|
||||
|
|
@ -110,7 +113,7 @@ struct miibus_ivars {
|
|||
u_int mii_offset;
|
||||
};
|
||||
|
||||
int
|
||||
static int
|
||||
miibus_probe(device_t dev)
|
||||
{
|
||||
|
||||
|
|
@ -119,7 +122,7 @@ miibus_probe(device_t dev)
|
|||
return (BUS_PROBE_SPECIFIC);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
miibus_attach(device_t dev)
|
||||
{
|
||||
struct miibus_ivars *ivars;
|
||||
|
|
@ -151,7 +154,7 @@ miibus_attach(device_t dev)
|
|||
return (bus_generic_attach(dev));
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
miibus_detach(device_t dev)
|
||||
{
|
||||
struct mii_data *mii;
|
||||
|
|
|
|||
|
|
@ -246,10 +246,6 @@ MIIBUS_ACCESSOR(flags, FLAGS, u_int)
|
|||
extern devclass_t miibus_devclass;
|
||||
extern driver_t miibus_driver;
|
||||
|
||||
int miibus_probe(device_t);
|
||||
int miibus_attach(device_t);
|
||||
int miibus_detach(device_t);
|
||||
|
||||
int mii_attach(device_t, device_t *, struct ifnet *, ifm_change_cb_t,
|
||||
ifm_stat_cb_t, int, int, int, int);
|
||||
void mii_down(struct mii_data *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue