1205354Simp/* $NetBSD: sscom_var.h,v 1.5 2003/08/04 12:28:49 bsh Exp $ */ 2205354Simp 3205354Simp/*- 4205354Simp * Copyright (c) 2002, 2003 Fujitsu Component Limited 5205354Simp * Copyright (c) 2002, 2003 Genetec Corporation 6205354Simp * All rights reserved. 7205354Simp * 8205354Simp * Redistribution and use in source and binary forms, with or without 9205354Simp * modification, are permitted provided that the following conditions 10205354Simp * are met: 11205354Simp * 1. Redistributions of source code must retain the above copyright 12205354Simp * notice, this list of conditions and the following disclaimer. 13205354Simp * 2. Redistributions in binary form must reproduce the above copyright 14205354Simp * notice, this list of conditions and the following disclaimer in the 15205354Simp * documentation and/or other materials provided with the distribution. 16205354Simp * 3. Neither the name of The Fujitsu Component Limited nor the name of 17205354Simp * Genetec corporation may not be used to endorse or promote products 18205354Simp * derived from this software without specific prior written permission. 19205354Simp * 20205354Simp * THIS SOFTWARE IS PROVIDED BY FUJITSU COMPONENT LIMITED AND GENETEC 21205354Simp * CORPORATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 22205354Simp * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 23205354Simp * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24205354Simp * DISCLAIMED. IN NO EVENT SHALL FUJITSU COMPONENT LIMITED OR GENETEC 25205354Simp * CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26205354Simp * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27205354Simp * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 28205354Simp * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29205354Simp * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30205354Simp * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31205354Simp * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32205354Simp * SUCH DAMAGE. 33205354Simp */ 34205354Simp/* derived from sys/dev/ic/comvar.h */ 35205354Simp 36205354Simp/*- 37205354Simp * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 38205354Simp * 39205354Simp * Redistribution and use in source and binary forms, with or without 40205354Simp * modification, are permitted provided that the following conditions 41205354Simp * are met: 42205354Simp * 1. Redistributions of source code must retain the above copyright 43205354Simp * notice, this list of conditions and the following disclaimer. 44205354Simp * 2. Redistributions in binary form must reproduce the above copyright 45205354Simp * notice, this list of conditions and the following disclaimer in the 46205354Simp * documentation and/or other materials provided with the distribution. 47205354Simp * 3. All advertising materials mentioning features or use of this software 48205354Simp * must display the following acknowledgement: 49205354Simp * This product includes software developed by Christopher G. Demetriou 50205354Simp * for the NetBSD Project. 51205354Simp * 4. The name of the author may not be used to endorse or promote products 52205354Simp * derived from this software without specific prior written permission 53205354Simp * 54205354Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 55205354Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 56205354Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 57205354Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 58205354Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 59205354Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 60205354Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 61205354Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 62205354Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 63205354Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 64205354Simp * 65205354Simp * $FreeBSD: releng/10.3/sys/arm/samsung/s3c2xx0/uart_dev_s3c2410.h 205354 2010-03-20 03:39:35Z imp $ 66205354Simp */ 67205354Simp 68205354Simp#ifndef _ARM_S3C2XX0_SSCOM_VAR_H 69205354Simp#define _ARM_S3C2XX0_SSCOM_VAR_H 70205354Simp 71205354Simp 72205354Simp/* Hardware flag masks */ 73205354Simp#define SSCOM_HW_FLOW 0x02 74205354Simp#define SSCOM_HW_DEV_OK 0x04 75205354Simp#define SSCOM_HW_CONSOLE 0x08 76205354Simp#define SSCOM_HW_KGDB 0x10 77205354Simp#define SSCOM_HW_TXINT 0x20 78205354Simp#define SSCOM_HW_RXINT 0x40 79205354Simp 80205354Simp/* Buffer size for character buffer */ 81205354Simp#define SSCOM_RING_SIZE 2048 82205354Simp 83205354Simp#define sscom_rxrdy(iot,ioh) \ 84205354Simp (bus_space_read_1((iot), (ioh), SSCOM_UTRSTAT) & UTRSTAT_RXREADY) 85205354Simp#define sscom_getc(iot,ioh) bus_space_read_1((iot), (ioh), SSCOM_URXH) 86205354Simp#define sscom_geterr(iot,ioh) bus_space_read_1((iot), (ioh), SSCOM_UERSTAT) 87205354Simp 88205354Simp#endif /* _ARM_S3C2XX0_SSCOM_VAR_H */ 89