/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/arm/mach-sa1100/include/mach/uncompress.h * * (C) 1999 Nicolas Pitre <nico@fluxnic.net> * * Reorganised to be machine independent. */ #include "hardware.h" #define IOMEM(x) (x) /* * The following code assumes the serial port has already been * initialized by the bootloader. We search for the first enabled * port in the most probable order. If you didn't setup a port in * your bootloader then nothing will appear (which might be desired). */ #define UART(x) (*(volatile unsigned long *)(serial_port + (x))) static inline void putc(int c) { unsigned long serial_port; do { serial_port = _Ser3UTCR0; if (UART(UTCR3) & UTCR3_TXE) break; serial_port = _Ser1UTCR0; if (UART(UTCR3) & UTCR3_TXE) break; serial_port = _Ser2UTCR0; if (UART(UTCR3) & UTCR3_TXE) break; return; } while (0); /* wait for space in the UART's transmitter */ while (!(UART(UTSR1) & UTSR1_TNF)) barrier(); /* send the character out. */ UART(UTDR) = c; } static inline void flush(void) { } /* * Nothing to do for these */ #define arch_decomp_setup()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
SA-1100.h | File | 95.64 KB | 0644 |
|
assabet.h | File | 4.32 KB | 0644 |
|
badge4.h | File | 2.47 KB | 0644 |
|
bitfield.h | File | 2.77 KB | 0644 |
|
cerf.h | File | 584 B | 0644 |
|
collie.h | File | 3.39 KB | 0644 |
|
generic.h | File | 27 B | 0644 |
|
h3xxx.h | File | 3.44 KB | 0644 |
|
hardware.h | File | 1.36 KB | 0644 |
|
irqs.h | File | 3.07 KB | 0644 |
|
jornada720.h | File | 959 B | 0644 |
|
memory.h | File | 1.03 KB | 0644 |
|
mtd-xip.h | File | 815 B | 0644 |
|
nanoengine.h | File | 1.74 KB | 0644 |
|
neponset.h | File | 834 B | 0644 |
|
reset.h | File | 534 B | 0644 |
|
shannon.h | File | 1.87 KB | 0644 |
|
simpad.h | File | 5.53 KB | 0644 |
|
uncompress.h | File | 1.09 KB | 0644 |
|