Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pci_ivshmem.c: ivshmem_support_irq API support #14124

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions drivers/pci/pci_ivshmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,19 @@ int ivshmem_control_irq(FAR struct ivshmem_device_s *dev, bool on)
return OK;
}

/****************************************************************************
* Name: ivshmem_support_irq
*
* Description:
* Judge if support ivshmem interrupt
*
****************************************************************************/

bool ivshmem_support_irq(FAR struct ivshmem_device_s *dev)
{
return dev->vmid != IVSHMEM_INVALID_VMID;
}

/****************************************************************************
* Name: ivshmem_kick_peer
*
Expand Down
10 changes: 10 additions & 0 deletions include/nuttx/pci/pci_ivshmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ int ivshmem_detach_irq(FAR struct ivshmem_device_s *dev);

int ivshmem_control_irq(FAR struct ivshmem_device_s *dev, bool on);

/****************************************************************************
* Name: ivshmem_support_irq
*
* Description:
* judge if support ivshmem interrupt
*
****************************************************************************/

bool ivshmem_support_irq(FAR struct ivshmem_device_s *dev);

/****************************************************************************
* Name: ivshmem_kick_peer
*
Expand Down
Loading