sh_ipl.h revision 1.1
11.1Suwe/* $NetBSD: sh_ipl.h,v 1.1 2025/11/17 19:09:58 uwe Exp $ */
21.1Suwe/*
31.1Suwe * Copyright (c) 2025 Valery Ushakov
41.1Suwe * All rights reserved.
51.1Suwe *
61.1Suwe * Redistribution and use in source and binary forms, with or without
71.1Suwe * modification, are permitted provided that the following conditions
81.1Suwe * are met:
91.1Suwe * 1. Redistributions of source code must retain the above copyright
101.1Suwe *    notice, this list of conditions and the following disclaimer.
111.1Suwe * 2. Redistributions in binary form must reproduce the above copyright
121.1Suwe *    notice, this list of conditions and the following disclaimer in the
131.1Suwe *    documentation and/or other materials provided with the distribution.
141.1Suwe *
151.1Suwe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
161.1Suwe * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
171.1Suwe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
181.1Suwe * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
191.1Suwe * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
201.1Suwe * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
211.1Suwe * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
221.1Suwe * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
231.1Suwe * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
241.1Suwe * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251.1Suwe */
261.1Suwe
271.1Suwe#ifndef _SH3_SH_IPL_H_
281.1Suwe#define _SH3_SH_IPL_H_
291.1Suwe
301.1Suwe#define SH_IPL_BIOS_TRAP	0x3f
311.1Suwe#define     SH_IPL_WRITE	    0
321.1Suwe#define     SH_IPL_GET_CONFIG	    3
331.1Suwe#define     SH_IPL_GET_RAM_SIZE	    4
341.1Suwe#define     SH_IPL_PUTC		    31
351.1Suwe#define     SH_IPL_PUTS		    32
361.1Suwe
371.1Suwe#ifndef _LOCORE
381.1Suwe
391.1Suwevoid sh_ipl_write(const char *buf, unsigned int len);
401.1Suweunsigned int sh_ipl_get_config(void);
411.1Suweint sh_ipl_get_ram_size(void);
421.1Suwevoid sh_ipl_putc(char c);
431.1Suwevoid sh_ipl_puts(const char *s);
441.1Suwe
451.1Suwe#endif /* !_LOCORE */
461.1Suwe#endif /* _SH3_SH_IPL_H_ */
47