FreeBSD/sys/dev/vxge/vxge.c
/*
 * vxge_media_init
 * Initializes, adds and sets media
 */
vxge_media_init
Initializes, adds and sets media
vxge_media_init Initializes adds and sets media
void
vxge_media_init(vxge_dev_t *vdev)
{
	ifmedia_init(&vdev->media,
	    IFM_IMASK, vxge_media_change, vxge_media_status);
	ifmedia_add(&vdev->media,
	    IFM_ETHER | vdev->ifm_optics | IFM_FDX,
	    0, NULL);
	ifmedia_add(&vdev->media, IFM_ETHER | IFM_AUTO, 0, NULL);
	ifmedia_set(&vdev->media, IFM_ETHER | IFM_AUTO);
}
void vxge_media_init ( vxge_dev_t * vdev ) { ifmedia_init ( & vdev -> media , IFM_IMASK , vxge_media_change , vxge_media_status ) ; ifmedia_add ( & vdev -> media , IFM_ETHER | vdev -> ifm_optics | IFM_FDX , 0 , NULL ) ; ifmedia_add ( & vdev -> media , IFM_ETHER | IFM_AUTO , 0 , NULL ) ; ifmedia_set ( & vdev -> media , IFM_ETHER | IFM_AUTO ) ; }
vxge_media_init
 Initializes, adds and sets media
vxge_media_init Initializes adds and sets media
/* Add supported media */ /* Set media */