summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_autoconf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove now unused zeroref member in cfattach structures.miod2006-01-211-6/+2
|
* In config_detach_children(), after detaching a device, restart the devicemiod2006-01-131-16/+24
| | | | | | | | list walk from its parent device, as the device which was following it may have been one of its children, and thus gone as well. Found the hard way using the strict queue macros. Feedback and help toby@, ok deraadt@
* ansi and deregister. No binary change.jsg2005-12-091-75/+36
|
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-4/+4
| | | | no change in compiler assembly output.
* Create the init process earlier, before the root filesystem is mounted,miod2004-11-231-1/+29
| | | | | | | | | | | and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
* Fix a minor bug where indirect config crashes the kernelpefo2004-08-031-4/+8
| | | | when match verbose is turend on.
* Devices hot plugging support.grange2004-05-301-1/+18
| | | | | | | | | | | | | | | The hotplug pseudo-device passes device attachment and detachment events to userland. When a device attaches or detaches, the corresponding event is queued. The events can then be obtained from the queue through the read(2) call on the /dev/hotplug device file. Each event consists of event type (attach/detach), device class (DV_*) and device name (sd1 e.g.). We have hotplug pseudo-device on alpha, amd64, i386, macppc and sparc64. Since it was tested only on i386 other archs has it commented out in GENERIC until tested. The idea liked peter@ tedu@ drahn@ millert@ marco@ henning@. Ok deraadt@.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* string fixes; tedu okderaadt2003-05-031-2/+2
|
* Tweak previous sprintf -> snprintf fix to eliminate unnecessarykrw2003-04-191-7/+4
| | | | | | | | intermediate variable. Suggested by deraadt@. ok henning@ millert@ tdeval@
* Use snprintf() to simplify device name construction, removing nowkrw2003-03-301-28/+6
| | | | | | superfluous variables and the function 'number()'. ok deraadt@ and millert@
* Remove some '#if 0' cruft.art2002-10-061-60/+1
|
* Introduce a new file, machine/internal_types.h, to hold that specific archespie2002-04-241-2/+2
| | | | | | | | | | | | | type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* Add __HAVE_DEVICE_REGISTER to hp300/alpha (sparc64 already had it) andjason2001-09-011-7/+2
| | | | | clean up the arch specific #ifdef's in subr_autoconf.c; from NetBSD. (tested by me on alpha/sparc64 and miod on hp300)
* implement autoconf mechanism using device_register(); from NetBSD.jason2001-08-311-4/+4
|
* range error; < cd_ndevs, not <=deraadt2000-04-091-2/+2
|
* Added config_detach_children, config_activate_children.csapuntz2000-04-091-2/+139
| | | | | | | Added ref counting to devices: device_ref, device_unref and a new method for devices : ca_zeroref, called when the ref count hits zero. Note that ca_zeroref may be called from interrupt context.
* From NetBSD; new device detaching infrastructure.niklas1999-08-081-1/+163
|
* From NetBSD; config_defer to defer configuration of a device until after allniklas1999-08-051-4/+65
| | | | other siblings.
* Remove obsolete detach logic in preparation of a newer oneniklas1999-07-231-140/+5
|
* panic prints a newline for you, don't do it in the panic stringmillert1999-01-111-2/+2
|
* Formerly reuse of unit numbers of detached devices was impossible, withniklas1998-05-111-36/+74
| | | | | | | | | | | | | | | this change starred devices will search from the first allowed unit for such devices and up for free units when attaching. This means you have to rerun config(8) before yopu compile current kernels. FYI, this is a necessity when doing PCMCIA flashcard reading, otherwise you soon run out of unit numbers. I have also added a way to detach all children of a certain device, used in a new PCMCIA framework to come, so you detach all functions on a single PCMCIA card when pulling it out. A few bugs wrt starred devices fixed in the autoconfig_verbose code too. Last and least, fixed some panic messages.
* Please GCC 2.8's harsher view of good styleniklas1998-02-201-2/+3
|
* Prevent a NULL-deref in the autoconf_verbose caseniklas1998-01-211-4/+7
|
* typoniklas1998-01-201-4/+4
|
* Provide a way to debug probes. set autoconf_verbose via DDB, orniklas1998-01-201-2/+17
| | | | | option AUTOCONF_VERBOSE=1 in your kernel config.
* indentmickey1997-11-231-45/+45
|
* hp300 needs device_register(), too.downsj1997-02-031-4/+4
|
* export struct cfdata cfdata[];mickey1996-11-211-2/+1
|
* As alpha uses device_register, it needs its proto tooniklas1996-10-181-3/+7
|
* no mknod in chrootderaadt1996-09-241-2/+2
|
* Remove unnecessary prototypeniklas1996-08-151-3/+1
|
* prettyderaadt1996-07-021-10/+7
|
* -Wall & -Wstrict-prototype fixesniklas1996-07-021-3/+3
|
* Added support for user modifiable kernel at boot (-c) /majamaja1996-06-231-1/+7
|
* sick netbsd alpha hack (why not do what other ports do?)deraadt1996-06-181-1/+4
|
* Make sure config_init gets called before consinit, as at least one portniklas1996-05-071-2/+4
| | | | | | actually uses config_* functions for console attachment. Document config_init should not call malloc as the move was over the mem-init function calls too.
* Pull in John Kohl's [jtk@netbsd.org] most recent (15Apr96) APM and PCMCIA workhvozda1996-04-291-29/+231
| | | | (original PCMCIA framework by Stefan Grefen [grefen@convex.com]).
* partial sync with netbsd 960418, more to comederaadt1996-04-211-32/+46
|
* NetBSD 960317 mergeniklas1996-04-191-6/+8
|
* From NetBSD: 960217 mergeniklas1996-03-031-2/+6
|
* initial import of NetBSD treederaadt1995-10-181-0/+429