console.c (177108) | console.c (182723) |
---|---|
1/*- 2 * Copyright (c) 2007 Semihalf, Rafal Jaworowski <raj@semihalf.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007 Semihalf, Rafal Jaworowski <raj@semihalf.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/boot/uboot/lib/console.c 177108 2008-03-12 16:01:34Z raj $"); | 28__FBSDID("$FreeBSD: head/sys/boot/uboot/lib/console.c 182723 2008-09-03 15:39:50Z raj $"); |
29 30#include <stand.h> 31#include "bootstrap.h" | 29 30#include <stand.h> 31#include "bootstrap.h" |
32#include "glue.h" |
|
32 33int console; 34 35static void uboot_cons_probe(struct console *cp); 36static int uboot_cons_init(int); 37static void uboot_cons_putchar(int); 38static int uboot_cons_getchar(void); 39static int uboot_cons_poll(void); --- 15 unchanged lines hidden (view full) --- 55 56 cp->c_flags |= (C_PRESENTIN | C_PRESENTOUT); 57} 58 59static int 60uboot_cons_init(int arg) 61{ 62 | 33 34int console; 35 36static void uboot_cons_probe(struct console *cp); 37static int uboot_cons_init(int); 38static void uboot_cons_putchar(int); 39static int uboot_cons_getchar(void); 40static int uboot_cons_poll(void); --- 15 unchanged lines hidden (view full) --- 56 57 cp->c_flags |= (C_PRESENTIN | C_PRESENTOUT); 58} 59 60static int 61uboot_cons_init(int arg) 62{ 63 |
63 return 0; | 64 return (0); |
64} 65 66static void 67uboot_cons_putchar(int c) 68{ 69 70 if (c == '\n') 71 ub_putc('\r'); --- 17 unchanged lines hidden --- | 65} 66 67static void 68uboot_cons_putchar(int c) 69{ 70 71 if (c == '\n') 72 ub_putc('\r'); --- 17 unchanged lines hidden --- |