DragonFly BSD
DragonFly commits List (threaded) for 2011-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Introduce ioapic enumerators, which is used to probe and config ioapics


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Feb 2011 00:06:45 -0800 (PST)

commit 65b2387fb07c1a805b383418b9fc3f3a40e05483
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Mon Feb 14 14:47:39 2011 +0800

    Introduce ioapic enumerators, which is used to probe and config ioapics
    
    ioapic enumerator implementation should provide two methods:
    
    ioapic_probe()
        Make sure that if this enumerator is selected, later ioapic
        enumeration could work.  Return error code upon failure.
    
    ioapic_enumerate()
        Enumerate ioapic and prepare for later ioapic configuration in
        the common code (the configuration in the common code is not
        implemented yet).
    
    ioapic enumerator implementation could be registered by calling
    ioapic_enumerator_register() with ioapic_enumerator struct.  The
    higher the priority field, the earlier the ioapic enumerator's
    ioapic_probe method will be invoked.
    
    Currently a do-nothing-other-than-logging ioapic enumerators are
    implemented and registered.  This dummy ioapic enumerator uses ACPI
    MADT.

Summary of changes:
 sys/platform/pc32/apic/mpapic.c       |   40 ++++++++
 sys/platform/pc32/i386/mp_machdep.c   |    3 +
 sys/platform/pc32/i386/mp_madt.c      |  167 +++++++++++++++++++++++++++++++-
 sys/platform/pc32/include/smp.h       |   16 +++-
 sys/platform/pc64/apic/mpapic.c       |   40 ++++++++
 sys/platform/pc64/include/smp.h       |   16 +++-
 sys/platform/pc64/x86_64/mp_machdep.c |    3 +
 sys/platform/pc64/x86_64/mp_madt.c    |  164 +++++++++++++++++++++++++++++++-
 8 files changed, 434 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/65b2387fb07c1a805b383418b9fc3f3a40e05483


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]