PCI: endpoint: Add BME notifier support
Add support to notify the EPF device about the Bus Master Enable (BME)
event received by the EPC device from the Root complex.
Usage:
======
EPC
---
```
static irqreturn_t pcie_ep_irq(int irq, void *data)
{
...
case PCIE_EP_INT_BME:
pci_epc_bme_notify(epc);
break;
...
}
```
EPF
---
```
static int pci_epf_notifier(struct notifier_block *nb, unsigned long val,
void *data)
{
...
case BME:
/* Handle BME event */
break;
...
}
```
Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Loading
Please sign in to comment