FreeBSD/sys/dev/bwn/if_bwn_phy_n.c
/*
 * This module is always compiled into the kernel, regardless of
 * whether the GPL PHY is enabled.  If the GPL PHY isn't enabled
 * then it'll just be stubs that will fail to attach.
 */
This module is always compiled into the kernel, regardless of
whether the GPL PHY is enabled.  If the GPL PHY isn't enabled
then it'll just be stubs that will fail to attach.
This module is always compiled into the kernel regardless of whether the GPL PHY is enabled . If the GPL PHY isn ' t enabled then it ' ll just be stubs that will fail to attach .
int
bwn_phy_n_attach(struct bwn_mac *mac)
{
#ifdef	BWN_GPL_PHY
	return bwn_nphy_op_allocate(mac);
#else
	device_printf(mac->mac_sc->sc_dev,
	    "%s: BWN_GPL_PHY not in kernel config; "
	    "no PHY-N support\n", __func__);
	return (ENXIO);
#endif
}
int bwn_phy_n_attach ( struct bwn_mac * mac ) { #ifdef BWN_GPL_PHY return bwn_nphy_op_allocate ( mac ) ; #else device_printf ( mac -> mac_sc -> sc_dev , " " " \n " , __func__ ) ; return ( ENXIO ) ; #endif }
This module is always compiled into the kernel, regardless of
 whether the GPL PHY is enabled.
This module is always compiled into the kernel regardless of whether the GPL PHY is enabled .