/* vxge_hw_mgmt_device_config - Retrieve device configuration. Get device configuration. Permits to retrieve at run-time configuration values that were used to initialize and configure the device.  */
enum vxge_hw_status vxge_hw_mgmt_device_config(struct __vxge_hw_device *hldev, struct vxge_hw_device_config *dev_config, int size)
/* vxge_hw_mgmt_device_config - Retrieve device configuration. Get device configuration. Permits to retrieve at run-time configuration values that were used to initialize and configure the device.  */
enum vxge_hw_status vxge_hw_mgmt_device_config(struct __vxge_hw_device *hldev, struct vxge_hw_device_config *dev_config, int size)
{
	if ((hldev == NULL) || (hldev->magic != VXGE_HW_DEVICE_MAGIC))
		return VXGE_HW_ERR_INVALID_DEVICE;
	if (size != sizeof(struct vxge_hw_device_config))
		return VXGE_HW_ERR_VERSION_CONFLICT;
	memcpy(dev_config, &hldev->config,
		sizeof(struct vxge_hw_device_config));
	return VXGE_HW_OK;
}