freebsd-nq/sys/i386/acpica
Ed Schouten 29d4cb241b Don't enforce unique device minor number policy anymore.
Except for the case where we use the cloner library (clone_create() and
friends), there is no reason to enforce a unique device minor number
policy. There are various drivers in the source tree that allocate unr
pools and such to provide minor numbers, without using them themselves.

Because we still need to support unique device minor numbers for the
cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's
that are used in combination with the cloner library should be marked
with this flag to make the cloning work.

This means drivers can now freely use si_drv0 to store their own flags
and state, making it effectively the same as si_drv1 and si_drv2. We
still keep the minor() and dev2unit() routines around to make drivers
happy.

The NTFS code also used the minor number in its hash table. We should
not do this anymore. If the si_drv0 field would be changed, it would no
longer end up in the same list.

Approved by:	philip (mentor)
2008-06-11 18:55:19 +00:00
..
acpi_machdep.c Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
acpi_wakecode.S Minor tweaks to the resume code. Previous commit reverted alignment back 2006-06-10 08:20:03 +00:00
acpi_wakeup.c In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00
genwakecode.sh Only export defined symbols. Note that I couldn't find any difference 2004-12-12 06:59:14 +00:00
madt.c In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00
Makefile Add missing acpi_wakecode.o: assym.s dependency, so that if assym.s 2006-10-19 05:55:09 +00:00
OsdEnvironment.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00