freebsd-skq/sys/pc98/cbus
attilio 7f42e47a67 Make the newbus subsystem Giant free by adding the new newbus sxlock.
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra <giovanni dot trematerra at gmail dot com>,
                Brandon Gooch <jamesbrandongooch at gmail dot com>
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
2009-08-02 14:28:40 +00:00
..
30line.h
cbus_dma.c
cbus_dmareg.h
cbus.h
clock.c Reduce diffs against i386. 2009-05-06 04:40:18 +00:00
fdc_cbus.c
fdc.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
fdcreg.h
fdcvar.h
gdc.c
nmi.c
olpt.c Migrate the olpt(4) driver to si_drv1 instead of using dev2unit(). 2009-04-15 19:58:41 +00:00
olptreg.h
pckbd.c
pckbdtables.h
pcrtc.c
pmc.c
sc_machdep.h
scgdcrndr.c
scterm-sck.c Make a 1:1 mapping between syscons stats and terminal emulators. 2009-03-10 11:28:54 +00:00
sctermvar.h Replace syscons terminal renderer by a new renderer that uses libteken. 2009-01-01 13:26:53 +00:00
scvtb.c
sio_cbus.c
sio.c
syscons_cbus.c MFi386: part of 189421 2009-03-06 11:10:31 +00:00