Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/qat_hw/qat_c3xxx/adf_drv.c
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | adf_attach(device_t dev) | ||||
/* Get PPAERUCM values and store */ | /* Get PPAERUCM values and store */ | ||||
ret = adf_aer_store_ppaerucm_reg(dev, hw_data); | ret = adf_aer_store_ppaerucm_reg(dev, hw_data); | ||||
if (ret) | if (ret) | ||||
goto out_err; | goto out_err; | ||||
/* Get Accelerators and Accelerators Engines masks */ | /* Get Accelerators and Accelerators Engines masks */ | ||||
hw_data->accel_mask = hw_data->get_accel_mask(accel_dev); | hw_data->accel_mask = hw_data->get_accel_mask(accel_dev); | ||||
hw_data->ae_mask = hw_data->get_ae_mask(accel_dev); | hw_data->ae_mask = hw_data->get_ae_mask(accel_dev); | ||||
hw_data->admin_ae_mask = hw_data->ae_mask; | |||||
accel_pci_dev->sku = hw_data->get_sku(hw_data); | accel_pci_dev->sku = hw_data->get_sku(hw_data); | ||||
/* If the device has no acceleration engines then ignore it. */ | /* If the device has no acceleration engines then ignore it. */ | ||||
if (!hw_data->accel_mask || !hw_data->ae_mask || | if (!hw_data->accel_mask || !hw_data->ae_mask || | ||||
((~hw_data->ae_mask) & 0x01)) { | ((~hw_data->ae_mask) & 0x01)) { | ||||
device_printf(dev, "No acceleration units found\n"); | device_printf(dev, "No acceleration units found\n"); | ||||
ret = ENXIO; | ret = ENXIO; | ||||
goto out_err; | goto out_err; | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |