11.1Srin/*	$NetBSD: eficpufunc.h,v 1.1 2023/07/24 01:56:59 rin Exp $	*/
21.1Srin
31.1Srin/*-
41.1Srin * Copyright (c) 2007 The NetBSD Foundation, Inc.
51.1Srin * All rights reserved.
61.1Srin *
71.1Srin * This code is derived from software contributed to The NetBSD Foundation
81.1Srin * by Andrew Doran.
91.1Srin *
101.1Srin * Redistribution and use in source and binary forms, with or without
111.1Srin * modification, are permitted provided that the following conditions
121.1Srin * are met:
131.1Srin * 1. Redistributions of source code must retain the above copyright
141.1Srin *    notice, this list of conditions and the following disclaimer.
151.1Srin * 2. Redistributions in binary form must reproduce the above copyright
161.1Srin *    notice, this list of conditions and the following disclaimer in the
171.1Srin *    documentation and/or other materials provided with the distribution.
181.1Srin *
191.1Srin * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Srin * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Srin * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Srin * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Srin * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Srin * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Srin * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Srin * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Srin * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Srin * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Srin * POSSIBILITY OF SUCH DAMAGE.
301.1Srin */
311.1Srin
321.1Srin/*
331.1Srin * Functions compatible to i386/stand/lib/cpufunc.h with UEFI ABI.
341.1Srin * Currently, only used for raw console I/O by eficons.c.
351.1Srin */
361.1Srin
371.1Srinuint8_t	inb(uint32_t);
381.1Srinvoid	outb(uint32_t, uint8_t);
39