FreeBSD/sys/dev/ixl/if_ixlv.c
/*
 * ixlv_attach() helper function; gathers information about
 * the (virtual) hardware for use elsewhere in the driver.
 */
ixlv_attach() helper function; gathers information about
the (virtual) hardware for use elsewhere in the driver.
ixlv_attach () helper function ; gathers information about the ( virtual ) hardware for use elsewhere in the driver .
static void
ixlv_init_hw(struct ixlv_sc *sc)
{
	struct i40e_hw *hw = &sc->hw;
	device_t dev = sc->dev;
	hw->vendor_id = pci_get_vendor(dev);
	hw->device_id = pci_get_device(dev);
	hw->revision_id = pci_read_config(dev, PCIR_REVID, 1);
	hw->subsystem_vendor_id =
	    pci_read_config(dev, PCIR_SUBVEND_0, 2);
	hw->subsystem_device_id =
	    pci_read_config(dev, PCIR_SUBDEV_0, 2);
	hw->bus.device = pci_get_slot(dev);
	hw->bus.func = pci_get_function(dev);
}
static void ixlv_init_hw ( struct ixlv_sc * sc ) { struct i40e_hw * hw = & sc -> hw ; device_t dev = sc -> dev ; hw -> vendor_id = pci_get_vendor ( dev ) ; hw -> device_id = pci_get_device ( dev ) ; hw -> revision_id = pci_read_config ( dev , PCIR_REVID , 1 ) ; hw -> subsystem_vendor_id = pci_read_config ( dev , PCIR_SUBVEND_0 , 2 ) ; hw -> subsystem_device_id = pci_read_config ( dev , PCIR_SUBDEV_0 , 2 ) ; hw -> bus . device = pci_get_slot ( dev ) ; hw -> bus . func = pci_get_function ( dev ) ; }
ixlv_attach() helper function; gathers information about
 the (virtual) hardware for use elsewhere in the driver.
ixlv_attach () helper function ; gathers information about the ( virtual ) hardware for use elsewhere in the driver .
/* Save off the information about this board */