dmaresource.java

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

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


/**
 * Direct Memory Access resource.
 * 
 * @author Ewout Prangsma (epr@users.sourceforge.net)
 */
public interface DMAResource extends Resource {
	
	/** I/O to memory */
	public static final int MODE_READ = 1;
	/** Memory to I/O */
	public static final int MODE_WRITE = 2;
	
	/**
	 * Prepare this channel for a data transfer.
	 * @param address
	 * @param length
	 * @param mode
	 * @throws IllegalArgumentException
	 * @throws DMAException
	 */
	public void setup(MemoryResource address, int length, int mode)
	throws IllegalArgumentException, DMAException;
	
	/**
	 * Enable the datatransfer of this channel. This may only be called
	 * after a succesful call to setup.
	 * @throws DMAException
	 */
	public void enable() 
	throws DMAException;

	/**
	 * Gets the remaining length for this channel
	 * @return The remaining length
	 * @throws DMAException
	 */
	public int getLength()
	throws DMAException;
}

⌨️ 快捷键说明

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