diff options
Diffstat (limited to 'arch/linux/lib/common.c')
-rw-r--r-- | arch/linux/lib/common.c | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/arch/linux/lib/common.c b/arch/linux/lib/common.c index 99cbc98fc1..6416a54381 100644 --- a/arch/linux/lib/common.c +++ b/arch/linux/lib/common.c @@ -1,4 +1,29 @@ - +/* + * common.c - common wrapper functions between U-Boot and the host + * + * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * These are host includes. Never include any U-Boot header + * files here... + */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> @@ -12,11 +37,14 @@ #include <string.h> #include <libgen.h> #include <sys/mman.h> -#include <asm/arch/linux.h> -#include <asm/arch/hostfile.h> #include <errno.h> #include <signal.h> #include <sys/select.h> +/* + * ...except the ones needed to connect with U-Boot + */ +#include <asm/arch/linux.h> +#include <asm/arch/hostfile.h> static struct termios term_orig, term_vi; static char erase_char; /* the users erase character */ |