changed dev->enable to dev->enabled. Sorry, I am the only one who can't speak

English in the project.


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1543 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Li-Ta Lo
2004-04-29 20:08:54 +00:00
parent fcdd571aee
commit 69c5a905ed
13 changed files with 50 additions and 48 deletions

View File

@@ -40,7 +40,7 @@ void amd8111_enable(device_t dev)
}
reg = reg_old = pci_read_config16(lpc_dev, 0x48);
reg &= ~(1 << index);
if (dev->enable) {
if (dev->enabled) {
reg |= (1 << index);
}
if (reg != reg_old) {

View File

@@ -98,19 +98,19 @@ static struct pci_driver pcix_driver __pci_driver = {
static void ioapic_enable(device_t dev)
{
uint32_t value;
value = pci_read_config32(dev, 0x44);
if (dev->enable) {
if (dev->enabled) {
value |= ((1 << 1) | (1 << 0));
} else {
value &= ~((1 << 1) | (1 << 0));
}
pci_write_config32(dev, 0x44, value);
//BY LYH
/* We have to enable MEM and Bus Master for IOAPIC */
value = pci_read_config32(dev, 0x4);
value |= 6;
pci_write_config32(dev, 0x4, value);
//BY LYH END
}
static struct device_operations ioapic_ops = {