/* SPDX-License-Identifier: GPL-2.0 */ #ifndef LINUX_MSI_API_H #define LINUX_MSI_API_H /* * APIs which are relevant for device driver code for allocating and * freeing MSI interrupts and querying the associations between * hardware/software MSI indices and the Linux interrupt number. */ struct device; /* * Per device interrupt domain related constants. */ enum msi_domain_ids { MSI_DEFAULT_DOMAIN, MSI_MAX_DEVICE_IRQDOMAINS, }; /** * union msi_instance_cookie - MSI instance cookie * @value: u64 value store * @ptr: Pointer to usage site specific data * * This cookie is handed to the IMS allocation function and stored in the * MSI descriptor for the interrupt chip callbacks. * * The content of this cookie is MSI domain implementation defined. For * PCI/IMS implementations this could be a PASID or a pointer to queue * memory. */ union msi_instance_cookie { u64 value; void *ptr; }; /** * msi_map - Mapping between MSI index and Linux interrupt number * @index: The MSI index, e.g. slot in the MSI-X table or * a software managed index if >= 0. If negative * the allocation function failed and it contains * the error code. * @virq: The associated Linux interrupt number */ struct msi_map { int index; int virq; }; /* * Constant to be used for dynamic allocations when the allocation is any * free MSI index, which is either an entry in a hardware table or a * software managed index. */ #define MSI_ANY_INDEX UINT_MAX unsigned int msi_domain_get_virq(struct device *dev, unsigned int domid, unsigned int index); /** * msi_get_virq - Lookup the Linux interrupt number for a MSI index on the default interrupt domain * @dev: Device for which the lookup happens * @index: The MSI index to lookup * * Return: The Linux interrupt number on success (> 0), 0 if not found */ static inline unsigned int msi_get_virq(struct device *dev, unsigned int index) { return msi_domain_get_virq(dev, MSI_DEFAULT_DOMAIN, index); } #endif nux-2.6.29.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/include/ufs/ufshcd.h
AgeCommit message (Expand)Author
2023-03-03Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2023-02-22Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2023-02-21scsi: ufs: core: Initialize devfreq synchronouslyAdrien Thierry
2023-02-08scsi: ufs: core: Add hibernation callbacksAnjana Hari
2023-01-23scsi: ufs: exynos: Fix DMA alignment for PAGE_SIZE != 4096Bart Van Assche
2023-01-18scsi: ufs: core: Fix devfreq deadlocksJohan Hovold
2023-01-13scsi: ufs: core: mcq: Add Event Specific Interrupt enable and config functionsCan Guo
2023-01-13scsi: ufs: core: Add Event Specific Interrupt configuration vendor specific opsCan Guo
2023-01-13scsi: ufs: core: mcq: Add completion support in pollAsutosh Das
2023-01-13scsi: ufs: mcq: Add completion support of a CQEAsutosh Das
2023-01-13scsi: ufs: core: Prepare ufshcd_send_command() for MCQAsutosh Das
2023-01-13scsi: ufs: core: mcq: Configure operation and runtime interfaceAsutosh Das
2023-01-13scsi: ufs: core: mcq: Allocate memory for MCQ modeAsutosh Das
2023-01-13scsi: ufs: core: mcq: Calculate queue depthAsutosh Das
2023-01-13scsi: ufs: core: mcq: Configure resource regionsAsutosh Das
2023-01-13scsi: ufs: core: mcq: Add support to allocate multiple queuesAsutosh Das
2023-01-13scsi: ufs: core: Defer adding host to SCSI if MCQ is supportedAsutosh Das
2023-01-13scsi: ufs: core: Introduce multi-circular queue capabilityAsutosh Das
2023-01-13scsi: ufs: core: Probe for EXT_IID supportAsutosh Das
2023-01-11scsi: core: Fix invisible definition compilation warningBean Huo
2023-01-11scsi: ufs: core: Add support for reinitializing the UFS deviceManivannan Sadhasivam
2023-01-11scsi: ufs: core: Add reinit_notify() callbackManivannan Sadhasivam
2022-12-30Merge patch series "scsi: ufs: core: Always read the descriptors with max len...Martin K. Petersen
2022-12-30scsi: ufs: core: Remove redundant desc_size variable from hbaArthur Simchaev
2022-12-30Merge patch series "Prepare for upstreaming Pixel 6 and 7 UFS support"Martin K. Petersen
2022-12-30scsi: ufs: core: Allow UFS host drivers to override the sg entry sizeEric Biggers
2022-12-30scsi: ufs: core: bsg: Add advanced RPMB support in ufs_bsgBean Huo
2022-11-08scsi: ufs: core: Remove check_upiu_size() from ufshcd.hKeoseong Park
2022-10-22scsi: ufs: Track system suspend / resume activityBart Van Assche
2022-09-25scsi: ufs: core: Remove redundant function definitions from ufshcd.hArthur Simchaev
2022-08-22scsi: ufs: wb: Add explicit flush sysfs attributeJinyoung Choi
2022-08-22scsi: ufs: core: Allow host driver to disable wb toggling during clock scalingPeter Wang
2022-08-22scsi: ufs: core: Use local_clock() for debugging timestampsDaniil Lunev
2022-06-27scsi: ufs: ufshcd: Constify pointed dataKrzysztof Kozlowski
2022-06-16scsi: ufs: Export regulator functionsStanley Chu
2022-06-16scsi: ufs: Export ufshcd_uic_change_pwr_mode()Stanley Chu
2022-06-13scsi: ufs: core: Add UFSHCD_QUIRK_HIBERN_FASTAUTOYoshihiro Shimoda
2022-06-13scsi: ufs: core: Add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESSYoshihiro Shimoda
2022-05-19scsi: ufs: Split the drivers/scsi/ufs directoryBart Van Assche