ioresource.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 68 行

JAVA
68
字号
/**
 * $Id: IOResource.java,v 1.1 2003/11/25 11:42:18 epr Exp $
 */
package org.jnode.system;

/**
 * I/O port resource.
 * 
 * @author Ewout Prangsma (epr@users.sourceforge.net)
 */
public interface IOResource extends Resource {

	/**
	 * Returns the length.
	 * @return int
	 */
	public abstract int getLength();

	/**
	 * Returns the startPort.
	 * @return int
	 */
	public abstract int getStartPort();

	/**
	 * Get the value of a 8-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @return The port value
	 */
	public abstract int inPortByte(int portNr);


	/**
	 * Get the value of a 16-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @return The port value
	 */
	public abstract int inPortWord(int portNr);

	/**
	 * Get the value of a 32-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @return The port value
	 */
	public abstract int inPortDword(int portNr);

	/**
	 * Set the value of a 8-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @param value
	 */
	public abstract void outPortByte(int portNr, int value);

	/**
	 * Set the value of a 16-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @param value
	 */
	public abstract void outPortWord(int portNr, int value);

	/**
	 * Set the value of a 32-bit I/O port.
	 * @param portNr Absolute port number (not relative to startPort)
	 * @param value
	 */
	public abstract void outPortDword(int portNr, int value);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?