init.c (20cd569d7ee8fce24e8753f0f43af6c420557b1f) | init.c (979f6ded93ac5ca0fec2b4c5b7b668c8a2a65e1b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */ 3#include <linux/init.h> 4#include <linux/kernel.h> 5#include <linux/module.h> 6#include <linux/slab.h> 7#include <linux/pci.h> 8#include <linux/interrupt.h> --- 45 unchanged lines hidden (view full) --- 54 .name_prefix = "iax", 55 .type = IDXD_TYPE_IAX, 56 .compl_size = sizeof(struct iax_completion_record), 57 .align = 64, 58 .dev_type = &iax_device_type, 59 .evl_cr_off = offsetof(struct iax_evl_entry, cr), 60 .cr_status_off = offsetof(struct iax_completion_record, status), 61 .cr_result_off = offsetof(struct iax_completion_record, error_code), | 1// SPDX-License-Identifier: GPL-2.0 2/* Copyright(c) 2019 Intel Corporation. All rights rsvd. */ 3#include <linux/init.h> 4#include <linux/kernel.h> 5#include <linux/module.h> 6#include <linux/slab.h> 7#include <linux/pci.h> 8#include <linux/interrupt.h> --- 45 unchanged lines hidden (view full) --- 54 .name_prefix = "iax", 55 .type = IDXD_TYPE_IAX, 56 .compl_size = sizeof(struct iax_completion_record), 57 .align = 64, 58 .dev_type = &iax_device_type, 59 .evl_cr_off = offsetof(struct iax_evl_entry, cr), 60 .cr_status_off = offsetof(struct iax_completion_record, status), 61 .cr_result_off = offsetof(struct iax_completion_record, error_code), |
62 .load_device_defaults = idxd_load_iaa_device_defaults, |
|
62 }, 63}; 64 65static struct pci_device_id idxd_pci_tbl[] = { 66 /* DSA ver 1.0 platforms */ 67 { PCI_DEVICE_DATA(INTEL, DSA_SPR0, &idxd_driver_data[IDXD_TYPE_DSA]) }, 68 69 /* IAX ver 1.0 platforms */ --- 670 unchanged lines hidden (view full) --- 740 741 idxd->hw.version = ioread32(idxd->reg_base + IDXD_VER_OFFSET); 742 rc = idxd_probe(idxd); 743 if (rc) { 744 dev_err(dev, "Intel(R) IDXD DMA Engine init failed\n"); 745 goto err; 746 } 747 | 63 }, 64}; 65 66static struct pci_device_id idxd_pci_tbl[] = { 67 /* DSA ver 1.0 platforms */ 68 { PCI_DEVICE_DATA(INTEL, DSA_SPR0, &idxd_driver_data[IDXD_TYPE_DSA]) }, 69 70 /* IAX ver 1.0 platforms */ --- 670 unchanged lines hidden (view full) --- 741 742 idxd->hw.version = ioread32(idxd->reg_base + IDXD_VER_OFFSET); 743 rc = idxd_probe(idxd); 744 if (rc) { 745 dev_err(dev, "Intel(R) IDXD DMA Engine init failed\n"); 746 goto err; 747 } 748 |
749 if (data->load_device_defaults) { 750 rc = data->load_device_defaults(idxd); 751 if (rc) 752 dev_warn(dev, "IDXD loading device defaults failed\n"); 753 } 754 |
|
748 rc = idxd_register_devices(idxd); 749 if (rc) { 750 dev_err(dev, "IDXD sysfs setup failed\n"); 751 goto err_dev_register; 752 } 753 754 rc = idxd_device_init_debugfs(idxd); 755 if (rc) --- 158 unchanged lines hidden --- | 755 rc = idxd_register_devices(idxd); 756 if (rc) { 757 dev_err(dev, "IDXD sysfs setup failed\n"); 758 goto err_dev_register; 759 } 760 761 rc = idxd_device_init_debugfs(idxd); 762 if (rc) --- 158 unchanged lines hidden --- |