[haiku-commits] haiku: hrev56172 - src/libs/compat/openbsd_network/compat/dev/pci

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 9 Jun 2022 19:58:12 +0000 (UTC)

hrev56172 adds 1 changeset to branch 'master'
old head: d13068c14801cf8cd72ad3cbc7354db560332573
new head: 2b609f8f66853463253fa5a53a861c3e0726b0f1
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=2b609f8f6685+%5Ed13068c14801

----------------------------------------------------------------------------

2b609f8f6685: openbsd_network: Add implementation of pci_intr_map.
  
  This is not used anywhere, but X512 will need it for testing
  some things on RISC-V.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev56172
Commit:      2b609f8f66853463253fa5a53a861c3e0726b0f1
URL:         https://git.haiku-os.org/haiku/commit/?id=2b609f8f6685
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Thu Jun  9 19:57:48 2022 UTC

----------------------------------------------------------------------------

1 file changed, 8 insertions(+)
src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h | 8 ++++++++

----------------------------------------------------------------------------

diff --git a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h 
b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h
index 95218d26b7..68e739ebad 100644
--- a/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h
+++ b/src/libs/compat/openbsd_network/compat/dev/pci/pcivar.h
@@ -93,6 +93,14 @@ pci_intr_map_msi(device_t dev, pci_intr_handle_t* ihp)
        return pci_alloc_msi(dev, &count);
 }
 
+static int
+pci_intr_map(device_t dev, pci_intr_handle_t* ihp)
+{
+       // No need to map legacy interrupts.
+       ihp->rid = 0;
+       return 0;
+}
+
 static void*
 pci_intr_establish_openbsd(device_t dev, pci_intr_handle_t ih, int level,
        int(*func)(void*), void* arg, const char* what)


Other related posts:

  • » [haiku-commits] haiku: hrev56172 - src/libs/compat/openbsd_network/compat/dev/pci - waddlesplash