1 /* $NetBSD: obs405.h,v 1.1.4.4 2005/04/01 14:27:26 skrll Exp $ */
4 * Copyright 2004 Shigeyuki Fukushima.
7 * Written by Shigeyuki Fukushima for The NetBSD Project.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer in the documentation and/or other materials provided
17 * with the distribution.
18 * 3. The name of the author may not be used to endorse or promote
19 * products derived from this software without specific prior
22 * THIS SOFTWARE IS PROVIDED THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
28 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
29 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
32 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
36 #ifndef _EVBPPC_OBS405_H_
37 #define _EVBPPC_OBS405_H_
39 #include <sys/param.h>
40 #include <sys/device.h>
42 #include <powerpc/ibm4xx/ibm405gp.h>
47 #include <sys/termios.h>
50 # define CONADDR IBM405GP_UART0_BASE
53 # define CONSPEED B9600
57 # define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8)
60 #define OBS405_CONADDR (CONADDR)
61 #define OBS405_CONSPEED (CONSPEED)
62 #define OBS405_CONMODE (CONMODE)
66 #include <dev/ic/comreg.h>
69 * extern variables and functions
71 extern void obs405_consinit(int com_freq
);
72 extern void obs405_device_register(struct device
*dev
, void *aux
, int com_freq
);
74 #endif /* _EVBPPC_OBS405_H_ */