Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add a TODO item: Do this in 2 passes. One pass ...



details:   https://anonhg.NetBSD.org/src/rev/5ad68ca8db9f
branches:  trunk
changeset: 514307:5ad68ca8db9f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Aug 28 15:13:48 2001 +0000

description:
Add a TODO item: Do this in 2 passes.  One pass that configures the
bus (and optionally maps expansion ROMs), and an optional second
pass to disable expansion ROMs that are mapped.  This would allow
MD code to possibly execute the expansion ROMs (possibly in an x86
emulator) to configure a device (e.g. a VGA card, which pretty much
needs to be configured by its ROM).

diffstat:

 sys/dev/pci/pciconf.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r bd6540e496b3 -r 5ad68ca8db9f sys/dev/pci/pciconf.c
--- a/sys/dev/pci/pciconf.c     Tue Aug 28 15:09:10 2001 +0000
+++ b/sys/dev/pci/pciconf.c     Tue Aug 28 15:13:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciconf.c,v 1.6 2001/08/28 15:09:10 thorpej Exp $      */
+/*     $NetBSD: pciconf.c,v 1.7 2001/08/28 15:13:48 thorpej Exp $      */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,6 +40,15 @@
 
 /*
  * To do:
+ *    - Do this in 2 passes, with an MD hook to control the behavior:
+ *             (1) Configure the bus (possibly including expansion
+ *                 ROMs.
+ *             (2) Another pass to disable expansion ROMs if they're
+ *                 mapped (since you're not supposed to leave them
+ *                 mapped when you're not using them).
+ *     This would facilitate MD code executing the expansion ROMs
+ *     if necessary (possibly with an x86 emulator) to configure
+ *     devices (e.g. VGA cards).
  *    - Deal with "anything can be hot-plugged" -- i.e., carry configuration
  *     information around & be able to reconfigure on the fly.
  *    - Deal with segments (See IA64 System Abstraction Layer)



Home | Main Index | Thread Index | Old Index