Ignore:
Timestamp:
Nov 26, 2018, 2:44:25 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
06331e4
Parents:
c1864a0a
git-author:
Sebastian Huber <sebastian.huber@…> (11/26/18 14:44:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/27/18 07:06:53)
Message:

bsps/sparc: Add and use <grlib_impl.h>

Reduce copy and paste.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/pci/gr_cpci_gr740.c

    rc1864a0a ra7267241  
    3434#include <bsp.h>
    3535#include <rtems/bspIo.h>
    36 #include <rtems/score/isrlock.h> /* spin-lock */
    3736#include <pci.h>
    3837
     
    4746#include <bsp/gr_cpci_gr740.h>
    4847
    49 /* map via rtems_interrupt_lock_* API: */
    50 #define SPIN_DECLARE(lock) RTEMS_INTERRUPT_LOCK_MEMBER(lock)
    51 #define SPIN_INIT(lock, name) rtems_interrupt_lock_initialize(lock, name)
    52 #define SPIN_LOCK(lock, level) rtems_interrupt_lock_acquire_isr(lock, &level)
    53 #define SPIN_LOCK_IRQ(lock, level) rtems_interrupt_lock_acquire(lock, &level)
    54 #define SPIN_UNLOCK(lock, level) rtems_interrupt_lock_release_isr(lock, &level)
    55 #define SPIN_UNLOCK_IRQ(lock, level) rtems_interrupt_lock_release(lock, &level)
    56 #define SPIN_IRQFLAGS(k) rtems_interrupt_lock_context k
    57 #define SPIN_ISR_IRQFLAGS(k) SPIN_IRQFLAGS(k)
     48#include <grlib_impl.h>
    5849
    5950/* Determines which PCI address the AHB masters on the GR740 board will
Note: See TracChangeset for help on using the changeset viewer.