exynos4210_uart.c (6c6076662d98c068059983d411cb2a8987ba5670) exynos4210_uart.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7)
1/*
2 * Exynos4210 UART Emulation
3 *
4 * Copyright (C) 2011 Samsung Electronics Co Ltd.
5 * Maksim Kozlov, <m.kozlov@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the

--- 586 unchanged lines hidden (view full) ---

595 dev = qdev_create(NULL, TYPE_EXYNOS4210_UART);
596
597 if (!chr) {
598 if (channel >= MAX_SERIAL_PORTS) {
599 error_report("Only %d serial ports are supported by QEMU",
600 MAX_SERIAL_PORTS);
601 exit(1);
602 }
1/*
2 * Exynos4210 UART Emulation
3 *
4 * Copyright (C) 2011 Samsung Electronics Co Ltd.
5 * Maksim Kozlov, <m.kozlov@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the

--- 586 unchanged lines hidden (view full) ---

595 dev = qdev_create(NULL, TYPE_EXYNOS4210_UART);
596
597 if (!chr) {
598 if (channel >= MAX_SERIAL_PORTS) {
599 error_report("Only %d serial ports are supported by QEMU",
600 MAX_SERIAL_PORTS);
601 exit(1);
602 }
603 chr = serial_hds[channel];
603 chr = serial_hd(channel);
604 if (!chr) {
605 snprintf(label, ARRAY_SIZE(label), "%s%d", chr_name, channel);
606 chr = qemu_chr_new(label, "null");
607 if (!(chr)) {
608 error_report("Can't assign serial port to UART%d", channel);
609 exit(1);
610 }
611 }

--- 71 unchanged lines hidden ---
604 if (!chr) {
605 snprintf(label, ARRAY_SIZE(label), "%s%d", chr_name, channel);
606 chr = qemu_chr_new(label, "null");
607 if (!(chr)) {
608 error_report("Can't assign serial port to UART%d", channel);
609 exit(1);
610 }
611 }

--- 71 unchanged lines hidden ---