Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/qat_hw/qat_200xx/adf_drv.c
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | device_printf( | ||||
"Clearing PFIEERRUNCSTSR, previous status : %0x\n", | "Clearing PFIEERRUNCSTSR, previous status : %0x\n", | ||||
reg_val); | reg_val); | ||||
pci_write_config(dev, ADF_200XX_PFIEERRUNCSTSR, reg_val, 4); | pci_write_config(dev, ADF_200XX_PFIEERRUNCSTSR, reg_val, 4); | ||||
} | } | ||||
/* 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 125 Lines • Show Last 20 Lines |