/* * \brief Client-side I/O-port session interface * \author Christian Helmuth * \date 2007-04-17 */ /* * Copyright (C) 2007-2013 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU General Public License version 2. */ #ifndef _INCLUDE__IO_PORT_SESSION__CLIENT_H_ #define _INCLUDE__IO_PORT_SESSION__CLIENT_H_ #include #include namespace Genode { struct Io_port_session_client : Rpc_client { explicit Io_port_session_client(Io_port_session_capability session) : Rpc_client(session) { } unsigned char inb(unsigned short address) { return call(address); } unsigned short inw(unsigned short address) { return call(address); } unsigned inl(unsigned short address) { return call(address); } void outb(unsigned short address, unsigned char value) { call(address, value); } void outw(unsigned short address, unsigned short value) { call(address, value); } void outl(unsigned short address, unsigned value) { call(address, value); } }; } #endif /* _INCLUDE__IO_PORT_SESSION__CLIENT_H_ */