i82371ab_acpi.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 65 行
JAVA
65 行
/*
* $Id: i82371AB_ACPI.java,v 1.1 2003/11/25 11:42:04 epr Exp $
*/
package org.jnode.driver.chipset.i440BX;
import org.jnode.driver.Driver;
import org.jnode.driver.acpi.ACPI;
import org.jnode.driver.pci.PCIDevice;
import org.jnode.driver.smbus.SMBus;
import org.jnode.driver.smbus.SMBusControler;
/**
* i82371AB_ACPI.
*
* <p>
* Title:
* </p>
* <p>
* Description:
* </p>
* <p>
* Licence: GNU LGPL
* </p>
* <p>
* </p>
*
* @author Francois-Frederic Ozog
* @version 1.0
*/
public class i82371AB_ACPI extends Driver {
PCIDevice device = null;
SMBus smbus = null;
SMBusControler smbControler = null;
ACPI acpi;
public i82371AB_ACPI() {
}
protected void stopDevice() throws org.jnode.driver.DriverException {
/** @todo Implement this org.jnode.driver.Driver abstract method */
}
protected void startDevice() throws org.jnode.driver.DriverException {
device = (PCIDevice) getDevice();
//int revision = device.readConfigByte(0x8) & 0xff;
//int countb = device.readConfigByte(0x48);
//int pmbase = device.readConfigDword(0x40) & 0xffC0; // just use bits 15-6 other bits are
// reserved and should be 0 except bit
// 0,
// bit 0 is hardwired to 1 to show the address is system IO
//int pmregenabled = device.readConfigByte(0x80);
// log.info("i82371AB revision " + revision + ", ACPI configuration: enabled(" +
// (pmregenabled !=0 ? true : false) + ") pmbase(" + Integer.toHexString(pmbase) + ")
// countb(" +Integer.toHexString(countb)+")");
smbControler = new i82371AB_ACPI_SMBusControler(device);
smbus = new SMBus(device, smbControler);
smbus.probeDevices();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?