1*290a34a0Smatt /* $NetBSD: rmixl_comvar.h,v 1.2 2009/12/14 00:46:07 matt Exp $ */ 2*290a34a0Smatt 3*290a34a0Smatt /*- 4*290a34a0Smatt * Copyright (c) 2009 The NetBSD Foundation, Inc. 5*290a34a0Smatt * All rights reserved. 6*290a34a0Smatt * 7*290a34a0Smatt * This code is derived from software contributed to The NetBSD Foundation 8*290a34a0Smatt * by CCCCCCCC NNNNNNNNNN 9*290a34a0Smatt * 10*290a34a0Smatt * Redistribution and use in source and binary forms, with or without 11*290a34a0Smatt * modification, are permitted provided that the following conditions 12*290a34a0Smatt * are met: 13*290a34a0Smatt * 1. Redistributions of source code must retain the above copyright 14*290a34a0Smatt * notice, this list of conditions and the following disclaimer. 15*290a34a0Smatt * 2. Redistributions in binary form must reproduce the above copyright 16*290a34a0Smatt * notice, this list of conditions and the following disclaimer in the 17*290a34a0Smatt * documentation and/or other materials provided with the distribution. 18*290a34a0Smatt * 19*290a34a0Smatt * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*290a34a0Smatt * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*290a34a0Smatt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*290a34a0Smatt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*290a34a0Smatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*290a34a0Smatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*290a34a0Smatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*290a34a0Smatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*290a34a0Smatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*290a34a0Smatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*290a34a0Smatt * POSSIBILITY OF SUCH DAMAGE. 30*290a34a0Smatt */ 31*290a34a0Smatt 32*290a34a0Smatt #ifndef _MIPS_RMI_RMIXL_COMVAR_H_ 33*290a34a0Smatt #define _MIPS_RMI_RMIXL_COMVAR_H_ 34*290a34a0Smatt 35*290a34a0Smatt #include <sys/bus.h> 36*290a34a0Smatt 37*290a34a0Smatt extern void rmixl_com_cnattach(bus_addr_t addr, int speed, int freq, int type, tcflag_t mode); 38*290a34a0Smatt 39*290a34a0Smatt void rmixl_putchar_init(uint64_t); /* XXX DEBUG */ 40*290a34a0Smatt void rmixl_putchar(char c); /* XXX DEBUG */ 41*290a34a0Smatt void rmixl_puts(const char *restrict); /* XXX DEBUG */ 42*290a34a0Smatt void rmixl_puthex32(uint32_t); /* XXX DEBUG */ 43*290a34a0Smatt void rmixl_puthex64(uint64_t); /* XXX DEBUG */ 44*290a34a0Smatt 45*290a34a0Smatt #endif /* _MIPS_RMI_RMIXL_COMVAR_H_ */ 46