Changeset 46ec2c06 in mainline for pci/libpci/i386-ports.c


Ignore:
Timestamp:
2006-05-11T16:08:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7981e3cc
Parents:
20a9b85
Message:

SYS_AS_AREA_DESTROY support for uspace.

Formatting fixes in libpci.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pci/libpci/i386-ports.c

    r20a9b85 r46ec2c06  
    8080        for (d.dev = 0; d.dev < 32; d.dev++) {
    8181                u16 class, vendor;
    82                 if (m->
    83                     read(&d, PCI_CLASS_DEVICE, (byte *) & class,
     82                if (m->read(&d, PCI_CLASS_DEVICE, (byte *) & class,
    8483                         sizeof(class))
    8584                    && (class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST)
     
    179178{
    180179        /* This is ugly and tends to produce false positives. Beware. */
    181 
    182180        outb(0x00, 0xCFB);
    183181        outb(0x00, 0xCF8);
     
    227225
    228226        if (d->dev >= 16)
    229                 d->access->
    230                     error("conf2_write: only first 16 devices exist.");
     227                d->access->error("conf2_write: only first 16 devices exist.");
    231228        outb((d->func << 1) | 0xf0, 0xcf8);
    232229        outb(d->bus, 0xcfa);
Note: See TracChangeset for help on using the changeset viewer.