Lines Matching +full:on +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
14 * struct cdx_dev_params - CDX device parameters
15 * @cdx: CDX controller associated with the device
16 * @parent: Associated CDX Bus device
17 * @vendor: Vendor ID for CDX device
18 * @device: Device ID for CDX device
19 * @subsys_vendor: Sub vendor ID for CDX device
20 * @subsys_device: Sub device ID for CDX device
21 * @bus_num: Bus number for this CDX device
22 * @dev_num: Device number for this device
25 * @req_id: Requestor ID associated with CDX device
26 * @class: Class of the CDX Device
27 * @revision: Revision of the CDX device
28 * @msi_dev_id: MSI device ID associated with CDX device
29 * @num_msi: Number of MSI's supported by the device
33 struct device *parent;
35 u16 device; member
50 * cdx_register_controller - Register a CDX controller and its ports
51 * on the CDX bus.
54 * Return: -errno on failure, 0 on success.
59 * cdx_unregister_controller - Unregister a CDX controller
65 * cdx_device_add - Add a CDX device. This function adds a CDX device
66 * on the CDX bus as per the device parameters provided
68 * Linux generic device.
69 * @dev_params: device parameters associated with the device to be created.
71 * Return: -errno on failure, 0 on success.
76 * cdx_bus_add - Add a CDX bus. This function adds a bus on the CDX bus
77 * subsystem. It creates a CDX device for the corresponding bus and
78 * also registers an associated Linux generic device.
82 * Return: associated Linux generic device pointer on success or NULL on failure.
84 struct device *cdx_bus_add(struct cdx_controller *cdx, u8 bus_num);
87 * cdx_msi_domain_init - Init the CDX bus MSI domain.
88 * @dev: Device of the CDX bus controller
90 * Return: CDX MSI domain, NULL on failure
92 struct irq_domain *cdx_msi_domain_init(struct device *dev);