Up to [cvs.netbsd.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.220.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:27 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.220: +88 -5
lines
Diff to previous 1.220 (colored) next main 1.221 (colored)
sync with head
Revision 1.220.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:32 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.220: +88 -5
lines
Diff to previous 1.220 (colored) next main 1.221 (colored)
merge to -current.
Revision 1.222 / (download) - annotate - [select for diffs], Mon Jan 30 23:31:27 2012 UTC (3 months, 3 weeks ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
HEAD
Changes since 1.221: +5 -5
lines
Diff to previous 1.221 (colored)
Use proper ANSI prototypes for foo() -> foo(void) Caught when compiling with -Wold-style-definition
Revision 1.221 / (download) - annotate - [select for diffs], Mon Jan 16 19:42:40 2012 UTC (4 months, 1 week ago) by pgoyette
Branch: MAIN
Changes since 1.220: +85 -2
lines
Diff to previous 1.220 (colored)
Include autoconfig info interface-attributes, locators) in device property dictionaries.
Revision 1.220 / (download) - annotate - [select for diffs], Wed Aug 31 18:31:02 2011 UTC (8 months, 3 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Changes since 1.219: +4 -4
lines
Diff to previous 1.219 (colored)
NULL does not need a cast
Revision 1.219 / (download) - annotate - [select for diffs], Sat Aug 27 19:52:22 2011 UTC (8 months, 4 weeks ago) by martin
Branch: MAIN
Changes since 1.218: +4 -3
lines
Diff to previous 1.218 (colored)
Enhance a panic message slightly
Revision 1.218 / (download) - annotate - [select for diffs], Tue Aug 9 21:07:14 2011 UTC (9 months, 2 weeks ago) by dyoung
Branch: MAIN
Changes since 1.217: +4 -4
lines
Diff to previous 1.217 (colored)
Correct a comment on config_found_sm_loc().
Revision 1.217 / (download) - annotate - [select for diffs], Tue Aug 2 21:23:24 2011 UTC (9 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.216: +3 -2
lines
Diff to previous 1.216 (colored)
Re-add include of "drvctl.h", as its removal a year and a half ago broke drvctl DRVGETEVENT.
Revision 1.203.2.6 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:29 2011 UTC (11 months, 2 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203.2.5: +3 -0
lines
Diff to previous 1.203.2.5 (colored) to branchpoint 1.203 (colored) next main 1.204 (colored)
sync with head
Revision 1.210.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:33 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.210: +14 -43
lines
Diff to previous 1.210 (colored) next main 1.211 (colored)
Sync with HEAD.
Revision 1.216 / (download) - annotate - [select for diffs], Wed Jun 1 02:43:33 2011 UTC (11 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.215: +5 -2
lines
Diff to previous 1.215 (colored)
provide a diagnostic for unsplit drivers.
Revision 1.203.2.5 / (download) - annotate - [select for diffs], Tue May 31 03:05:02 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203.2.4: +0 -1
lines
Diff to previous 1.203.2.4 (colored) to branchpoint 1.203 (colored)
sync with head
Revision 1.215 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:22 2011 UTC (13 months ago) by rmind
Branch: MAIN
Changes since 1.214: +2 -3
lines
Diff to previous 1.214 (colored)
- Replace few malloc(9) uses with kmem(9). - Rename buf_malloc() to buf_alloc(), fix comments. - Remove some unnecessary inclusions.
Revision 1.203.2.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203.2.3: +1 -1
lines
Diff to previous 1.203.2.3 (colored) to branchpoint 1.203 (colored)
sync with head
Revision 1.214 / (download) - annotate - [select for diffs], Sat Apr 2 08:11:31 2011 UTC (13 months, 3 weeks ago) by mbalmer
Branch: MAIN
Changes since 1.213: +3 -3
lines
Diff to previous 1.213 (colored)
Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.
Revision 1.203.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:17 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203.2.2: +13 -42
lines
Diff to previous 1.203.2.2 (colored) to branchpoint 1.203 (colored)
sync with head
Revision 1.163.4.2.4.3 / (download) - annotate - [select for diffs], Tue Feb 8 21:56:01 2011 UTC (15 months, 2 weeks ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.163.4.2.4.2: +26 -27
lines
Diff to previous 1.163.4.2.4.2 (colored) to branchpoint 1.163.4.2 (colored) next main 1.163.4.3 (colored)
use mutex_obj_alloc() to allocate config_queues_lock and dc_funcs_lock instead of declaring them statically.
Revision 1.210.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:59 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.210: +10 -41
lines
Diff to previous 1.210 (colored) next main 1.211 (colored)
Sync with HEAD
Revision 1.163.4.2.4.2 / (download) - annotate - [select for diffs], Tue Feb 8 06:04:59 2011 UTC (15 months, 2 weeks ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.163.4.2.4.1: +44 -2
lines
Diff to previous 1.163.4.2.4.1 (colored) to branchpoint 1.163.4.2 (colored)
- add config_queues_lock to serialize access to deferred_config_queue and interrupt_config_queue for adds, deletes and (those DIAGNOSTIC) searches - add dc_funcs_lock to serialize dispatch of deferred config functions many (all?) of which may not be MP safe.
Revision 1.213 / (download) - annotate - [select for diffs], Sun Feb 6 23:25:17 2011 UTC (15 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base
Changes since 1.212: +2 -33
lines
Diff to previous 1.212 (colored)
- add support for using compressed images as splash images - retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
Revision 1.163.4.2.4.1 / (download) - annotate - [select for diffs], Sat Feb 5 06:00:14 2011 UTC (15 months, 2 weeks ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.163.4.2: +3 -2
lines
Diff to previous 1.163.4.2 (colored)
- include opt_multiprocessor.h for explicit MULTIPROCESSOR dependency
Revision 1.212 / (download) - annotate - [select for diffs], Mon Jan 31 23:07:16 2011 UTC (15 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.211: +2 -8
lines
Diff to previous 1.211 (colored)
Let the linker instead of the C preprocessor configure the kernel: make weak aliases device_register(9) and device_register_post_config(9) for the stub routine voidop(). Get rid of __HAVE_DEVICE_REGISTER and __HAVE_DEVICE_REGISTER_POST_CONFIG.
Revision 1.211 / (download) - annotate - [select for diffs], Mon Jan 31 23:00:34 2011 UTC (15 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.210: +10 -4
lines
Diff to previous 1.210 (colored)
If there are readers or writers in the alldevs list, don't remove a device_t out from under them, but tag it for deletion, later.
Revision 1.210 / (download) - annotate - [select for diffs], Fri Jan 14 10:18:21 2011 UTC (16 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.209: +3 -3
lines
Diff to previous 1.209 (colored)
Using "int" variables with sysctl's CTLTYPE_BOOL is a simple receipt to loose on big endian machines. So make the variables "bool".
Revision 1.163.4.3 / (download) - annotate - [select for diffs], Sat Nov 20 17:41:27 2010 UTC (18 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base,
matt-nb5-pq3
Changes since 1.163.4.2: +3 -3
lines
Diff to previous 1.163.4.2 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored)
Pull up following revision(s) (requested by hubertf in ticket #1386): sys/dev/raidframe/rf_netbsdkintf.c: revision 1.258 sys/dev/pad/pad.c: revision 1.11 sys/dev/scsipi/cd.c: revision 1.288 sys/dev/isa/pcppi.c: revision 1.33 sys/kern/subr_autoconf.c: revision 1.169 'boot -z' bogons
Revision 1.200.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:27 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.200.2.2: +2 -0
lines
Diff to previous 1.200.2.2 (colored) to branchpoint 1.200 (colored) next main 1.201 (colored)
Sync with HEAD (-D20101022).
Revision 1.146.2.8 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:31 2010 UTC (19 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.7: +4 -2
lines
Diff to previous 1.146.2.7 (colored) to branchpoint 1.146 (colored) next main 1.147 (colored)
sync with head
Revision 1.200.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:29 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.200.2.1: +73 -7
lines
Diff to previous 1.200.2.1 (colored) to branchpoint 1.200 (colored)
Sync with HEAD.
Revision 1.209 / (download) - annotate - [select for diffs], Mon Aug 16 17:29:52 2010 UTC (21 months, 1 week ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3,
matt-mips64-premerge-20101231
Changes since 1.208: +4 -2
lines
Diff to previous 1.208 (colored)
From jmcneill@: call config_deferred(9) in rescan_with_cfdata().
Revision 1.146.2.7 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:41 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.6: +226 -29
lines
Diff to previous 1.146.2.6 (colored) to branchpoint 1.146 (colored)
sync with head.
Revision 1.203.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:54 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203.2.1: +67 -3
lines
Diff to previous 1.203.2.1 (colored) to branchpoint 1.203 (colored)
sync with head
Revision 1.208 / (download) - annotate - [select for diffs], Sat Jun 26 06:43:13 2010 UTC (23 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Changes since 1.207: +7 -4
lines
Diff to previous 1.207 (colored)
Rather than referring a global variable rootvnode in autoconf(9), prepare and use an internal "root_is_mounted" flag for config_mountroot(9). Should fix annoying dependency problem in librump reported by Paul Goyette on current-users@: http://mail-index.NetBSD.org/current-users/2010/06/25/msg013771.html
Revision 1.207 / (download) - annotate - [select for diffs], Fri Jun 25 15:10:42 2010 UTC (23 months ago) by tsutsui
Branch: MAIN
Changes since 1.206: +63 -2
lines
Diff to previous 1.206 (colored)
Add config_mountroot(9), which defers device configuration after mountroot(), like config_interrupt(9) that defers configuration after interrupts are enabled. This will be used for devices that require firmware loaded from the root file system by firmload(9) to complete device initialization (getting MAC address etc). No objection on tech-kern@: http://mail-index.NetBSD.org/tech-kern/2010/06/18/msg008370.html and will also fix PR kern/43125.
Revision 1.203.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:57 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.203: +161 -28
lines
Diff to previous 1.203 (colored)
sync with head
Revision 1.206 / (download) - annotate - [select for diffs], Fri Apr 30 21:17:22 2010 UTC (2 years ago) by dyoung
Branch: MAIN
Changes since 1.205: +10 -8
lines
Diff to previous 1.205 (colored)
IPL_VM is the highest interrupt priority where alldevs is read/written,
and acquiring alldevs_mtx already blocks those interrupts, so delete the
splhigh()/splx() in config_alldevs_lock()/_unlock().
Release alldevs_mtx while freeing memory with kmem_free(9); according to
new documentation, kmem_free(9) can sleep! :-) Thanks to rmind@ for the
tip.
Next step: use finer-grained locking, probably by adding a mutex to
cfdriver_t.
And after that: make sure that all threads of execution are out of the
device_t and/or softc before releasing their memory.
Revision 1.200.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:11 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.200: +185 -48
lines
Diff to previous 1.200 (colored)
Sync with HEAD.
Revision 1.205 / (download) - annotate - [select for diffs], Mon Apr 19 11:20:56 2010 UTC (2 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.204: +3 -3
lines
Diff to previous 1.204 (colored)
Use CTLTYPE_BOOL.
Revision 1.204 / (download) - annotate - [select for diffs], Thu Mar 25 19:23:18 2010 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.203: +152 -21
lines
Diff to previous 1.203 (colored)
Add init/fini for components (modules etc.). These eat the standard driver/attach/data typically present and once some locking is grown in here, these routines can be made to fail or succeed a component attachment/detachment atomically.
Revision 1.146.2.6 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.5: +510 -482
lines
Diff to previous 1.146.2.5 (colored) to branchpoint 1.146 (colored)
sync with head
Revision 1.203 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:10 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.202: +14 -14
lines
Diff to previous 1.202 (colored)
A pointer typedef entails trading too much flexibility to declare const and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
Revision 1.202 / (download) - annotate - [select for diffs], Fri Feb 19 22:28:47 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.201: +12 -11
lines
Diff to previous 1.201 (colored)
Avoid a potential crash: get more struct device initialization out of the way before trying to get a unit number. If we cannot get a unit number, we call config_devfree(), which expects for fields such as dv_flags, dv_cfattach, and dv_private to be initialized.
Revision 1.201 / (download) - annotate - [select for diffs], Mon Feb 15 20:20:34 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.200: +12 -7
lines
Diff to previous 1.200 (colored)
Extract a subroutine, const char *cfdata_ifattr(cfdata_t cf), that returns the name of the interface attribute that associates cf with its parent. Use cfdata_ifattr() at several sites in the autoconf code.
Revision 1.200 / (download) - annotate - [select for diffs], Sun Jan 31 15:10:12 2010 UTC (2 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.199: +2 -146
lines
Diff to previous 1.199 (colored)
Device accessors are only marginally related to autoconf, so put them into subr_device.c instead of having them in subr_autoconf.c. Since none of the copyrights in subr_autoconf.c really match the history of device accessors, I took the liberty of slapping (c) 2006 TNF onto subr_device.c.
Revision 1.199 / (download) - annotate - [select for diffs], Tue Jan 19 21:54:53 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.198: +3 -3
lines
Diff to previous 1.198 (colored)
A new survey of the code indicates that the very highest interrupt priority level where the kernel accesses alldevs is IPL_VM, where some hardware interrupt handlers call config_deactivate(9). Lower the IPL of alldevs_mtx from IPL_HIGH to IPL_VM, accordingly.
Revision 1.198 / (download) - annotate - [select for diffs], Tue Jan 19 21:24:36 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.197: +42 -37
lines
Diff to previous 1.197 (colored)
Refactor: as suggested by rmind@, extract duplicate code into subroutines config_alldevs_enter() and config_alldevs_exit(). This change amounts to textual substitution. No functional change intended. We do not collect garbage in device_lookup(), so there is no use dumping it: get rid of the garbage list. Do not call config_dump_garbage(). In device_lookup_private(), call device_lookup() instead of duplicating the code from device_lookup().
Revision 1.197 / (download) - annotate - [select for diffs], Tue Jan 12 22:11:13 2010 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.196: +66 -46
lines
Diff to previous 1.196 (colored)
Revert 1.194 rev.
Revision 1.196 / (download) - annotate - [select for diffs], Sun Jan 10 13:42:34 2010 UTC (2 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.195: +6 -2
lines
Diff to previous 1.195 (colored)
Add a new optional function device_register_post_config(), symmetric to device register, called after config is done with a device. Only used if an arch defines __HAVE_DEVICE_REGISTER_POSTCONFIG.
Revision 1.195 / (download) - annotate - [select for diffs], Fri Jan 8 20:07:14 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.194: +26 -26
lines
Diff to previous 1.194 (colored)
Expand PMF_FN_* macros.
Revision 1.194 / (download) - annotate - [select for diffs], Fri Jan 8 12:07:08 2010 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.193: +46 -66
lines
Diff to previous 1.193 (colored)
Simplify device G/C: use global list and config_alldevs_unlock_gc().
Revision 1.193 / (download) - annotate - [select for diffs], Fri Jan 8 00:09:45 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.192: +8 -2
lines
Diff to previous 1.192 (colored)
Move all copies of ifattr_match() to sys/kern/subr_autoconf.c.
Revision 1.192 / (download) - annotate - [select for diffs], Thu Jan 7 22:39:52 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.191: +8 -2
lines
Diff to previous 1.191 (colored)
Add a do-nothing child-detachment hook, null_childdetached(device_t, device_t).
Revision 1.191 / (download) - annotate - [select for diffs], Tue Jan 5 22:42:16 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.190: +15 -29
lines
Diff to previous 1.190 (colored)
Call device_lookup() from device_lookup_private() instead of
duplicating code.
Per suggestions by rmind@:
Simplify some code that used "empty statements," ";".
Don't collect garbage in device_lookup{,_private}(), since they
are called in interrupt context from certain drivers.
Make config_collect_garbage() KASSERT() that it does not run in
interrupt or software-interrupt context.
Revision 1.190 / (download) - annotate - [select for diffs], Tue Dec 15 03:02:24 2009 UTC (2 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.189: +167 -134
lines
Diff to previous 1.189 (colored)
Per rmind@'s suggestion, avoid an acquire/release-mutex dance by collecting garbage in two phases: in the first stage, with alldevs_mtx held, gather all of the objects to be freed onto a list. Drop alldevs_mtx, and in the second stage, free all the collected objects. Also per rmind@'s suggestion, remove KASSERT(!mutex_owned(&alldevs_mtx)) throughout, it is not useful. Find a free unit number and allocate it for a new device_t atomically. Before, two threads would sometimes find the same free unit number and race to allocate it. The loser panicked. Now there is no race. In support of the changes above, extract some new subroutines that are private to this module: config_unit_nextfree(), config_unit_alloc(), config_devfree(), config_dump_garbage(). Delete all of the #ifdef __BROKEN_CONFIG_UNIT_USAGE code. Only the sun3 port still depends on __BROKEN_CONFIG_UNIT_USAGE, it's not hard for the port to do without, and port-sun3@ had fair warning that it was going away (>1 week, or a few years' warning, depending how far back you look!).
Revision 1.189 / (download) - annotate - [select for diffs], Sun Nov 29 15:17:30 2009 UTC (2 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.188: +6 -3
lines
Diff to previous 1.188 (colored)
Fix kernel build on platforms which define __BROKEN_CONFIG_UNIT_USAGE and therefore don't take config_alldevs_lock() in config_devalloc().
Revision 1.188 / (download) - annotate - [select for diffs], Thu Nov 12 23:16:28 2009 UTC (2 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.187: +4 -6
lines
Diff to previous 1.187 (colored)
Use TAILQ_FOREACH() instead of open-coding it.
I applied this patch with Coccinelle's semantic patch tool, spatch(1).
I installed Coccinelle from pkgsrc: devel/coccinelle/. I wrote
tailq.spatch and kdefs.h (see below) and ran this command,
spatch -debug -macro_file_builtins ./kdefs.h -outplace \
-sp_file sys/kern/tailq.spatch sys/kern/subr_autoconf.c
which wrote the transformed source file to /tmp/subr_autoconf.c. Then I
used indent(1) to fix the indentation.
::::::::::::::::::::
::: tailq.spatch :::
::::::::::::::::::::
@@
identifier I, N;
expression H;
statement S;
iterator name TAILQ_FOREACH;
@@
- for (I = TAILQ_FIRST(H); I != NULL; I = TAILQ_NEXT(I, N)) S
+ TAILQ_FOREACH(I, H, N) S
:::::::::::::::
::: kdefs.h :::
:::::::::::::::
#define MAXUSERS 64
#define _KERNEL
#define _KERNEL_OPT
#define i386
/*
* Tail queue definitions.
*/
#define _TAILQ_HEAD(name, type, qual) \
struct name { \
qual type *tqh_first; /* first element */ \
qual type *qual *tqh_last; /* addr of last next element */ \
}
#define TAILQ_HEAD(name, type) _TAILQ_HEAD(name, struct type,)
#define TAILQ_HEAD_INITIALIZER(head) \
{ NULL, &(head).tqh_first }
#define _TAILQ_ENTRY(type, qual) \
struct { \
qual type *tqe_next; /* next element */ \
qual type *qual *tqe_prev; /* address of previous next element */\
}
#define TAILQ_ENTRY(type) _TAILQ_ENTRY(struct type,)
#define PMF_FN_PROTO1 pmf_qual_t
#define PMF_FN_ARGS1 pmf_qual_t qual
#define PMF_FN_CALL1 qual
#define PMF_FN_PROTO , pmf_qual_t
#define PMF_FN_ARGS , pmf_qual_t qual
#define PMF_FN_CALL , qual
#define __KERNEL_RCSID(a, b)
Revision 1.187 / (download) - annotate - [select for diffs], Thu Nov 12 19:10:30 2009 UTC (2 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.186: +315 -165
lines
Diff to previous 1.186 (colored)
Move a device-deactivation pattern that is replicated throughout the system into config_deactivate(dev): deactivate dev and all of its descendants. Block all interrupts while calling each device's activation hook, ca_activate. Now it is possible to simplify or to delete several device-activation hooks throughout the system. Do not deactivate a driver while detaching it! If the driver was already deactivated (because of accidental/emergency removal), let the driver cope with the knowledge that DVF_ACTIVE has been cleared. Otherwise, let the driver access the underlying hardware (so that it can flush caches, restore original register settings, et cetera) until it exits its device-detachment hook. Let multiple readers and writers simultaneously access the system's device_t list, alldevs, from either interrupt or thread context: postpone changing alldevs linkages and freeing autoconf device structures until a garbage-collection phase that runs after all readers & writers have left the list. Give device iterators (deviter(9)) a consistent view of alldevs no matter whether device_t's are added and deleted during iteration: keep a global alldevs generation number. When an iterator enters alldevs, record the current generation number in the iterator and increase the global number. When a device_t is created, label it with the current global generation number. When a device_t is deleted, add a second label, the current global generation number. During iteration, compare a device_t's added- and deleted-generation with the iterator's generation and skip a device_t that was deleted before the iterator entered the list or added after the iterator entered the list. The alldevs generation number is never 0. The garbage collector reaps device_t's whose delete-generation number is non-zero. Make alldevs private to sys/kern/subr_autoconf.c. Use deviter(9) to access it.
Revision 1.186 / (download) - annotate - [select for diffs], Mon Oct 12 23:33:02 2009 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.185: +2 -3
lines
Diff to previous 1.185 (colored)
remove no longer necessary include of drvctl.h
Revision 1.185 / (download) - annotate - [select for diffs], Mon Sep 21 12:14:47 2009 UTC (2 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.184: +15 -7
lines
Diff to previous 1.184 (colored)
Split config_init() into config_init() and config_init_mi() to help platforms which want to call config_init() very early in the boot.
Revision 1.184 / (download) - annotate - [select for diffs], Wed Sep 16 22:45:24 2009 UTC (2 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.183: +2 -20
lines
Diff to previous 1.183 (colored)
Nothing calls config_activate(9) any longer, so delete it.
Revision 1.183 / (download) - annotate - [select for diffs], Wed Sep 16 16:34:50 2009 UTC (2 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.182: +45 -63
lines
Diff to previous 1.182 (colored)
In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together. Start solidifying some temporary API changes.
1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
#include it from <sys/pmf.h> instead of <sys/device.h> to break the
circular dependency between <sys/device.h> and <sys/pmf.h>.
2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
suspend/resume call. Start to replace instances of PMF_FN_PROTO,
PMF_FN_ARGS, et cetera, with a pmf_qual_t.
3. Introduce the notion of a "suspensor," an entity that holds a
device in suspension. More than one suspensor may hold a device
at once. A device stays suspended as long as at least one
suspensor holds it. A device resumes when the last suspensor
releases it.
Currently, the kernel defines three suspensors,
3a the system-suspensor: for system suspension, initiated
by 'sysctl -w machdep.sleep_state=3', by lid closure, by
power-button press, et cetera,
3b the drvctl-suspensor: for device suspension by /dev/drvctl
ioctl, e.g., drvctl -S sip0.
3c the system self-suspensor: for device drivers that suspend
themselves and their children. Several drivers for network
interfaces put the network device to sleep while it is not
administratively up, that is, after the kernel calls if_stop(,
1). The self-suspensor should not be used directly. See
the description of suspensor delegates, below.
A suspensor can have one or more "delegates". A suspensor can
release devices that its delegates hold suspended. Right now,
only the system self-suspensor has delegates. For each device
that a self-suspending driver attaches, it creates the device's
self-suspensor, a delegate of the system self-suspensor.
Suspensors stop a system-wide suspend/resume cycle from waking
devices that the operator put to sleep with drvctl before the cycle.
They also help self-suspension to work more simply, safely, and in
accord with expectations.
4. Add the notion of device activation level, devact_level_t,
and a routine for checking the current activation level,
device_activation(). Current activation levels are DEVACT_LEVEL_BUS,
DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
indicate that the device's bus is active, that the bus and device are
active, and that the bus, device, and the functions of the device's
class (network, audio) are active.
Suspend/resume calls can be qualified with a devact_level_t.
The power-management framework treats a devact_level_t that
qualifies a device suspension as the device's current activation
level; it only runs hooks to reduce the activation level from
the presumed current level to the fully suspended state. The
framework treats a devact_level_t qualifying device resumption
as the target activation level; it only runs hooks to raise the
activation level to the target.
5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
drivers.
6. Temporarily add an unused power-management workqueue that I will
remove or replace, soon.
Revision 1.182 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:04 2009 UTC (2 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.181: +7 -3
lines
Diff to previous 1.181 (colored)
Replace a large number of link set based sysctl node creations with calls from subsystem constructors. Benefits both future kernel modules and rump. no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL
Revision 1.146.2.5 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:01 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.4: +17 -196
lines
Diff to previous 1.146.2.4 (colored) to branchpoint 1.146 (colored)
sync with head
Revision 1.181 / (download) - annotate - [select for diffs], Sun Sep 6 16:18:56 2009 UTC (2 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.180: +2 -108
lines
Diff to previous 1.180 (colored)
Remove autoconf dependency on vfs and dk: opendisk() -> kern/subr_disk_open.c config_handle_wedges -> dev/dkwedge/dk.c
Revision 1.180 / (download) - annotate - [select for diffs], Thu Sep 3 15:20:08 2009 UTC (2 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.179: +17 -90
lines
Diff to previous 1.179 (colored)
Move configure() and configure2() from subr_autoconf.c to init_main.c, since they are only peripherially related to the autoconf subsystem and more related to boot initialization. Also, apply _KERNEL_OPT to autoconf where necessary.
Revision 1.167.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.167.2.1: +94 -16
lines
Diff to previous 1.167.2.1 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored)
Sync with HEAD.
Revision 1.146.2.4 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:23 2009 UTC (2 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.3: +66 -13
lines
Diff to previous 1.146.2.3 (colored) to branchpoint 1.146 (colored)
sync with head.
Revision 1.179 / (download) - annotate - [select for diffs], Tue Jul 14 13:24:00 2009 UTC (2 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
jymxensuspend-base
Changes since 1.178: +10 -3
lines
Diff to previous 1.178 (colored)
Add a workaround for some traditional ports (amiga and atari): - Defer callout_setfunc() call after config_init() call in configure(). Fixes silent hang before consinit() at least on atari. These traditional ports use config(9) structures and autoconf(9) functions to detect console devices, and config_init() is called at very early stage at boot where mutex(9) is not ready. Actually config_init() has been split out from configure() for these ports: http://cvsweb.NetBSD.org/bsdweb.cgi/src/sys/kern/subr_autoconf.c#rev1.74 while x68k has been fixed properly: http://mail-index.NetBSD.org/source-changes/2009/01/17/msg215673.html See also: http://mail-index.NetBSD.org/port-x68k/2008/12/31/msg000006.html http://mail-index.NetBSD.org/port-atari/2009/07/03/msg000419.html
Revision 1.178 / (download) - annotate - [select for diffs], Fri Jun 26 19:30:45 2009 UTC (2 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.177: +58 -12
lines
Diff to previous 1.177 (colored)
Switch to kmem(9). (void *)pew is one way to get a struct work *, but let's write&pew->pew_work, instead. It is more defensive and persuasive. Make miscellaneous changes in support of tearing down arbitrary stacks of filesystems and devices during shutdown: 1 Move struct shutdown_state, shutdown_first(), and shutdown_next(), from kern_pmf.c to subr_autoconf.c. Rename detach_all() to config_detach_all(), and move it from kern_pmf.c to subr_autoconf.c. Export all of those routines. 2 In pmf_system_shutdown(), do not suspend user process scheduling, and do not detach all devices: I am going to do that in cpu_reboot(), instead. (Soon I will do it in an MI cpu_reboot() routine.) Do still call PMF shutdown hooks. 3 In config_detach(), add a DIAGNOSTIC assertion: if we're exiting config_detach() at the bottom, alldevs_nwrite had better not be 0, because config_detach() is a writer of the device list. 4 In deviter_release(), check to see if we're iterating the device list for reading, *first*, and if so, decrease the number of readers. Used to be that if we happened to be reading during shutdown, we ran the shutdown branch. Thus the number of writers reached 0, the number of readers remained > 0, and no writer could iterate again. Under certain circumstances that would cause a hang during shutdown.
Revision 1.146.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.2: +31 -6
lines
Diff to previous 1.146.2.2 (colored) to branchpoint 1.146 (colored)
sync with head
Revision 1.177 / (download) - annotate - [select for diffs], Fri May 29 23:27:08 2009 UTC (2 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.176: +4 -4
lines
Diff to previous 1.176 (colored)
In config_detach(9), if device deactivation fails with EOPNOTSUPP, don't treat it as an error. This should stop the kernel from panicking in config_detach(9) when sd(4)/wd(4) detach.
Revision 1.176 / (download) - annotate - [select for diffs], Sun May 24 12:27:50 2009 UTC (3 years ago) by ad
Branch: MAIN
Changes since 1.175: +29 -4
lines
Diff to previous 1.175 (colored)
Bus scans can make it appear as if the system has paused, so twiddle constantly while config_interrupts() jobs are running.
Revision 1.167.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.167: +164 -146
lines
Diff to previous 1.167 (colored)
Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.146.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:47 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146.2.1: +311 -221
lines
Diff to previous 1.146.2.1 (colored) to branchpoint 1.146 (colored)
sync with head.
Revision 1.175 / (download) - annotate - [select for diffs], Fri May 1 08:27:41 2009 UTC (3 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
jym-xensuspend-base
Changes since 1.174: +77 -77
lines
Diff to previous 1.174 (colored)
remove useless parenthesis
Revision 1.163.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.163.2.2: +82 -64
lines
Diff to previous 1.163.2.2 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored)
Sync with HEAD.
Revision 1.174 / (download) - annotate - [select for diffs], Thu Apr 2 00:09:34 2009 UTC (3 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Changes since 1.173: +74 -63
lines
Diff to previous 1.173 (colored)
During shutdown, detach devices in an orderly fashion. Call the detach routine for every device in the device tree, starting with the leaves and moving toward the root, expecting that each (pseudo-)device driver will use the opportunity to gracefully commit outstandings transactions to the underlying (pseudo-)device and to relinquish control of the hardware to the system BIOS. Detaching devices is not suitable for every shutdown: in an emergency, or if the system state is inconsistent, we should resort to a fast, simple shutdown that uses only the pmf(9) shutdown hooks and the (deprecated) shutdownhooks. For now, if the flag RB_NOSYNC is set in boothowto, opt for the fast, simple shutdown. Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence that it is safe to detach a device during shutdown. Introduce macros CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf attachments with default device flags. Add DVF_DETACH_SHUTDOWN to configuration attachments for atabus(4), atw(4) at cardbus(4), cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4), elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4), pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4). Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the autoconf code and a device driver that the reason for detachment is system shutdown. Add a sysctl, kern.detachall, that tells the system to try to detach every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN flag. The default for kern.detachall is 0. SET IT TO 1, PLEASE, TO HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN. This is a work in progress. In future work, I aim to treat pseudo-devices more thoroughly, and to gracefully tear down a stack of (pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and raid(4) instances at shutdown. Also commit some changes that are not easily untangled from the rest: (1) begin to simplify device_t locking: rename struct pmf_private to device_lock, and incorporate device_lock into struct device. (2) #include <sys/device.h> in sys/pmf.h in order to get some definitions that it needs. Stop unnecessarily #including <sys/device.h> in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases building.
Revision 1.173 / (download) - annotate - [select for diffs], Sat Mar 28 18:43:20 2009 UTC (3 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.172: +4 -6
lines
Diff to previous 1.172 (colored)
revert previous; ctags has been fixed.
Revision 1.172 / (download) - annotate - [select for diffs], Wed Mar 25 21:48:36 2009 UTC (3 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.171: +6 -4
lines
Diff to previous 1.171 (colored)
ctags(1) gets confused by 'typedef struct X { } X_t', so break 'typedef
struct pmf_private { ... } pmf_private_t' into a struct definition and a
typedef definition.
Revision 1.171 / (download) - annotate - [select for diffs], Wed Mar 25 21:43:42 2009 UTC (3 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.170: +4 -2
lines
Diff to previous 1.170 (colored)
DVF_ACTIVE is unconditionally set when we attach a device, so unconditionally clear it after we give a device's deactivate() routine a chance.
Revision 1.170 / (download) - annotate - [select for diffs], Wed Mar 25 21:28:50 2009 UTC (3 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.169: +7 -2
lines
Diff to previous 1.169 (colored)
When we attach a pseudo-device, set its cfdata_t's cf_fstate to FSTATE_FOUND, as we do in config_attach_loc(), in order to avoid a DIAGNOSTIC panic in config_detach() if we detach the device.
Revision 1.163.4.2 / (download) - annotate - [select for diffs], Sun Mar 15 19:43:48 2009 UTC (3 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.163.4.1: +9 -9
lines
Diff to previous 1.163.4.1 (colored) to branchpoint 1.163 (colored)
Pull up following revision(s) (requested by christos in ticket #458): sys/conf/Makefile.kern.inc: revision 1.121 sys/conf/files: revision 1.940 sys/kern/init_main.c: revision 1.381 sys/kern/kern_ssp.c: revision 1.1 sys/kern/subr_autoconf.c: revision 1.168 sys/sys/device.h: revision 1.116 sys/sys/systm.h: revision 1.233 Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred, it caused the return from the enclosing function to break, as well as the ssp return on i386. To fix both issues, split configure in two pieces the one before calling ssp_init and the one after, and move the ssp_init() call back in main. Put ssp_init() in its own file, and compile this new file with -fno-stack-protector. Tested on amd64. XXX: If we want to have ssp kernels working on 5.0, this change needs to be pulled up.
Revision 1.169 / (download) - annotate - [select for diffs], Sat Mar 14 11:08:28 2009 UTC (3 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.168: +3 -3
lines
Diff to previous 1.168 (colored)
'boot -z' bogons
Revision 1.163.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.163.2.1: +9 -9
lines
Diff to previous 1.163.2.1 (colored) to branchpoint 1.163 (colored)
Sync with HEAD.
Revision 1.168 / (download) - annotate - [select for diffs], Thu Feb 12 18:24:18 2009 UTC (3 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.167: +9 -9
lines
Diff to previous 1.167 (colored)
Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred, it caused the return from the enclosing function to break, as well as the ssp return on i386. To fix both issues, split configure in two pieces the one before calling ssp_init and the one after, and move the ssp_init() call back in main. Put ssp_init() in its own file, and compile this new file with -fno-stack-protector. Tested on amd64. XXX: If we want to have ssp kernels working on 5.0, this change needs to be pulled up.
Revision 1.163.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 02:38:32 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2
Changes since 1.163: +6 -5
lines
Diff to previous 1.163 (colored)
Pull up following revision(s) (requested by ad in ticket #339): sys/kern/subr_autoconf.c: revision 1.167 Don't need to hold kernel_lock for most of this (and not into the swapper!).
Revision 1.163.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.163: +15 -18
lines
Diff to previous 1.163 (colored)
Sync with HEAD.
Revision 1.131.6.6 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.131.6.5: +13 -16
lines
Diff to previous 1.131.6.5 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)
Sync with HEAD.
Revision 1.167 / (download) - annotate - [select for diffs], Mon Dec 29 13:40:11 2008 UTC (3 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.166: +6 -5
lines
Diff to previous 1.166 (colored)
Don't need to hold kernel_lock for most of this (and not into the swapper!).
Revision 1.166 / (download) - annotate - [select for diffs], Mon Dec 29 12:52:50 2008 UTC (3 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.165: +9 -13
lines
Diff to previous 1.165 (colored)
Don't do KM_NOSLEEP allocations.
Revision 1.156.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.156.2.1: +4 -4
lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored)
Update haad-dm branch to haad-dm-base2.
Revision 1.165 / (download) - annotate - [select for diffs], Tue Nov 18 21:20:32 2008 UTC (3 years, 6 months ago) by macallan
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.164: +3 -3
lines
Diff to previous 1.164 (colored)
don't leak kmem on LP64
Revision 1.164 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:16 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.163: +3 -3
lines
Diff to previous 1.163 (colored)
Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@.
Revision 1.156.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.156: +88 -73
lines
Diff to previous 1.156 (colored)
Sync with HEAD.
Revision 1.131.6.5 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.131.6.4: +86 -71
lines
Diff to previous 1.131.6.4 (colored) to branchpoint 1.131 (colored)
Sync with HEAD.
Revision 1.147.2.3 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:56 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.147.2.2: +2 -3
lines
Diff to previous 1.147.2.2 (colored) to branchpoint 1.147 (colored) next main 1.148 (colored)
Merge in changes between wrstuden-revivesa-base-2 and wrstuden-revivesa-base-3.
Revision 1.147.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.147.2.1: +89 -73
lines
Diff to previous 1.147.2.1 (colored) to branchpoint 1.147 (colored)
Sync with wrstuden-revivesa-base-2.
Revision 1.163 / (download) - annotate - [select for diffs], Sun Sep 7 22:36:36 2008 UTC (3 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
netbsd-5-base,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.162: +2 -3
lines
Diff to previous 1.162 (colored)
Remove what seems to be a debug printf committed by accident.
Revision 1.162 / (download) - annotate - [select for diffs], Mon Sep 1 19:44:05 2008 UTC (3 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.161: +7 -10
lines
Diff to previous 1.161 (colored)
fix the logics of device memory deallocation (non-split devices paniced a diagnostic kernel)
Revision 1.161 / (download) - annotate - [select for diffs], Wed Aug 27 05:40:25 2008 UTC (3 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.160: +7 -6
lines
Diff to previous 1.160 (colored)
better debugging messages.
Revision 1.160 / (download) - annotate - [select for diffs], Fri Aug 15 03:14:20 2008 UTC (3 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.159: +6 -3
lines
Diff to previous 1.159 (colored)
Don't call null handlers
Revision 1.159 / (download) - annotate - [select for diffs], Fri Aug 15 03:08:26 2008 UTC (3 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.158: +72 -66
lines
Diff to previous 1.158 (colored)
Change subr_autoconf.c to use kmem_{*alloc,free}.
in pmf_deregister, don't constantly realloc. just shift everything closer
to the front. and then if empty, free. When adding, add space for 4 more
entries.
Instead of n * sizeof(type) use C99 sizeof(type [n]).
Revision 1.158 / (download) - annotate - [select for diffs], Thu Aug 14 21:51:08 2008 UTC (3 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.157: +8 -3
lines
Diff to previous 1.157 (colored)
Only deallocate dv_private if we had allocated it.
Revision 1.154.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:03 2008 UTC (3 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.154.2.1: +6 -2
lines
Diff to previous 1.154.2.1 (colored) next main 1.155 (colored)
Sync with head.
Revision 1.157 / (download) - annotate - [select for diffs], Mon Jul 28 14:22:14 2008 UTC (3 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-wapbl-nbase,
simonb-wapbl-base
Changes since 1.156: +6 -2
lines
Diff to previous 1.156 (colored)
Avoid NULL pointer dereference on power handler deregistration if it was not registered before. I assume that a lot of drivers do not proper bookkeeping in the case the attach() exits early due to errors. This is hard to fix and to test, so just be generous here.
Revision 1.131.6.4 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.131.6.3: +10 -9
lines
Diff to previous 1.131.6.3 (colored) to branchpoint 1.131 (colored)
Sync with HEAD.
Revision 1.147.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.147: +76 -16
lines
Diff to previous 1.147 (colored)
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.154.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (3 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.154: +10 -11
lines
Diff to previous 1.154 (colored)
Sync with head.
Revision 1.144.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.144.2.2: +17 -11
lines
Diff to previous 1.144.2.2 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)
sync with head.
Revision 1.156 / (download) - annotate - [select for diffs], Wed Jun 11 15:56:11 2008 UTC (3 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: haad-dm
Changes since 1.155: +7 -7
lines
Diff to previous 1.155 (colored)
tighten type checking: use device_t instead of void* at some places
Revision 1.155 / (download) - annotate - [select for diffs], Wed Jun 11 06:26:32 2008 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.154: +5 -6
lines
Diff to previous 1.154 (colored)
In device_pmf_driver_deregister, postpone deleting a device_t's reference to the PMF private data until the private data has no more waiters. This protects against a NULL dereference. In device_pmf_lock1(), test a device_t for PMF registration before dereferencing its PMF private data.
Revision 1.154 / (download) - annotate - [select for diffs], Fri Jun 6 17:52:40 2008 UTC (3 years, 11 months ago) by drochner
Branch: MAIN
Branch point for: simonb-wapbl
Changes since 1.153: +3 -2
lines
Diff to previous 1.153 (colored)
add a KASSERT to catch missing locators
Revision 1.153 / (download) - annotate - [select for diffs], Thu Jun 5 21:55:51 2008 UTC (3 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.152: +3 -2
lines
Diff to previous 1.152 (colored)
make this build
Revision 1.131.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.131.6.2: +5 -0
lines
Diff to previous 1.131.6.2 (colored) to branchpoint 1.131 (colored)
Sync with HEAD. Also fix build.
Revision 1.152 / (download) - annotate - [select for diffs], Wed Jun 4 12:45:28 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.151: +7 -2
lines
Diff to previous 1.151 (colored)
- vm_page: put listq, pageq into a union alongside a LIST_ENTRY, so we can use both types of list. - Make page coloring and idle zero state per-CPU. - Maintain per-CPU page freelists. When freeing, put pages onto the local CPU's lists and the global lists. When allocating, prefer to take pages from the local CPU. If none are available take from the global list as done now. Proposed on tech-kern@.
Revision 1.144.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.144.2.1: +61 -7
lines
Diff to previous 1.144.2.1 (colored) to branchpoint 1.144 (colored)
sync with head
Revision 1.131.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:10 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.131.6.1: +76 -17
lines
Diff to previous 1.131.6.1 (colored) to branchpoint 1.131 (colored)
Sync with HEAD.
Revision 1.151 / (download) - annotate - [select for diffs], Tue May 27 17:50:03 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.150: +17 -6
lines
Diff to previous 1.150 (colored)
Replace a couple of tsleep calls with cv_wait.
Revision 1.150 / (download) - annotate - [select for diffs], Sun May 25 15:03:01 2008 UTC (4 years ago) by jmcneill
Branch: MAIN
Changes since 1.149: +7 -2
lines
Diff to previous 1.149 (colored)
Export device-driver and device-unit properties via drvctl
Revision 1.149 / (download) - annotate - [select for diffs], Sun May 25 12:30:40 2008 UTC (4 years ago) by jmcneill
Branch: MAIN
Changes since 1.148: +41 -2
lines
Diff to previous 1.148 (colored)
Add DRVGETEVENT support for /dev/drvctl, based on devmon support by Jachym Holecek for Google Summer of Code. DRVGETEVENT plist is currently limited to event type, device name, and device parent name.
Revision 1.148 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.147: +2 -3
lines
Diff to previous 1.147 (colored)
Reduce ifdefs due to MULTIPROCESSOR slightly.
Revision 1.144.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:09 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.144: +8 -7
lines
Diff to previous 1.144 (colored)
sync with head.
Revision 1.146.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:26 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.146: +4 -3
lines
Diff to previous 1.146 (colored)
sync with head.
Revision 1.147 / (download) - annotate - [select for diffs], Tue Apr 29 14:35:21 2008 UTC (4 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.146: +4 -3
lines
Diff to previous 1.146 (colored)
Split the runqueue management code into the separate file. OK by <ad>.
Revision 1.146 / (download) - annotate - [select for diffs], Thu Apr 24 13:56:30 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.145: +6 -3
lines
Diff to previous 1.145 (colored)
xc_broadcast: don't try to run cross calls on CPUs that are not yet running.
Revision 1.145 / (download) - annotate - [select for diffs], Tue Apr 22 11:45:28 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.144: +2 -5
lines
Diff to previous 1.144 (colored)
Implement MP callouts as discussed on tech-kern. The CPU binding code is disabled for the moment until we figure out what we want to do with CPUs being offlined.
Revision 1.144 / (download) - annotate - [select for diffs], Mon Apr 14 18:07:51 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.143: +6 -2
lines
Diff to previous 1.143 (colored)
SSP: block interrupts when enabling, and move the init to just before starting secondary processors.
Revision 1.143 / (download) - annotate - [select for diffs], Fri Apr 4 20:13:18 2008 UTC (4 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.142: +10 -10
lines
Diff to previous 1.142 (colored)
use device_xname() where appropriate OK martin
Revision 1.131.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:03 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.131: +571 -77
lines
Diff to previous 1.131 (colored)
Sync with HEAD.
Revision 1.142 / (download) - annotate - [select for diffs], Tue Apr 1 10:37:42 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.141: +61 -21
lines
Diff to previous 1.141 (colored)
Use multiple kthreads to process config_interrupts tasks. Proposed on tech-kern.
Revision 1.131.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.131: +512 -58
lines
Diff to previous 1.131 (colored) next main 1.132 (colored)
sync with head.
Revision 1.119.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.119.6.2: +551 -75
lines
Diff to previous 1.119.6.2 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)
sync with HEAD
Revision 1.95.2.11 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.10: +512 -58
lines
Diff to previous 1.95.2.10 (colored) next main 1.96 (colored)
sync with head.
Revision 1.141 / (download) - annotate - [select for diffs], Wed Mar 12 18:02:22 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Changes since 1.140: +36 -2
lines
Diff to previous 1.140 (colored)
Use device_t and its accessors throughout. Use aprint_*_dev().
Improve PMF-ability.
Add a 'flags' argument to suspend/resume handlers and
callers such as pmf_system_suspend().
Define a flag, PMF_F_SELF, which indicates to PMF that a
device is suspending/resuming itself. Add helper routines,
pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
that call pmf_device_suspend(dev, PMF_F_SELF) and
pmf_device_resume(dev, PMF_F_SELF), respectively. Use
PMF_F_SELF to suspend/resume self in ath(4), audio(4),
rtw(4), and sip(4).
In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
callbacks, provided by the bus front-end, with
self-suspension/resumption. Also, clean up the bus
front-ends. Make sure that the interrupt handler is
disestablished during suspension. Get rid of driver-private
flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
device_is_active()/device_has_power() calls, instead.
In the network-class suspend handler, call if_stop(, 0)
instead of if_stop(, 1), because the latter is superfluous
(bus- and driver-suspension hooks will 'disable' the NIC),
and it may cause recursion.
In the network-class resume handler, prevent infinite
recursion through if_init() by getting out early if we are
self-suspending (PMF_F_SELF).
rtw(4) improvements:
Destroy rtw(4) callouts when we detach it. Make rtw at
pci detachable. Print some more information with the "rx
frame too long" warning.
Remove activate() methods:
Get rid of rtw_activate() and ath_activate(). The device
activate() methods are not good for much these days.
Make ath at cardbus resume with crypto functions intact:
Introduce a boolean device property, "pmf-powerdown". If
pmf-powerdown is present and false, it indicates that a
bus back-end should not remove power from a device.
Honor this property in cardbus_child_suspend().
Set this property to 'false' in ath_attach(), since removing
power from an ath at cardbus seems to lobotomize the WPA
crypto engine. XXX Should the pmf-powerdown property
propagate toward the root of the device tree?
Miscellaneous ath(4) changes:
Warn if ath(4) tries to write crypto keys to suspended
hardware.
Reduce differences between FreeBSD and NetBSD in ath(4)
multicast filter setup.
Make ath_printrxbuf() print an rx descriptor's status &
key index, to help debug crypto errors.
Shorten a staircase in ath_ioctl(). Don't check for
ieee80211_ioctl() return code ERESTART, it never happens.
Revision 1.140 / (download) - annotate - [select for diffs], Tue Mar 11 02:42:41 2008 UTC (4 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.139: +22 -3
lines
Diff to previous 1.139 (colored)
Add device_lookup_private() which is just device_private(device_lookup(&cd, i)) Most callers don't want the device_t, they want their softc and that's what device_lookup_private returns.
Revision 1.139 / (download) - annotate - [select for diffs], Fri Mar 7 07:03:06 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.138: +134 -2
lines
Diff to previous 1.138 (colored)
PMF: synchronize device suspension and resumption.
Revision 1.138 / (download) - annotate - [select for diffs], Fri Mar 7 06:29:20 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.137: +3 -3
lines
Diff to previous 1.137 (colored)
Stop the kernel from panicking when it detaches sysbeep0: do not try to free the device driver-private storage if dv_private is NULL.
Revision 1.137 / (download) - annotate - [select for diffs], Wed Mar 5 15:37:55 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.136: +2 -6
lines
Diff to previous 1.136 (colored)
Remove a couple of bogus KASSERTs.
Revision 1.136 / (download) - annotate - [select for diffs], Wed Mar 5 07:09:18 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.135: +267 -34
lines
Diff to previous 1.135 (colored)
Synchronize readers and writers of the device tree. Add a device iterator object, deviter_t, and methods deviter_init(), deviter_first(), and deviter_next() for visiting each device in the device tree. Take care not to re-shutdown a device in the event that the machine panics during reboot and the operator types 'reboot' at the kernel debugger prompt. While I'm here, sprinkle PMF_FN_ARGS, PMF_FN_PROTO, et cetera.
Revision 1.135 / (download) - annotate - [select for diffs], Wed Mar 5 04:54:24 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.134: +22 -18
lines
Diff to previous 1.134 (colored)
Introduce PMF_FN_{ARGS,PROTO}1, and use PMF_FN_{ARGS,PROTO} more
widely, further helping me to introduce PMF API changes piecemeal.
Revision 1.134 / (download) - annotate - [select for diffs], Tue Mar 4 11:52:37 2008 UTC (4 years, 2 months ago) by cube
Branch: MAIN
Changes since 1.133: +10 -3
lines
Diff to previous 1.133 (colored)
Report a change from the cube-autoconf branch to allow device_private(NULL). That will ease the conversion of drivers to splitted softc/device_t which is mandatory for cube-autoconf and will be done in HEAD.
Revision 1.133 / (download) - annotate - [select for diffs], Thu Feb 28 14:25:12 2008 UTC (4 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.132: +27 -4
lines
Diff to previous 1.132 (colored)
Extend the pmf suspend/resume hooks by a shutdown method, so drivers can register a shutdown handler explicitely. Install a pci bus shutdown handler which disables bus master accesses for all childs, so the drivers don't need to care. This will hopefully be sufficient to replace the shutdownhooks (together with the powerhooks). (It has been suggested to use some general event notification framework for shutdown handlers, but there might be cases where shutdown handlers must be run in an order following the device hierarchy, which wouldn't be easy with event handlers not tied to drivers.) approved by David Young
Revision 1.132 / (download) - annotate - [select for diffs], Wed Feb 27 19:59:05 2008 UTC (4 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.131: +12 -6
lines
Diff to previous 1.131 (colored)
Allow PRIV_ALLOC devices to have no private data.
Revision 1.95.2.10 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.9: +36 -2
lines
Diff to previous 1.95.2.9 (colored)
sync with head.
Revision 1.120.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:46 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.120.4.3: +56 -34
lines
Diff to previous 1.120.4.3 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)
Sync with HEAD.
Revision 1.131 / (download) - annotate - [select for diffs], Tue Feb 12 17:30:59 2008 UTC (4 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
hpcarm-cleanup-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Changes since 1.130: +36 -2
lines
Diff to previous 1.130 (colored)
Introduce device_find_by_xname and device_find_by_driver_unit to replace alldevs iterations all over src. Patch discussed with and improved on suggestioned from cube@.
Revision 1.95.2.9 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.8: +20 -33
lines
Diff to previous 1.95.2.8 (colored)
sync with head.
Revision 1.130 / (download) - annotate - [select for diffs], Wed Feb 6 20:24:17 2008 UTC (4 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.129: +20 -33
lines
Diff to previous 1.129 (colored)
The tricks done in device_foreach_child() still don't make it safe to use by config_detach_children(), because the latter can work recursively and remove any number of devices, so rewrite config_detach_children() to restart list traversal after each call of config_detach(), and since only one user of device_foreach_child() is left (in kern_drvctl.c), and it is simpler to open-code the loop than to deal with callbacks, just remove it.
Revision 1.95.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:17 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.7: +363 -5
lines
Diff to previous 1.95.2.7 (colored)
sync with head
Revision 1.125.2.3 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:24 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.125.2.2: +2 -1
lines
Diff to previous 1.125.2.2 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)
Sync with HEAD
Revision 1.129 / (download) - annotate - [select for diffs], Mon Jan 14 12:40:03 2008 UTC (4 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.128: +4 -3
lines
Diff to previous 1.128 (colored)
add a per-cpu storage allocator.
Revision 1.119.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:14 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.119.6.1: +378 -18
lines
Diff to previous 1.119.6.1 (colored) to branchpoint 1.119 (colored)
sync with HEAD
Revision 1.125.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:39 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.125.2.1: +3 -3
lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored)
Sync with HEAD
Revision 1.128 / (download) - annotate - [select for diffs], Tue Jan 8 06:27:46 2008 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.127: +5 -4
lines
Diff to previous 1.127 (colored)
In device_foreach_child(), use a safe idiom for walking a list whose elements we might be deleting. This stops us from crashing in config_detach_children().
Revision 1.127 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:12 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.126: +2 -3
lines
Diff to previous 1.126 (colored)
Start detangling lock.h from intr.h. This is likely to cause short term breakage, but the mess of dependencies has been regularly breaking the build recently anyhow.
Revision 1.125.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:07 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.125: +45 -2
lines
Diff to previous 1.125 (colored)
Sync with HEAD
Revision 1.120.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:07 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.120.4.2: +360 -3
lines
Diff to previous 1.120.4.2 (colored) to branchpoint 1.120 (colored)
Sync with HEAD.
Revision 1.123.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:13 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.123: +360 -3
lines
Diff to previous 1.123 (colored) next main 1.124 (colored)
Sync with head.
Revision 1.126 / (download) - annotate - [select for diffs], Sun Dec 16 20:49:52 2007 UTC (4 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.125: +45 -2
lines
Diff to previous 1.125 (colored)
Add config_deferred() for forcing the deferred configuration to run, which we need to do from drvctl(4) sometimes. Add device_foreach_child() for calling a function on each child of a device_t. Add config_detach_children() for detaching all of the children of a device (uses device_foreach_child()).
Revision 1.125.4.1 / (download) - annotate - [select for diffs], Sun Dec 16 18:54:05 2007 UTC (4 years, 5 months ago) by cube
Branch: cube-autoconf
Changes since 1.125: +3 -411
lines
Diff to previous 1.125 (colored) next main 1.126 (colored)
Split off device-specific stuff out of subr_autconf.c, and split off autoconf-specific stuff out of device.h. The only functional change is the removal of the unused evcnt.h include in device.h which (*sigh*) has side-effects in x86's intr.h, and probably some other in the rest of the tree but I'm only compiling i386's QEMU for the time being.
Revision 1.123.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:44:13 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.123: +317 -3
lines
Diff to previous 1.123 (colored) next main 1.124 (colored)
sync with head.
Revision 1.125 / (download) - annotate - [select for diffs], Sun Dec 9 21:11:57 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base
Branch point for: cube-autoconf,
bouyer-xeni386
Changes since 1.124: +3 -3
lines
Diff to previous 1.124 (colored)
Use aprint_debug to notify the user that a device does not implement the power management framework rather than aprint_error.
Revision 1.124 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:44 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.123: +317 -3
lines
Diff to previous 1.123 (colored)
Merge jmcneill-pm branch.
Revision 1.120.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:35 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.120.4.1: +5 -5
lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored)
Sync with HEAD.
Revision 1.119.4.9 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:40 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.119.4.8: +21 -21
lines
Diff to previous 1.119.4.8 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.95.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:57 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.6: +5 -5
lines
Diff to previous 1.95.2.6 (colored)
sync with head
Revision 1.119.4.8 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:09 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.7: +5 -5
lines
Diff to previous 1.119.4.7 (colored) to branchpoint 1.119 (colored)
Sync with HEAD. amd64 Xen support needs testing.
Revision 1.123 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:03 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem,
vmlocking2
Changes since 1.122: +5 -5
lines
Diff to previous 1.122 (colored)
Remove the "struct lwp *" argument from all VFS and VOP interfaces. The general trend is to remove it from all kernel interfaces and this is a start. In case the calling lwp is desired, curlwp should be used. quick consensus on tech-kern
Revision 1.119.4.7 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:02 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.6: +8 -2
lines
Diff to previous 1.119.4.6 (colored) to branchpoint 1.119 (colored)
Sync with HEAD.
Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:48 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.120: +16 -13
lines
Diff to previous 1.120 (colored)
Sync with HEAD.
Revision 1.120.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:49 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.120.2.1: +6 -0
lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)
Sync with HEAD
Revision 1.95.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:48 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.5: +16 -13
lines
Diff to previous 1.95.2.5 (colored)
sync with head.
Revision 1.122 / (download) - annotate - [select for diffs], Wed Nov 14 19:45:45 2007 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Changes since 1.121: +8 -2
lines
Diff to previous 1.121 (colored)
Boot the secondary processors just before the interrupt-enabled section of autoconfig. This is needed if APs are able to take interrupts.
Revision 1.119.4.6 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:43 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.5: +10 -13
lines
Diff to previous 1.119.4.5 (colored) to branchpoint 1.119 (colored)
Sync with HEAD.
Revision 1.120.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:17 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.120: +10 -13
lines
Diff to previous 1.120 (colored)
Sync with HEAD
Revision 1.121 / (download) - annotate - [select for diffs], Sun Nov 11 23:22:24 2007 UTC (4 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.120: +10 -13
lines
Diff to previous 1.120 (colored)
Change some initialization of static queues to compile time. (xxx_INIT to xxx_HEAD_INITIALIZER). Drop code which inits non-auto (global or static) variables to 0 since that's already implied by being non-auto. Init some static/global cpu_simple_locks at compile time.
Revision 1.119.4.5 / (download) - annotate - [select for diffs], Wed Nov 7 01:14:15 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.4: +12 -2
lines
Diff to previous 1.119.4.4 (colored) to branchpoint 1.119 (colored)
Introduce device_has_power to fix a race between resuming a device and the device enabling interrupts as seen by jmcneill@ with uhci. Change ehci, ohci, uhci and azalia to use this function to protect the interrupt handler.
Revision 1.119.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:11 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.119: +23 -11
lines
Diff to previous 1.119 (colored)
sync with HEAD
Revision 1.119.4.4 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:37 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.3: +300 -29
lines
Diff to previous 1.119.4.3 (colored) to branchpoint 1.119 (colored)
Refactor PNP API: - Make suspend/resume directly a device functionality. It consists of three layers (class logic, device logic, bus logic), all of them being optional. This replaces D0/D3 transitions. - device_is_active returns true if the device was not disabled and was not suspended (even partially), device_is_enabled returns true if the device was enabled. - Change pnp_global_transition into pnp_system_suspend and pnp_system_resume. Before running any suspend/resume handlers, check that all currently attached devices support power management and bail out otherwise. The latter is not done for the shutdown/panic case. - Make the former bus-specific generic network handlers a class handler. - Make PNP message like volume up/down/toogle PNP events. Each device can register what events they are interested in and whether the handler should be global or not. - Introduce device_active API for devices to mark themselve in use from either the system or the device. Use this to implement the idle handling for audio and input devices. This is intended to replace most ad-hoc watchdogs as well. - Fix somes situations in which audio resume would lose mixer settings. - Make USB host controllers better deal with suspend in the light of shared interrupts. - Flush filesystem cache on suspend. - Flush disk caches on suspend. Put ATA disks into standby on suspend as well. - Adopt drivers to use the new PNP API. - Fix a critical bug in the generic cardbus layer that made D0->D3 break. - Fix ral(4) to set if_stop. - Convert cbb(4) to the new PNP API. - Apply the PCI Express SCI fix on resume again.
Revision 1.95.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:32 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.4: +23 -11
lines
Diff to previous 1.95.2.4 (colored)
sync with head.
Revision 1.117.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:29 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.117.2.2: +23 -11
lines
Diff to previous 1.117.2.2 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)
Sync with head.
Revision 1.119.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:45 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.119: +23 -11
lines
Diff to previous 1.119 (colored) next main 1.120 (colored)
sync with head.
Revision 1.119.4.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:02 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.2: +23 -11
lines
Diff to previous 1.119.4.2 (colored) to branchpoint 1.119 (colored)
Sync with HEAD.
Revision 1.119.4.2 / (download) - annotate - [select for diffs], Mon Oct 1 05:38:07 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.119.4.1: +14 -2
lines
Diff to previous 1.119.4.1 (colored) to branchpoint 1.119 (colored)
Extend device API by device_power_private and device_power_set_private. The latter is a temporary mean until the pnp_register API itself is overhault. This functions allow a generic power handler to store its state independent of the driver. Use this and revamp the PCI power handling. Pretty much all PCI devices had power handlers that did the same thing, generalize this in pci_generic_power_register/deregister and the handler. This interface offers callbacks for the drivers to save and restore state on transistions. After a long discussion with jmcneill@ it was considered to be powerful enough until evidence is shown that devices can handle D1/D2 with less code and higher speed than without the full save/restore. The generic code is carefully written to handle device without PCI-PM support and ensure that the correct registers are written to when D3 loses all state. Reimplement the generic PCI network device handling on top of PCI generic power handling. Introduce pci_disable_retry as used and implemented locally at least by ath(4) and iwi(4). Use it in this drivers to restore behaviour from before the introduction of generic PCI network handling. Convert all PCI drivers that were using pnp_register to the new framework. The only exception is vga(4) as it is commonly used as console device. Add a note therein that this should be fixed later.
Revision 1.120 / (download) - annotate - [select for diffs], Mon Sep 24 18:47:56 2007 UTC (4 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base,
jmcneill-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Changes since 1.119: +23 -11
lines
Diff to previous 1.119 (colored)
Introduce CFATTACH_DECL_NEW and CFATTACH_DECL2_NEW for drivers that don't expect struct device as first field of softc. device_private uses a new field of struct device to give the softc address and that field is either set the struct device for old-style devices or a separate allocation by config_devalloc. Both macros are intended as temporary bandaid until all drivers are converted and will be removed later.
Revision 1.95.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:00 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.3: +246 -138
lines
Diff to previous 1.95.2.3 (colored)
sync with head.
Revision 1.117.2.2 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:37 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.117.2.1: +5 -2
lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored)
Sync with HEAD.
Revision 1.118.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:11 2007 UTC (4 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.118: +5 -2
lines
Diff to previous 1.118 (colored) next main 1.119 (colored)
Sync with HEAD.
Revision 1.119.4.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:29 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.119: +23 -2
lines
Diff to previous 1.119 (colored)
Pull in power management changes from private branch.
Revision 1.119.10.2 / (download) - annotate - [select for diffs], Fri Jul 20 22:15:48 2007 UTC (4 years, 10 months ago) by tsutsui
Branch: matt-mips64
Changes since 1.119.10.1: +1718 -0
lines
Diff to previous 1.119.10.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)
Defer callout_startup2() (which calls softintr_establish(9)) call after cpu_configure(9) for now because softintr(9) is initialized in cpu_configure(9) on some ports. Ok'ed by ad@ on current-users, and fixes hangs on m68k ports during scsi probe.
Revision 1.119.10.1, Fri Jul 20 22:15:47 2007 UTC (4 years, 10 months ago) by tsutsui
Branch: matt-mips64
Changes since 1.119: +0 -1718
lines
FILE REMOVED
file subr_autoconf.c was added on branch matt-mips64 on 2007-07-20 22:15:48 +0000
Revision 1.119 / (download) - annotate - [select for diffs], Fri Jul 20 22:15:47 2007 UTC (4 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5,
matt-mips64-base,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-mips64,
matt-armv6,
jmcneill-pm
Changes since 1.118: +5 -2
lines
Diff to previous 1.118 (colored)
Defer callout_startup2() (which calls softintr_establish(9)) call after cpu_configure(9) for now because softintr(9) is initialized in cpu_configure(9) on some ports. Ok'ed by ad@ on current-users, and fixes hangs on m68k ports during scsi probe.
Revision 1.117.2.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:42 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.117: +124 -2
lines
Diff to previous 1.117 (colored)
Sync with head.
Revision 1.117.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:02 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.117: +124 -2
lines
Diff to previous 1.117 (colored) next main 1.118 (colored)
Sync with head.
Revision 1.118 / (download) - annotate - [select for diffs], Sun Jun 24 01:43:35 2007 UTC (4 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.117: +124 -2
lines
Diff to previous 1.117 (colored)
Extract common code from i386, xen, and sparc64, creating
config_handle_wedges() and read_disk_sectors(). On x86, handle_wedges()
is a thin wrapper for config_handle_wedges(). Share opendisk()
across architectures.
Add kernel code in support of specifying a root partition by wedge
name. E.g., root specifications "wedge:wd0a", "wedge:David's Root
Volume" are possible. (Patches for config(1) coming soon.)
In support of moving disks between architectures (esp. i386 <->
evbmips), I've written a routine convertdisklabel() that ensures
that the raw partition is at RAW_DISK by following these steps:
0 If we have read a disklabel that has a RAW_PART with
p_offset == 0 and p_size != 0, then use that raw partition.
1 If we have read a disklabel that has both partitions 'c'
and 'd', and RAW_PART has p_offset != 0 or p_size == 0,
but the other partition is suitable for a raw partition
(p_offset == 0, p_size != 0), then swap the two partitions
and use the new raw partition.
2 If the architecture's raw partition is 'd', and if there
is no partition 'd', but there is a partition 'c' that
is suitable for a raw partition, then copy partition 'c'
to partition 'd'.
3 Determine the drive's last sector, using either the
d_secperunit the drive reported, or by guessing (0x1fffffff).
If we cannot read the drive's last sector, then fail.
4 If we have read a disklabel that has no partition slot
RAW_PART, then create a partition RAW_PART. Make it span
the whole drive.
5 If there are fewer than MAXPARTITIONS partitions,
then "slide" the unsuitable raw partition RAW_PART, and
subsequent partitions, into partition slots RAW_PART+1
and subsequent slots. Create a raw partition at RAW_PART.
Make it span the whole drive.
The convertdisklabel() procedure can probably stand to be simplified,
but it ought to deal with all but an extraordinarily broken disklabel,
now.
i386: compiled and tested, sparc64: compiled, evbmips: compiled.
Revision 1.115.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:39 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.115.4.1: +121 -138
lines
Diff to previous 1.115.4.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)
Sync with HEAD.
Revision 1.117 / (download) - annotate - [select for diffs], Mon Mar 5 20:32:45 2007 UTC (5 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.116: +121 -138
lines
Diff to previous 1.116 (colored)
Make the attach functions for real and pseudo devices share as much code as possible. For that, split out a function which does the allocation of a softc (without linking it into global structures) and a function which inserts the device into the global alldevs lists and the per-driver cd_devs. There is a little semantic change involved: the pseudo-device code didn't interpret FSTATE_STAR as such, for no good reason. This looks harmless; I'll modify driver frontends as I find ways to test. Get config_makeroom() out of the public namespace - that's clearly an internal of autoconf which drivers can't be allowed to deal with.
Revision 1.115.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:27 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.115: +4 -4
lines
Diff to previous 1.115 (colored)
- sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.95.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:13 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.2: +4 -4
lines
Diff to previous 1.95.2.2 (colored)
sync with head.
Revision 1.116 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:04 2007 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.115: +4 -4
lines
Diff to previous 1.115 (colored)
Replace the Mach-derived boolean_t type with the C99 bool type. A future commit will replace use of TRUE and FALSE with true and false.
Revision 1.95.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95.2.1: +3 -3
lines
Diff to previous 1.95.2.1 (colored)
sync with head.
Revision 1.114.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.114: +3 -3
lines
Diff to previous 1.114 (colored) next main 1.115 (colored)
Sync with head.
Revision 1.114.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.114: +3 -3
lines
Diff to previous 1.114 (colored) next main 1.115 (colored)
sync with head
Revision 1.115 / (download) - annotate - [select for diffs], Mon Oct 2 02:59:38 2006 UTC (5 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: yamt-idlelwp
Changes since 1.114: +3 -3
lines
Diff to previous 1.114 (colored)
remove details of the kernel malloc() implementation from header files: - change MALLOC() and FREE() to just call their function equivalents. - remove references to other malloc()-related constants.
Revision 1.103.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.103: +153 -12
lines
Diff to previous 1.103 (colored) next main 1.104 (colored)
sync with head
Revision 1.95.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.95: +299 -89
lines
Diff to previous 1.95 (colored)
sync with head.
Revision 1.103.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:09 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.103.6.1: +16 -52
lines
Diff to previous 1.103.6.1 (colored) next main 1.104 (colored)
Sync with head.
Revision 1.108.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.108.6.1: +16 -52
lines
Diff to previous 1.108.6.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.108.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108.2.1: +16 -52
lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)
sync with head.
Revision 1.114 / (download) - annotate - [select for diffs], Sun May 14 05:26:59 2006 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.113: +3 -2
lines
Diff to previous 1.113 (colored)
Initialize an uninitialized variable gcc 4 found
Revision 1.108.4.2 / (download) - annotate - [select for diffs], Thu May 11 23:30:15 2006 UTC (6 years ago) by elad
Branch: elad-kernelauth
Changes since 1.108.4.1: +15 -52
lines
Diff to previous 1.108.4.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)
sync with head
Revision 1.113 / (download) - annotate - [select for diffs], Mon May 8 01:04:09 2006 UTC (6 years ago) by thorpej
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.112: +4 -2
lines
Diff to previous 1.112 (colored)
Initialize dv_properties in config_attach_pseudo(). PR kern/33438
Revision 1.112 / (download) - annotate - [select for diffs], Fri May 5 18:04:43 2006 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.111: +13 -52
lines
Diff to previous 1.111 (colored)
Remove the devprop API and switch everthing over to the new proplib. Add a new device_properties() accessor for device_t that returns the device's property dictionary.
Revision 1.103.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.103: +180 -3
lines
Diff to previous 1.103 (colored)
Sync with head.
Revision 1.108.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.108: +17 -5
lines
Diff to previous 1.108 (colored)
sync with head.
Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:40 2006 UTC (6 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108: +17 -5
lines
Diff to previous 1.108 (colored)
sync with head.
Revision 1.108.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:28 2006 UTC (6 years, 1 month ago) by tron
Branch: peter-altq
Changes since 1.108: +17 -5
lines
Diff to previous 1.108 (colored)
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.111 / (download) - annotate - [select for diffs], Wed Mar 29 06:25:35 2006 UTC (6 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.110: +3 -3
lines
Diff to previous 1.110 (colored)
Fix typo.
Revision 1.110 / (download) - annotate - [select for diffs], Wed Mar 29 06:08:16 2006 UTC (6 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.109: +13 -2
lines
Diff to previous 1.109 (colored)
Add a device_private() to return the driver's private data (softc). For now, this just returns the passed device_t (as a void *) because device softcs currently contain a "struct device" as the first member.
Revision 1.109 / (download) - annotate - [select for diffs], Wed Mar 29 06:00:47 2006 UTC (6 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.108: +6 -5
lines
Diff to previous 1.108 (colored)
Replace device_locators() with device_locator(), and use it.
Revision 1.103.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:46 2006 UTC (6 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.103.2.1: +128 -2
lines
Diff to previous 1.103.2.1 (colored) next main 1.104 (colored)
sync with head.
Revision 1.108 / (download) - annotate - [select for diffs], Thu Feb 23 05:48:12 2006 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Changes since 1.107: +15 -2
lines
Diff to previous 1.107 (colored)
Add device_is_a(), which returns true if the device is an instance of the driver specified by name.
Revision 1.107 / (download) - annotate - [select for diffs], Sun Feb 19 15:01:21 2006 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.106: +83 -2
lines
Diff to previous 1.106 (colored)
Add accessor functions for the device_t type. Make device_lookup() a real function, rather than a macro.
Revision 1.106 / (download) - annotate - [select for diffs], Sat Feb 18 19:40:42 2006 UTC (6 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.105: +4 -2
lines
Diff to previous 1.105 (colored)
#if __i386__ the include of opt_splash.h for now - it is only defined on i386. XXX - Jared, this needs to be done differently!
Revision 1.105 / (download) - annotate - [select for diffs], Sat Feb 18 19:09:53 2006 UTC (6 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.104: +32 -2
lines
Diff to previous 1.104 (colored)
If options SPLASHSCREEN and SPLASHSCREEN_PROGRESS are enabled, update the animation periodically during autoconf.
Revision 1.103.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:18 2006 UTC (6 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.103: +42 -3
lines
Diff to previous 1.103 (colored)
sync with head.
Revision 1.104 / (download) - annotate - [select for diffs], Sat Feb 18 05:04:13 2006 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.103: +42 -3
lines
Diff to previous 1.103 (colored)
- Don't expose dev_propdb directly -- provide devprop_*() wrappers instead. - Rework the ARMADILLO / epe device properties interaction so that it actually associates the MAC address property with the epe device instance.
Revision 1.103 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (6 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.102: +3 -3
lines
Diff to previous 1.102 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.102 / (download) - annotate - [select for diffs], Tue Dec 20 04:39:36 2005 UTC (6 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.101: +76 -48
lines
Diff to previous 1.101 (colored)
Use new typedefs.
Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.100: +2 -2
lines
Diff to previous 1.100 (colored)
merge ktrace-lwp.
Revision 1.85.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.7: +77 -98
lines
Diff to previous 1.85.2.7 (colored) next main 1.86 (colored)
Sync with HEAD. Here we go again...
Revision 1.100 / (download) - annotate - [select for diffs], Mon Aug 29 19:13:48 2005 UTC (6 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Changes since 1.99: +3 -11
lines
Diff to previous 1.99 (colored)
in mapply(), call config_match() instead duplicating its code
Revision 1.99 / (download) - annotate - [select for diffs], Fri Aug 26 14:20:40 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.98: +14 -14
lines
Diff to previous 1.98 (colored)
nuke locdesc_t from orbit
Revision 1.98 / (download) - annotate - [select for diffs], Thu Aug 25 22:17:19 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.97: +25 -2
lines
Diff to previous 1.97 (colored)
now that we have information about default locator values we can implement an universal submatch() function covering all the standard cases: if (<configured> != <wildcard> && <configured> != <real>) then fail else ask device match function
Revision 1.97 / (download) - annotate - [select for diffs], Thu Aug 25 18:35:40 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.96: +5 -7
lines
Diff to previous 1.96 (colored)
replace the "locdesc_t" structure carrying the number of locators explicitely by a plain integer array the length in now known to all relevant parties, so this avoids duplication of information, and we can allocate that thing in drivers without hacks
Revision 1.96 / (download) - annotate - [select for diffs], Thu Aug 25 15:06:28 2005 UTC (6 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.95: +40 -12
lines
Diff to previous 1.95 (colored)
Replace the "locnames", attached to cfdata, which was solely good for userconf, by more complete information (including default values) about interface attributes, attached to the drivers which provide them.
Revision 1.95 / (download) - annotate - [select for diffs], Tue Jun 28 18:37:34 2005 UTC (6 years, 10 months ago) by drochner
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.94: +10 -72
lines
Diff to previous 1.94 (colored)
clean up duplication which was to support the old (not locator passing) API for bus "submatch" functions
Revision 1.94 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.92.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.92: +7 -7
lines
Diff to previous 1.92 (colored) next main 1.93 (colored)
sync with -current
Revision 1.92.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.92: +7 -7
lines
Diff to previous 1.92 (colored) next main 1.93 (colored)
sync with head. xen and whitespace. xen part is not finished.
Revision 1.85.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:00 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.6: +7 -7
lines
Diff to previous 1.85.2.6 (colored)
Sync with HEAD. Hi Perry!
Revision 1.93 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Changes since 1.92: +7 -7
lines
Diff to previous 1.92 (colored)
nuke trailing whitespace
Revision 1.85.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:05 2004 UTC (7 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.5: +16 -8
lines
Diff to previous 1.85.2.5 (colored)
Sync with HEAD
Revision 1.92 / (download) - annotate - [select for diffs], Fri Oct 15 04:38:37 2004 UTC (7 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2,
yamt-km-base,
matt-timespec,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Changes since 1.91: +16 -8
lines
Diff to previous 1.91 (colored)
Change config_attach_pseudo() to take a cfdata * that contains the necessary information to create the pseudo-device instance. Pseudo-device device's will reference this cfdata, just as normal devices reference their corresponding cfdata. Welcome to 2.99.10.
Revision 1.85.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:11 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.4: +2 -2
lines
Diff to previous 1.85.2.4 (colored)
Fix the sync with head I botched.
Revision 1.85.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.3: +2 -2
lines
Diff to previous 1.85.2.3 (colored)
Sync with HEAD.
Revision 1.85.2.3 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:39 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.2: +25 -14
lines
Diff to previous 1.85.2.2 (colored)
Sync with HEAD
Revision 1.91 / (download) - annotate - [select for diffs], Mon Aug 30 09:48:05 2004 UTC (7 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.90: +25 -14
lines
Diff to previous 1.90 (colored)
split out the check whether a driver supports a given interface attribure, and add a diagnostic assertion to config_search_loc() which ensures that a supplied attribute name is correct
Revision 1.85.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:58 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85.2.1: +199 -7
lines
Diff to previous 1.85.2.1 (colored)
Sync with HEAD.
Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 17 22:13:18 2004 UTC (7 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.89: +199 -7
lines
Diff to previous 1.89 (colored)
Add some extensions to the autoconf framework to better support loadable drivers and user controlled attach/detach of devices. An outline was given in http://mail-index.NetBSD.org/tech-kern/2004/08/11/0000.html To cite the relevant parts: -Add a "child detached" and a "rescan" method (both optional) to the device driver. (This is added to the "cfattach" for now because this is under the driver writer's control. Logically it belongs more to the "cfdriver", but this is automatically generated now.) The "child detached" is called by the autoconf framework during config_detach(), after the child's ca_detach() function was called but before the device data structure is freed. The "rescan" is called explicitely, either after a driver LKM was loaded, or on user request (see the "control device" below). -Add a field to the device instance where the "locators" (in terms of the autoconf framework), which describe the actual location of the device relatively to the parent bus, can be stored. This can be used by the "child detached" function for easier bookkeeping (no need to lookup by device instance pointer). (An idea for the future is to use this for generation of optimized kernel config files - like DEC's "doconfig".) -Pass the locators tuple describing a device's location to various autoconf functions to support the previous. And since locators do only make sense in relation to an "interface attribute", pass this as well. -Add helper functions to add/remove supplemental "cfdata" arrays. Needed for driver LKMs. There is some code duplication which will hopefully resolved when all "submatch"-style functions are changed to accept the locator argument. Some more cleanup can take place when config(8) issues more information about locators, in particular the length and default values. To be done later.
Revision 1.85.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:54 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.85: +14 -103
lines
Diff to previous 1.85 (colored)
Sync with HEAD
Revision 1.89 / (download) - annotate - [select for diffs], Tue Feb 17 05:03:16 2004 UTC (8 years, 3 months ago) by rtr
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.88: +2 -97
lines
Diff to previous 1.88 (colored)
split off the evcnt code (which is unrelated to autoconfiguration) into a separate file approved by simonb@
Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 17 10:07:58 2003 UTC (8 years, 6 months ago) by keihan
Branch: MAIN
Changes since 1.87: +3 -3
lines
Diff to previous 1.87 (colored)
www.netbsd.org -> www.NetBSD.org
Revision 1.87 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:52 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.86: +3 -7
lines
Diff to previous 1.86 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.86 / (download) - annotate - [select for diffs], Fri Jul 4 00:24:30 2003 UTC (8 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +12 -2
lines
Diff to previous 1.85 (colored)
Add a dev_propdb to hold device properties. Properties are already being used in an ad hoc way by a couple of eval board ports, so might as well tidy it up a little and add some formality. (And, yes, I need to use it in another eval board port.)
Revision 1.85 / (download) - annotate - [select for diffs], Tue Apr 29 00:56:52 2003 UTC (9 years ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.84: +6 -11
lines
Diff to previous 1.84 (colored)
Fix a logic botch that would cause some unwanted messages in the AB_SILENT case.
Revision 1.84 / (download) - annotate - [select for diffs], Sun Mar 16 08:10:00 2003 UTC (9 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.83: +4 -4
lines
Diff to previous 1.83 (colored)
Make cfroots const.
Revision 1.83 / (download) - annotate - [select for diffs], Sun Feb 9 09:14:58 2003 UTC (9 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.82: +3 -3
lines
Diff to previous 1.82 (colored)
const msgs[] some more
Revision 1.55.2.11 / (download) - annotate - [select for diffs], Fri Jan 3 17:10:40 2003 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.55.2.10: +51 -11
lines
Diff to previous 1.55.2.10 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)
Sync with HEAD.
Revision 1.82 / (download) - annotate - [select for diffs], Thu Jan 2 00:12:16 2003 UTC (9 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Changes since 1.81: +3 -3
lines
Diff to previous 1.81 (colored)
move #include <sys/reboot.h> with the rest of the <sys/...> headers.
Revision 1.81 / (download) - annotate - [select for diffs], Wed Jan 1 17:06:59 2003 UTC (9 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.80: +3 -3
lines
Diff to previous 1.80 (colored)
Make it compile without USERCONF.
Revision 1.80 / (download) - annotate - [select for diffs], Tue Dec 31 23:59:11 2002 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +50 -10
lines
Diff to previous 1.79 (colored)
Add support for quiet and silent boots to the autoconfiguration message machinery. Quiet boots look like this (inspired by BSD/OS): . . Found tlp0 at pci0 . . Found wd0 at wdc0 . . Silent boots look like this: . . Detecting hardware...<twiddle>done. . . NOTE: This requires cooperation on the part of all device drivers, changes to which have not yet been checked in.
Revision 1.55.2.10 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:07 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.55.2.9: +24 -0
lines
Diff to previous 1.55.2.9 (colored) to branchpoint 1.55 (colored)
Sync with HEAD.
Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 24 17:33:44 2002 UTC (9 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Changes since 1.78: +26 -2
lines
Diff to previous 1.78 (colored)
Add an EVCNT_ATTACH_STATIC() macro which gathers static evcnts into a link set, which are added to the list of event counters at boot time.
Revision 1.55.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:55 2002 UTC (9 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.8: +1 -1
lines
Diff to previous 1.55.2.8 (colored) to branchpoint 1.55 (colored)
Catch up to -current
Revision 1.78 / (download) - annotate - [select for diffs], Sun Oct 20 02:27:00 2002 UTC (9 years, 7 months ago) by isaki
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-aftermerge
Changes since 1.77: +3 -3
lines
Diff to previous 1.77 (colored)
x68k needs config_cfdriver_lookup() to initialize its console. XXX ad-hoc way?
Revision 1.55.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:54 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.7: +528 -56
lines
Diff to previous 1.55.2.7 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.57.2.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:13 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.4: +325 -51
lines
Diff to previous 1.57.2.4 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)
sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
Revision 1.77 / (download) - annotate - [select for diffs], Wed Oct 9 02:59:55 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.76: +98 -11
lines
Diff to previous 1.76 (colored)
Implement config_attach_pseudo(), which creates an instance of a pseudo-device which behaves like a normal device in the device tree, including the capability to have children.
Revision 1.76 / (download) - annotate - [select for diffs], Fri Oct 4 01:50:53 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +140 -29
lines
Diff to previous 1.75 (colored)
Overhaul the way cfattach structures are looked up. The cfdata entry now carries the name of the attachment (e.g. "tlp_pci" or "audio"), and cfattach structures are registered at boot time on a per-driver basis. The cfdriver and cfattach pointers are cached in the device structure when attached.
Revision 1.75 / (download) - annotate - [select for diffs], Tue Oct 1 18:11:58 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.74: +68 -2
lines
Diff to previous 1.74 (colored)
Add a generic config finalization hook, to be called once all real devices have been discovered. All finalizer routines are iteratively invoked until all of them report that they have done no work. Use this hook to fix a latent bug in RAIDframe autoconfiguration of RAID sets exposed by the rework of SCSI device discovery.
Revision 1.74 / (download) - annotate - [select for diffs], Mon Sep 30 17:36:33 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.73: +26 -4
lines
Diff to previous 1.73 (colored)
Add a config_init() function to initialize the config data structures. Normally this is called by configure(), but some ports (amiga, atari, x68k) need to do this early because of how they find the console.
Revision 1.73 / (download) - annotate - [select for diffs], Fri Sep 27 20:42:12 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.72: +6 -6
lines
Diff to previous 1.72 (colored)
Declare all cfattach structures const.
Revision 1.72 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:45 2002 UTC (9 years, 8 months ago) by provos
Branch: MAIN
Changes since 1.71: +3 -3
lines
Diff to previous 1.71 (colored)
remove trailing \n in panic(). approved perry.
Revision 1.71 / (download) - annotate - [select for diffs], Fri Sep 27 06:30:05 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.70: +3 -4
lines
Diff to previous 1.70 (colored)
Oops, missed one place to use the STREQ() macro.
Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 27 06:12:55 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +7 -3
lines
Diff to previous 1.69 (colored)
Skip pspec-less entries (root nodes) in cfparent_match(). This fixes the "kernel crashes" component of PR #18433.
Revision 1.69 / (download) - annotate - [select for diffs], Fri Sep 27 05:45:03 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +20 -5
lines
Diff to previous 1.68 (colored)
Some ports (like Amiga) want to use the config machinery VERY early (to initialize the console). Support this when doing cfdriver lookup.
Revision 1.68 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:23 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +13 -2
lines
Diff to previous 1.67 (colored)
Introduce a new routine, config_match(), which invokes the cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
Revision 1.67 / (download) - annotate - [select for diffs], Fri Sep 27 02:24:33 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +91 -15
lines
Diff to previous 1.66 (colored)
Rather than referencing the cfdriver directly in the cfdata entries, instead use a string naming the driver. The cfdriver is then looked up in a list which is built at run-time.
Revision 1.66 / (download) - annotate - [select for diffs], Thu Sep 26 04:07:35 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.65: +71 -17
lines
Diff to previous 1.65 (colored)
Overhaul the way parent attachments are specified; instead of using
a vector of indices into the cfdata table to specify potential parents,
record the interface attributes that devices have and add a new "parent
spec" structure which lists the iattr, as well as optionally listing
specific parent device instances.
See:
http://mail-index.netbsd.org/tech-kern/2002/09/25/0014.html
...for a detailed description.
While here, const poison some things, as suggested by Matt Thomas.
Revision 1.65 / (download) - annotate - [select for diffs], Mon Sep 23 23:16:06 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +56 -29
lines
Diff to previous 1.64 (colored)
Add support for multiple cfdata tables to the internals of the autoconfiguration machinery, derived from PR #2112. More work is left to do, including revamping how matches against a candidate parent are done.
Revision 1.57.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:02 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.3: +3 -3
lines
Diff to previous 1.57.2.3 (colored) to branchpoint 1.57 (colored)
sync kqueue branch with HEAD
Revision 1.55.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:23 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.6: +1 -1
lines
Diff to previous 1.55.2.6 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.63.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:37 2002 UTC (9 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.63: +3 -3
lines
Diff to previous 1.63 (colored) next main 1.64 (colored)
catch up with -current.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Jul 10 19:04:09 2002 UTC (9 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.63: +3 -3
lines
Diff to previous 1.63 (colored)
fix off-by-one error in string len check
Revision 1.57.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:33 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.2: +5 -2
lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored)
catch up with -current on kqueue branch
Revision 1.55.2.6 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:19 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.5: +5 -2
lines
Diff to previous 1.55.2.5 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.63 / (download) - annotate - [select for diffs], Mon Apr 15 05:30:12 2002 UTC (10 years, 1 month ago) by gmcgarry
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.62: +5 -2
lines
Diff to previous 1.62 (colored)
When searching for devices also skip those deleted by userconf. Problem reported by uwe.
Revision 1.62.6.3 / (download) - annotate - [select for diffs], Sat Apr 6 16:04:31 2002 UTC (10 years, 1 month ago) by eeh
Branch: eeh-devprop
Changes since 1.62.6.2: +35 -5
lines
Diff to previous 1.62.6.2 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)
Add dev_dumprops() for debug and make dev_mdgetprop() conditional.
Revision 1.62.6.2 / (download) - annotate - [select for diffs], Tue Mar 26 17:09:53 2002 UTC (10 years, 2 months ago) by eeh
Branch: eeh-devprop
Changes since 1.62.6.1: +28 -13
lines
Diff to previous 1.62.6.1 (colored) to branchpoint 1.62 (colored)
Add locator properites in config_attach(), add a "cd-name" property to the rest of the locators, and always allocate a combined device+softc.
Revision 1.62.6.1 / (download) - annotate - [select for diffs], Fri Mar 22 18:29:52 2002 UTC (10 years, 2 months ago) by eeh
Branch: eeh-devprop
Changes since 1.62: +260 -37
lines
Diff to previous 1.62 (colored)
Add devprops implementation.
Revision 1.57.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:49 2002 UTC (10 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.1: +20 -2
lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)
Catch up with -current.
Revision 1.55.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:45 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.4: +20 -2
lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 15 11:18:26 2002 UTC (10 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: newlock-base,
newlock,
ifpoll-base,
ifpoll,
eeh-devprop-base
Branch point for: eeh-devprop
Changes since 1.61: +20 -2
lines
Diff to previous 1.61 (colored)
Add a "show event" ddb command to show the event counters.
Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:59 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.57: +39 -29
lines
Diff to previous 1.57 (colored)
Sync kqueue branch with -current.
Revision 1.55.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:36 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.3: +39 -28
lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.61 / (download) - annotate - [select for diffs], Mon Dec 10 00:33:04 2001 UTC (10 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +4 -4
lines
Diff to previous 1.60 (colored)
Don't compare an int against NULL.
Revision 1.60 / (download) - annotate - [select for diffs], Wed Dec 5 16:12:42 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.59: +5 -5
lines
Diff to previous 1.59 (colored)
Use NULL instead of 0 in a few places.
Revision 1.59 / (download) - annotate - [select for diffs], Sun Dec 2 02:40:57 2001 UTC (10 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.58: +39 -28
lines
Diff to previous 1.58 (colored)
Move the code that expands the cd_devs array into a subroutine.
Revision 1.55.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:39 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.2: +2 -3
lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored)
Catch up to -current.
Revision 1.57.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:51 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.57: +2 -3
lines
Diff to previous 1.57 (colored) next main 1.58 (colored)
Sync the thorpej-mips-cache branch with -current.
Revision 1.58 / (download) - annotate - [select for diffs], Mon Nov 12 15:21:46 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.57: +2 -3
lines
Diff to previous 1.57 (colored)
clean up whitespace
Revision 1.55.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:34 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55.2.1: +13 -2
lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored)
Catch up with -current.
Revision 1.57 / (download) - annotate - [select for diffs], Sun Jul 1 02:56:20 2001 UTC (10 years, 10 months ago) by gmcgarry
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache,
kqueue
Changes since 1.56: +13 -2
lines
Diff to previous 1.56 (colored)
In-kernel device configuration manager - allows modification of device locators at run-time. Written by Mats O Jansson <moj@stacken.kth.se>. Reworked by Jun-ichiro itojun Hagino <itojun@netbsd.org>.
Revision 1.55.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:58 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.55: +7 -5
lines
Diff to previous 1.55 (colored)
Catch up to -current.
Revision 1.56 / (download) - annotate - [select for diffs], Mon May 28 16:40:31 2001 UTC (11 years ago) by thorpej
Branch: MAIN
Changes since 1.55: +7 -5
lines
Diff to previous 1.55 (colored)
Statically-initialize `allevents' so that events can be registered very early (before main() is called).
Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:06 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44: +170 -86
lines
Diff to previous 1.44 (colored) next main 1.45 (colored)
Update thorpej_scsipi to -current as of a month ago
Revision 1.55 / (download) - annotate - [select for diffs], Sat Jul 8 18:11:02 2000 UTC (11 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.54: +3 -3
lines
Diff to previous 1.54 (colored)
Format paranoia
Revision 1.50.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:14 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.50: +100 -70
lines
Diff to previous 1.50 (colored) next main 1.51 (colored)
Sync w/ netbsd-1-5-base.
Revision 1.54 / (download) - annotate - [select for diffs], Tue Jun 13 22:36:17 2000 UTC (11 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5
Changes since 1.53: +10 -7
lines
Diff to previous 1.53 (colored)
Replace my personal attribution string ("This product includes software
developed by Christopher G. Demetriou for the NetBSD Project.") with
a generic NetBSD one ("This product includes software developed for the
NetBSD Project. See http://www.netbsd.org/ for information about NetBSD.")
so that this same set of terms can be used by others if they so desire.
(Eventually i'll be converting more/all of my code.)
Revision 1.53 / (download) - annotate - [select for diffs], Sun Jun 4 19:15:19 2000 UTC (11 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.52: +66 -12
lines
Diff to previous 1.52 (colored)
Implement the more flexiable `evcnt' interface as discussed (briefly) on tech-kern and now documented in evcnt(9).
Revision 1.52 / (download) - annotate - [select for diffs], Fri Jun 2 01:48:50 2000 UTC (11 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.51: +7 -7
lines
Diff to previous 1.51 (colored)
another mod of opportunity: const poison. (cfprint_t should take const char * as second arg, too, but that's Hard.) also, convert use of "(char *)0" to NULL.
Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 2 01:31:54 2000 UTC (11 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.50: +31 -58
lines
Diff to previous 1.50 (colored)
__P and K&R declarations -> ANSI protos + declarations. tweak NetBSD IDs, and __KERNEL_RCSID to subr_autoconf.c.
Revision 1.50 / (download) - annotate - [select for diffs], Tue Mar 28 17:30:10 2000 UTC (12 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.49: +22 -22
lines
Diff to previous 1.49 (colored)
Get rid of a lot of register declarations. (Why isn't this done everywhere in the kernel already?)
Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 1 04:01:19 2000 UTC (12 years, 3 months ago) by danw
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.48: +2 -3
lines
Diff to previous 1.48 (colored)
#define __HAVE_DEVICE_REGISTER on ports that have it, and check for that, rather than a list of architecture defines, in config_attach
Revision 1.48 / (download) - annotate - [select for diffs], Tue Jan 25 13:23:26 2000 UTC (12 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.47: +7 -4
lines
Diff to previous 1.47 (colored)
In the diagnostic check in config_detach, inform the name of parent and its child who shouldn't be exist.
Revision 1.47 / (download) - annotate - [select for diffs], Mon Jan 24 18:03:19 2000 UTC (12 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +30 -1
lines
Diff to previous 1.46 (colored)
Add a `config_pending' semaphore to block mounting of the root file system until all device driver discovery threads have had a chance to do their work. This in turn blocks initproc's exec of init(8) until root is mounted and process start times and CWD info has been fixed up. Addresses kern/9247.
Revision 1.46 / (download) - annotate - [select for diffs], Tue Jan 18 07:45:04 2000 UTC (12 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.45: +26 -1
lines
Diff to previous 1.45 (colored)
use the old cloning-device cf_unit increment behaviour, if __BROKEN_CONFIG_UNIT_USAGE is defined.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 30 01:03:43 1999 UTC (12 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.44: +12 -14
lines
Diff to previous 1.44 (colored)
avoid 'marching unit numbers' for cloning devices. (e.g., previously, if you com* at pcmcia?, and com3 and com4 as pcmcia cards, and removed and reinserted the card that was com3, it would become com5. if you then removed and reinserted com4, it would become com6. etc.) Now, instead of incrementing FSTATE_STAR configuration entries for a driver when a cloning instance is attached, leave it alone, and scan the device softc array (starting at the first cloning unit number) for units which are available for use. This wastes a tiny bit of time (can require a linear scan of the softc table for the device), but device attachment should be relatively infrequent and the number of units of each type of device is never particularly large anyway.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 23 15:14:57 1999 UTC (12 years, 8 months ago) by minoura
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.43: +2 -2
lines
Diff to previous 1.43 (colored)
First step toward network boot. By Takeshi Nakayama <tn@catvmics.ne.jp>.
Revision 1.43 / (download) - annotate - [select for diffs], Fri Sep 17 20:11:56 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +21 -14
lines
Diff to previous 1.42 (colored)
- Centralize the declaration and clearing of `cold'. - Call configure() after setting up proc0. - Call initclocks() from configure(), after cpu_configure(). Once the clocks are running, clear `cold'. Then run interrupt-driven autoconfiguration.
Revision 1.42 / (download) - annotate - [select for diffs], Wed Sep 15 19:37:08 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +64 -12
lines
Diff to previous 1.41 (colored)
Add a mechanism to defer configuration of children until interrupts are enabled.
Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 15 18:10:34 1999 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +12 -4
lines
Diff to previous 1.40 (colored)
Rename the machine-dependent autoconfiguration entry point `cpu_configure()', and rename config_init() to configure() and call cpu_configure() from there.
Revision 1.37.6.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:03 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.37: +3 -2
lines
Diff to previous 1.37 (colored) next main 1.38 (colored)
Sync w/ -current.
Revision 1.40 / (download) - annotate - [select for diffs], Sun Jun 20 00:51:37 1999 UTC (12 years, 11 months ago) by ragge
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.39: +3 -2
lines
Diff to previous 1.39 (colored)
Add vax to user of device_register.
Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 21 02:37:07 1999 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.38: +1 -2
lines
Diff to previous 1.38 (colored)
revert previous. oops.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 21 02:31:50 1999 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.37: +3 -2
lines
Diff to previous 1.37 (colored)
properly test the msgsz as "msgsz - len". from PR#7386
Revision 1.37 / (download) - annotate - [select for diffs], Thu Dec 3 23:50:39 1998 UTC (13 years, 5 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kenh-if-detach-base,
kenh-if-detach,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Changes since 1.36: +2 -2
lines
Diff to previous 1.36 (colored)
Enable `device_register()' for the sparc.
Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 18 18:40:54 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +2 -2
lines
Diff to previous 1.35 (colored)
Oops, fix uninitialzed variable in last.
Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 18 18:40:08 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +3 -4
lines
Diff to previous 1.34 (colored)
Be a bit more precise about how we allow no deactivation support in config_detach().
Revision 1.34 / (download) - annotate - [select for diffs], Wed Nov 18 18:38:07 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +7 -3
lines
Diff to previous 1.33 (colored)
If the ca_activate entry point fails, make sure to restore the old dv_flags.
Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 17 08:38:07 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +172 -1
lines
Diff to previous 1.32 (colored)
Implement config_detach(), mostly from Chris Demetriou, modified slightly by Ken Hornstein and myself. Add flags to struct device, and define one as "active". Devices are initially active from config_attach(). Their active state may be changed via config_activate() and config_deactivate(). These new functions assume that the device being manipulated will recursively perform the action on its children. Together, config_deactivate() and config_detach() may be used to implement interrupt-driven device detachment. config_deactivate() will take care of things that need to be performed at interrupt time, and config_detach() (which must run in a valid thread context) finishes the job, which may block.
Revision 1.32 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:08 1998 UTC (13 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: chs-ubc-base,
chs-ubc
Changes since 1.31: +1 -235
lines
Diff to previous 1.31 (colored)
kill the last remnants of __BROKEN_INDIRECT_CONFIG. (only the pica port used it, and it's non-working and apparently slated for replacement.)
Revision 1.29.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:56 1998 UTC (13 years, 9 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.29: +5 -5
lines
Diff to previous 1.29 (colored) next main 1.30 (colored)
Revert cdevsw mmap routines to return int.
Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:14 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.30: +11 -11
lines
Diff to previous 1.30 (colored)
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:51 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.29: +5 -5
lines
Diff to previous 1.29 (colored)
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 9 18:46:12 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.28: +65 -1
lines
Diff to previous 1.28 (colored)
Implement config_defer(), a generic mechanism to defer the configuration of a device until all of its parent's children have been attached.
Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:31 1998 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
Merge with Lite2 + local changes
Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:01 1998 UTC (14 years, 2 months ago) by fvdl
Branch: netbsd,
CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +8 -5
lines
Diff to previous 1.1.1.1 (colored)
Import 4.4BSD-Lite2
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:44 1998 UTC (14 years, 2 months ago) by fvdl
Branch: netbsd,
CSRG
CVS Tags: lite-1,
date-03-may-96
Changes since 1.1: +30 -4
lines
Diff to previous 1.1 (colored)
Import 4.4BSD-Lite for reference
Revision 1.26.10.1 / (download) - annotate - [select for diffs], Mon Sep 22 06:33:47 1997 UTC (14 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.26: +3 -3
lines
Diff to previous 1.26 (colored) next main 1.27 (colored)
Update marc-pcmcia branch from trunk.
Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 20 14:16:43 1997 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-base
Changes since 1.26: +3 -3
lines
Diff to previous 1.26 (colored)
Call device_register() on i386 too.
Revision 1.26 / (download) - annotate - [select for diffs], Tue Dec 17 08:59:15 1996 UTC (15 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal,
thorpej-setroot,
mrg-vm-swap,
marc-pcmcia-bp,
is-newarp-before-merge,
is-newarp-base,
is-newarp,
bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.25: +3 -3
lines
Diff to previous 1.25 (colored)
Call device_register() if __alpha__ || hp300
Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 5 00:09:10 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.24: +165 -7
lines
Diff to previous 1.24 (colored)
Check for a new definition, __BROKEN_INDIRECT_CONFIG, and if it is _not_
defined:
define match functions to take a struct cfdata * as their second
argument, config_search() to take a struct cfdata * as its second
argument, and config_{root,}search() to return struct cfdata *.
remove 'cd_indirect' cfdriver element.
remove config_scan().
remove config_make_softc() as a seperate function, reintegrating
its functionality into config_attach().
Ports will define __BROKEN_INDIRECT_CONFIG until their drivers prototypes
are updated to work with the new definitions, and until it is sure that
their indirect-config drivers do not assume that they have a softc
in their match routine.
Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:37 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.23: +5 -5
lines
Diff to previous 1.23 (colored)
backout previous kprintf change
Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:23 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.22: +5 -5
lines
Diff to previous 1.22 (colored)
printf -> kprintf, sprintf -> ksprintf
Revision 1.21.4.1 / (download) - annotate - [select for diffs], Thu Jun 13 18:49:07 1996 UTC (15 years, 11 months ago) by cgd
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA
Changes since 1.21: +4 -1
lines
Diff to previous 1.21 (colored) next main 1.22 (colored)
pull up from trunk: >#ifdef __alpha__, call a machine-dependent function with new device >structure and 'aux', right before ca_attach is called for the >newly-attached device. This allows the alpha port to do root device >autodetection without modifying every bus and device driver which could >be in the 'boot path.' In the long run, it may make sense to make >this machine-independent.
Revision 1.22 / (download) - annotate - [select for diffs], Thu Jun 13 04:50:29 1996 UTC (15 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.21: +4 -1
lines
Diff to previous 1.21 (colored)
#ifdef __alpha__, call a machine-dependent function with new device structure and 'aux', right before ca_attach is called for the newly-attached device. This allows the alpha port to do root device autodetection without modifying every bus and device driver which could be in the 'boot path.' In the long run, it may make sense to make this machine-independent.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 4 06:06:18 1996 UTC (16 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.20: +11 -15
lines
Diff to previous 1.20 (colored)
Make config_found_sm() (and therefore config_found()) and config_rootfound() return a struct device * of attached device, or NULL if device attach failed, rather than 1/0 for success/failure, so that code that bus code which needs to know what the child device is doesn't have to open-code a hacked variant of config_found(). Make config_attach() return struct device *, rather than void, to facilitate that.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Apr 4 00:25:49 1996 UTC (16 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.19: +17 -7
lines
Diff to previous 1.19 (colored)
change 'struct device' and 'struct evcnt' lists (alldevs and allevents) to be TAILQ's. TAILQ_HEAD's of those structs are now 'struct devicelist' and 'struct evcntlist', respectively.
Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 17 01:00:43 1996 UTC (16 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +19 -11
lines
Diff to previous 1.18 (colored)
New device attachment scheme: - split softc size and match/attach out from cfdriver into a new struct cfattach. - new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 27 21:45:46 1996 UTC (16 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.17: +7 -5
lines
Diff to previous 1.17 (colored)
Replace config_found() with config_found_sm(), which adds a cfmatch_t to the argument list. This allows easy 'submatching', which will eliminate a fair bit of slightly tricky duplicated code from various busses. config_found() is now a #define in sys/device.h, which invokes config_found_sm().
Revision 1.17 / (download) - annotate - [select for diffs], Sun Feb 4 02:16:35 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.16: +5 -2
lines
Diff to previous 1.16 (colored)
First pass at prototyping
Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 4 06:40:11 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.15: +53 -12
lines
Diff to previous 1.15 (colored)
Add a new function config_scan(), which just calls a particular function with each plausibly cfdata, ignoring the priority mechanism completely.
Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 4 03:12:20 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +6 -13
lines
Diff to previous 1.14 (colored)
Export struct matchinfo and mapply().
Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 4 03:07:17 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +11 -12
lines
Diff to previous 1.13 (colored)
Calculate indirectness earlier, and stor it in the struct matchinfo.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 4 00:14:04 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +11 -8
lines
Diff to previous 1.12 (colored)
config_make_softc() needs pointer to parent; and fix a couple of other bogons.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 3 22:01:09 1994 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +88 -48
lines
Diff to previous 1.11 (colored)
If cd_indirect is set in the parent, create a softc early and pass it to the probe routine.
Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:46 1994 UTC (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -1
lines
Diff to previous 1.10 (colored)
be more careful with types, also pull in headers where necessary.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 7 09:07:56 1994 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +16 -23
lines
Diff to previous 1.9 (colored)
Simplify the code to expand the dev array slightly, and make sure the size is a power of 2.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:54 1994 UTC (17 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Changes since 1.8: +4 -2
lines
Diff to previous 1.8 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.8 / (download) - annotate - [select for diffs], Fri May 20 04:31:22 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
reorg derivations, slightly.
Revision 1.7 / (download) - annotate - [select for diffs], Fri May 20 04:15:04 1994 UTC (18 years ago) by glass
Branch: MAIN
Changes since 1.6: +32 -6
lines
Diff to previous 1.6 (colored)
update to 4.4-lite + local changes
Revision 1.6 / (download) - annotate - [select for diffs], Thu May 12 14:15:03 1994 UTC (18 years ago) by glass
Branch: MAIN
Changes since 1.5: +5 -5
lines
Diff to previous 1.5 (colored)
slightly more optimal fix from torek himself
Revision 1.5 / (download) - annotate - [select for diffs], Thu May 12 05:21:45 1994 UTC (18 years ago) by glass
Branch: MAIN
Changes since 1.4: +6 -4
lines
Diff to previous 1.4 (colored)
fix chopps, et al discovered bug in allocating cd_devs array
Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:24 1993 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +4 -4
lines
Diff to previous 1.3 (colored)
Canonicalize all #includes.
Revision 1.3.2.3 / (download) - annotate - [select for diffs], Mon Nov 29 06:07:53 1993 UTC (18 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.3.2.2: +20 -1
lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)
Implement dk_establish().
Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 21:07:04 1993 UTC (18 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.3.2.1: +4 -4
lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)
Canonicalize all #includes.
Revision 1.3.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:21 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
init_main.c: clock changes from 4.4; initclocks() is called after vfsinit(). No startrtclock() or enablertclock(). Some pseudo-device cruft, but this needs to be updated. kern_clock.c: from 4.4: gatherstats() --> statclock(). statclock(), hardclock(), and softclock() take a `struct clockframe *'. New initclocks(), harclock(), statclock(), startprofclock(), and stopprofclock(). kern_synch.c: from 4.4: machine-independent swtch(), which is now where process time is integrated. Calls cpu_swtch() with the current process as an arg. subr_autoconf.c: Fix typo. subr_prf.c: msgbufp and msgbufmapped are define in machdep.c tty.c: Make TIOCHPCL #ifdef COMPAT_43. Incorporate changes from main branch.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 15 23:04:50 1993 UTC (18 years, 9 months ago) by glass
Branch: MAIN
CVS Tags: to_lamp_cvs,
magnum-base,
first_uplaod
Branch point for: magnum
Changes since 1.2: +21 -8
lines
Diff to previous 1.2 (colored)
runs up to and including configure(). todo: exceptions, interrupt support, make isrs affect vector table kernel/user stacks
Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 13 22:00:55 1993 UTC (18 years, 9 months ago) by glass
Branch: MAIN
Changes since 1.1: +4 -4
lines
Diff to previous 1.1 (colored)
baseline revision
Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 13 13:19:59 1993 UTC (18 years, 9 months ago) by glass
Branch: MAIN
snapshot of intergration of torek's config