Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config config(1): One more TODO about retiring direc...
details: https://anonhg.NetBSD.org/src/rev/ca5753f00b46
branches: trunk
changeset: 333394:ca5753f00b46
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Nov 01 08:13:11 2014 +0000
description:
config(1): One more TODO about retiring direct attachment
diffstat:
usr.bin/config/TODO | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 69daab4391fe -r ca5753f00b46 usr.bin/config/TODO
--- a/usr.bin/config/TODO Sat Nov 01 07:54:18 2014 +0000
+++ b/usr.bin/config/TODO Sat Nov 01 08:13:11 2014 +0000
@@ -25,6 +25,20 @@
defbus audiobus {}
attach audio at audiobus
+o Retire "attach foo at bar with foo_bar.c"
+
+ Most of these should be rewritten by defining a common interface attribute
+ "foobus", instead of writing multiple attachments. com(4), ld(4), ehci(4)
+ are typical examples. For ehci(4), EHCI-capable controller drivers implement
+ "ehcibus" interface, like:
+
+ defne ehcibus {}
+ device imxehci: ehcibus
+
+ These drivers' attach functions call config_found() to attach ehci(4) via
+ the "ehcibus" interface attribute, instead of calling ehci_init() directly.
+ Same for com(4) (com_attach_subr()) and ld(4) (ldattach()).
+
o Sort objects in more reasonable order.
Put machdep.ko in the lowest address. uvm.ko and kern.ko follow.
@@ -70,7 +84,7 @@
o Split cfdata.
- cfdata is pattern matching rules to enable devices at runtime device
+ cfdata is a set of pattern matching rules to enable devices at runtime device
auto-configuration. It is pure data and can (should) be generated separately
from the code.
Home |
Main Index |
Thread Index |
Old Index