Lines Matching +full:bus +full:- +full:num

1 /* SPDX-License-Identifier: GPL-2.0
3 * CDX bus public interface
5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
57 * CDX_DEVICE - macro used to describe a specific CDX device
70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with
85 * struct cdx_ops - Callbacks supported by CDX controller.
86 * @bus_enable: enable bus on the controller
87 * @bus_disable: disable bus on the controller
105 * @controller_registered: controller registered with bus
118 * struct cdx_device - CDX device object
127 * @bus_num: Bus number for this CDX device
136 * @is_bus: Is this bus device
137 * @enabled: is this bus enabled
176 #define cdx_resource_start(dev, num) ((dev)->res[(num)].start) argument
177 #define cdx_resource_end(dev, num) ((dev)->res[(num)].end) argument
178 #define cdx_resource_flags(dev, num) ((dev)->res[(num)].flags) argument
179 #define cdx_resource_len(dev, num) \ argument
180 ((cdx_resource_start((dev), (num)) == 0 && \
181 cdx_resource_end((dev), (num)) == \
182 cdx_resource_start((dev), (num))) ? 0 : \
183 (cdx_resource_end((dev), (num)) - \
184 cdx_resource_start((dev), (num)) + 1))
186 * struct cdx_driver - CDX device driver
221 * __cdx_driver_register - registers a CDX device driver
225 * Return: -errno on failure, 0 on success.
231 * cdx_driver_unregister - unregisters a device driver from the
232 * CDX bus.
240 * cdx_dev_reset - Reset CDX device
243 * Return: 0 for success, -errno on failure
248 * cdx_set_master - enables bus-mastering for CDX device
251 * Return: 0 for success, -errno on failure
256 * cdx_clear_master - disables bus-mastering for CDX device
259 * Return: 0 for success, -errno on failure
265 * cdx_enable_msi - Enable MSI for the CDX device.
268 * Return: 0 for success, -errno on failure
273 * cdx_disable_msi - Disable MSI for the CDX device.
282 return -ENODEV; in cdx_enable_msi()