Path: blob/master/arch/arm/mach-ixp2000/include/mach/uncompress.h
10820 views
/*1* arch/arm/mach-ixp2000/include/mach/uncompress.h2*3*4* Original Author: Naeem Afzal <[email protected]>5* Maintainer: Deepak Saxena <[email protected]>6*7* Copyright 2002 Intel Corp.8*9* This program is free software; you can redistribute it and/or modify it10* under the terms of the GNU General Public License as published by the11* Free Software Foundation; either version 2 of the License, or (at your12* option) any later version.13*14*/1516#include <linux/serial_reg.h>1718#define UART_BASE 0xc00300001920#define PHYS(x) ((volatile unsigned long *)(UART_BASE + x))2122#define UARTDR PHYS(0x00) /* Transmit reg dlab=0 */23#define UARTDLL PHYS(0x00) /* Divisor Latch reg dlab=1*/24#define UARTDLM PHYS(0x04) /* Divisor Latch reg dlab=1*/25#define UARTIER PHYS(0x04) /* Interrupt enable reg */26#define UARTFCR PHYS(0x08) /* FIFO control reg dlab =0*/27#define UARTLCR PHYS(0x0c) /* Control reg */28#define UARTSR PHYS(0x14) /* Status reg */293031static inline void putc(int c)32{33int j = 0x1000;3435while (--j && !(*UARTSR & UART_LSR_THRE))36barrier();3738*UARTDR = c;39}4041static inline void flush(void)42{43}4445#define arch_decomp_setup()46#define arch_decomp_wdog()474849