11.1Stsutsui/* $NetBSD: iris_zs.h,v 1.1 2019/01/12 16:44:47 tsutsui Exp $ */ 21.1Stsutsui 31.1Stsutsui/* 41.1Stsutsui * Copyright (c) 2018 Naruaki Etomi 51.1Stsutsui * All rights reserved. 61.1Stsutsui * 71.1Stsutsui * Redistribution and use in source and binary forms, with or without 81.1Stsutsui * modification, are permitted provided that the following conditions 91.1Stsutsui * are met: 101.1Stsutsui * 1. Redistributions of source code must retain the above copyright 111.1Stsutsui * notice, this list of conditions and the following disclaimer. 121.1Stsutsui * 2. Redistributions in binary form must reproduce the above copyright 131.1Stsutsui * notice, this list of conditions and the following disclaimer in the 141.1Stsutsui * documentation and/or other materials provided with the distribution. 151.1Stsutsui * 161.1Stsutsui * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171.1Stsutsui * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181.1Stsutsui * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191.1Stsutsui * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201.1Stsutsui * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 211.1Stsutsui * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221.1Stsutsui * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231.1Stsutsui * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241.1Stsutsui * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 251.1Stsutsui * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261.1Stsutsui */ 271.1Stsutsui 281.1Stsutsui/* 291.1Stsutsui * Silicon Graphics "IRIS" series MIPS processors machine bootloader. 301.1Stsutsui */ 311.1Stsutsui 321.1Stsutsui/* The layout of this is hardware-dependent (padding, order). */ 331.1Stsutsuistruct zschan { 341.1Stsutsui uint8_t pad1[3]; 351.1Stsutsui volatile uint8_t zc_csr; /* ctrl,status, and indirect access */ 361.1Stsutsui uint8_t pad2[3]; 371.1Stsutsui volatile uint8_t zc_data; /* data */ 381.1Stsutsui}; 391.1Stsutsui 401.1Stsutsuistruct zsdevice { 411.1Stsutsui struct zschan zs_chan_b; 421.1Stsutsui struct zschan zs_chan_a; 431.1Stsutsui}; 441.1Stsutsui 451.1Stsutsuivoid *zs_init(int, int); 461.1Stsutsuiint zscngetc(void *); 471.1Stsutsuivoid zscnputc(void *, int); 481.1Stsutsuiint zscnscanc(void *); 49