diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-07 19:38:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-12 07:09:11 +0200 |
commit | b46f943c56a3bc5fafaa2ec475577da6fa8f3475 (patch) | |
tree | 7cc3db0cb7b818cc537addb1d225dc61c4898cf7 /c/src/lib/libbsp/powerpc/shared/console/console.inl | |
parent | bsp/beatnik: Avoid RTEMS_RELLDFLAGS (diff) | |
download | rtems-b46f943c56a3bc5fafaa2ec475577da6fa8f3475.tar.bz2 |
bsp/motorola_powerpc: Move polled_io.c
This file was used by this BSP only. Avoid RTEMS_RELLDFLAGS.
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/console/console.inl')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/console/console.inl | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/console/console.inl b/c/src/lib/libbsp/powerpc/shared/console/console.inl deleted file mode 100644 index 177444e870..0000000000 --- a/c/src/lib/libbsp/powerpc/shared/console/console.inl +++ /dev/null @@ -1,49 +0,0 @@ -/* inline routines for console i/o - * - * The purpose of this file is to provide generic inline functions, - * i.e. not using hardcoded base addresses. These are provided by - * the BSP header. - */ - -#include <bsp.h> -#include <stdint.h> - -#define INL_IN_DECL(name,base) \ -static inline unsigned char name(int off) \ -{ \ - return in_8((uint8_t*)(((unsigned long)base) + off)); \ -} - -#define INL_OUT_DECL(name,base) \ -static inline void name(int off, unsigned int val) \ -{ \ - out_8((uint8_t*)(((unsigned long)base) + off), val); \ -} - -#ifdef BSP_UART_IOBASE_COM1 -INL_IN_DECL(com1_inb, BSP_UART_IOBASE_COM1) -INL_OUT_DECL(com1_outb, BSP_UART_IOBASE_COM1) -#endif -#ifdef BSP_UART_IOBASE_COM2 -INL_IN_DECL(com2_inb, BSP_UART_IOBASE_COM2) -INL_OUT_DECL(com2_outb, BSP_UART_IOBASE_COM2) -#endif - -#if defined(BSP_CONSOLE_PORT) -#if (BSP_CONSOLE_PORT == BSP_UART_COM1) && defined(BSP_UART_IOBASE_COM1) -#define INL_CONSOLE_INB com1_inb -#define INL_CONSOLE_OUTB com1_outb -#elif (BSP_CONSOLE_PORT == BSP_UART_COM2) && defined(BSP_UART_IOBASE_COM2) -#define INL_CONSOLE_INB com2_inb -#define INL_CONSOLE_OUTB com2_outb -#endif -#endif - -#ifdef BSP_KBD_IOBASE -INL_IN_DECL(kbd_inb, BSP_KBD_IOBASE) -INL_OUT_DECL(kbd_outb, BSP_KBD_IOBASE) -#endif - -#ifdef BSP_VGA_IOBASE -INL_OUT_DECL(vga_outb, BSP_VGA_IOBASE) -#endif |