diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-26 15:44:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-27 08:06:53 +0100 |
commit | a7267241a9ace0f8c1c1c9a9ee1721e04313aa91 (patch) | |
tree | 7d5a93f6339e164d19fbb6890af910e2d2101734 /bsps/sparc/shared/pci/gr_leon4_n2x.c | |
parent | Add LICENSE.BSD-2-Clause (diff) | |
download | rtems-a7267241a9ace0f8c1c1c9a9ee1721e04313aa91.tar.bz2 |
bsps/sparc: Add and use <grlib_impl.h>
Reduce copy and paste.
Diffstat (limited to '')
-rw-r--r-- | bsps/sparc/shared/pci/gr_leon4_n2x.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/bsps/sparc/shared/pci/gr_leon4_n2x.c b/bsps/sparc/shared/pci/gr_leon4_n2x.c index c97c0b8cf5..76e2bb0b28 100644 --- a/bsps/sparc/shared/pci/gr_leon4_n2x.c +++ b/bsps/sparc/shared/pci/gr_leon4_n2x.c @@ -32,7 +32,6 @@ #include <bsp.h> #include <rtems/bspIo.h> -#include <rtems/score/isrlock.h> /* spin-lock */ #include <pci.h> #include <ambapp.h> @@ -45,15 +44,7 @@ #include <bsp/gr_leon4_n2x.h> -/* map via rtems_interrupt_lock_* API: */ -#define SPIN_DECLARE(lock) RTEMS_INTERRUPT_LOCK_MEMBER(lock) -#define SPIN_INIT(lock, name) rtems_interrupt_lock_initialize(lock, name) -#define SPIN_LOCK(lock, level) rtems_interrupt_lock_acquire_isr(lock, &level) -#define SPIN_LOCK_IRQ(lock, level) rtems_interrupt_lock_acquire(lock, &level) -#define SPIN_UNLOCK(lock, level) rtems_interrupt_lock_release_isr(lock, &level) -#define SPIN_UNLOCK_IRQ(lock, level) rtems_interrupt_lock_release(lock, &level) -#define SPIN_IRQFLAGS(k) rtems_interrupt_lock_context k -#define SPIN_ISR_IRQFLAGS(k) SPIN_IRQFLAGS(k) +#include <grlib_impl.h> /* Determines which PCI address the AHB masters on the LEON-N2X board will * access when accessing the AHB to PCI window, it should be set so that the |