Age | Commit message (Collapse) | Author |
|
ok marco@ deraadt@
|
|
"previous" device still being there, so if we detach a device, we really
have to start from scratch again (like the comment on this code actually
says we should). Simplifies the code as a bonus.
ok dlg@, deraadt@
|
|
ok miod@ deraadt@ krw@
|
|
eyeballed and ok dlg@
|
|
regular things. everyone here buys it, and i'm 90% sure miod will be
ok with it
|
|
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)
|
|
|
|
ok henning
|
|
|
|
sensors on attach/detach. hotplugd changes following in a minute.
ok henning.
|
|
cd_ndevs is set to 0.
"No kidding!" deraadt@ "Seems to make sense to me." beck@ "Seems right." miod@
|
|
allows cf_unit to be decremented correctly.
'put it in' deraadt@ "i think it's good' tedu@
|
|
cd_devs[] array the same as finding a NULL entry.
Fixes inconsistant assignment of unit numbers to media slots on the
Neodio 8-in-1 USB card reader donated by Manuel Pata. Previously the
unit numbers would vary depending on whether it had attached an even
or odd number of times.
'reads ok' marco@ ok miod@
|
|
|
|
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@
|
|
|
|
no change in compiler assembly output.
|
|
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.
|
|
when match verbose is turend on.
|
|
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@.
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
intermediate variable.
Suggested by deraadt@.
ok henning@ millert@ tdeval@
|
|
superfluous variables and the function 'number()'.
ok deraadt@ and millert@
|
|
|
|
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.
|
|
|
|
clean up the arch specific #ifdef's in subr_autoconf.c; from NetBSD.
(tested by me on alpha/sparc64 and miod on hp300)
|
|
|
|
|
|
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.
|
|
|
|
other siblings.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
option AUTOCONF_VERBOSE=1
in your kernel config.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|