freebsd-skq/share/mk
John Baldwin 64de80195b Add a new device control utility for new-bus devices called devctl. This
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
  requests.  The ioctls use a common 'struct devreq' which is somewhat
  similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string.  This
  string can either by the device's name, or it can be a bus-specific
  address.  (For unattached devices, a bus address is the only way to
  locate a device.)  Bus drivers register an eventhandler to claim
  unrecognized device names that the driver recognizes as a valid address.
  Two buses currently support addresses: ACPI recognizes any device
  in the ACPI namespace via its full path starting with "\" and
  the PCI bus driver recognizes an address specification of
  'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
  strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
  in the PCI bus driver to output a full PCI selector string rather
  than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
  the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
  supported by devctl(3).
- Add a device_is_suspended() function to check DF_SUSPENDED.
- Add a resource_unset_value() function that can be used to remove a
  hint from the kernel environment.  This is used to clear a
  hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
  disabled device.

Reviewed by:	imp (parts)
Requested by:	imp (changing PCI location string)
Relnotes:	yes
2015-02-06 16:09:01 +00:00
..
atf.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
bsd.arch.inc.mk Merge from tbemd 2010-06-11 02:50:53 +00:00
bsd.compiler.mk The previous commit should have been a logical or not a logical "and" 2014-12-08 03:32:26 +00:00
bsd.cpu.mk For armv6 builds, add -mfloat-abi=softfp. This tells the compiler it can 2015-01-19 04:56:17 +00:00
bsd.crunchgen.mk NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. 2014-04-25 19:25:18 +00:00
bsd.dep.mk The dependencies are computed with CC even if sources are C++, when building 2014-10-21 19:56:45 +00:00
bsd.doc.mk Move DOCCOMPRESS to MK variable. 2014-05-10 16:38:54 +00:00
bsd.dtb.mk Add infrastructure to build dtb files from dts files. 2015-01-08 18:28:06 +00:00
bsd.endian.mk Clean up detection of big-endian ARM. In all cases we follow the pattern 2014-10-01 16:00:21 +00:00
bsd.files.mk Ensure files are created during the build when using bsd.subdir.mk. 2014-06-09 14:36:49 +00:00
bsd.incs.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
bsd.info.mk Remove MK_INFO guards in bsd.info.mk per r276556 2015-01-02 22:55:30 +00:00
bsd.init.mk Include bsd.opts.mk before Makefile.inc so Makefile.inc can do things 2014-04-24 02:02:51 +00:00
bsd.kmod.mk Eliminate bsd.sys.mk on purpose. Do not put it back. 2015-01-01 04:26:45 +00:00
bsd.lib.mk Fix build with recent binutils 2014-12-23 10:43:35 +00:00
bsd.libnames.mk Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
bsd.links.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.man.mk Use mandoc to generate cat pages 2015-01-02 14:05:30 +00:00
bsd.mkopt.mk fix spelling of DEFAULT in comments... 2014-10-22 06:53:55 +00:00
bsd.nls.mk
bsd.obj.mk Ignore errors from rm -rf to support high -j builds. This is, at best, 2014-11-06 17:19:41 +00:00
bsd.opts.mk Remove leftovers from r276551 2015-01-02 18:54:55 +00:00
bsd.own.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.port.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.prog.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.progs.mk Add LIBADD to PROG_VARS, similar to DPADD/LDADD 2014-12-27 20:33:04 +00:00
bsd.README Make MLINKS text match text in bsd.man.mk added by wosch@ in 1996. 2014-11-21 17:55:38 +00:00
bsd.snmpmod.mk
bsd.subdir.mk Create a mechanism for providing fine-grained build order dependencies 2014-06-15 13:45:37 +00:00
bsd.symver.mk
bsd.sys.mk Put the conditional back. For the default case it isn't really needed, 2015-01-01 08:30:32 +00:00
bsd.test.mk Fix the logic inversion in the previous commit by ensuring that the matched 2014-10-29 04:32:46 +00:00
Makefile Add infrastructure to build dtb files from dts files. 2015-01-08 18:28:06 +00:00
netbsd-tests.test.mk Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
plain.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
src.libnames.mk Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
src.opts.mk Add MK_FILE to control whether or not to build file(1), libmagic(3), etc 2015-02-04 10:24:40 +00:00
src.sys.mk We do not ever want _srcconf_included_ as MAIN target. 2014-07-28 23:36:21 +00:00
suite.test.mk Move FreeBSD Test Suite-specific code to a suite.test.mk file. 2014-03-14 12:52:55 +00:00
sys.mk Add a ${CP} alias for copying files in the build. 2015-01-16 21:39:08 +00:00
tap.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
version_gen.awk