[Midnightbsd-cvs] src [6569] trunk/sys/sys/bus.h: add definitions for claim/free
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Dec 28 10:29:32 EST 2013
Revision: 6569
http://svnweb.midnightbsd.org/src/?rev=6569
Author: laffer1
Date: 2013-12-28 10:29:32 -0500 (Sat, 28 Dec 2013)
Log Message:
-----------
add definitions for claim/free
Modified Paths:
--------------
trunk/sys/sys/bus.h
Modified: trunk/sys/sys/bus.h
===================================================================
--- trunk/sys/sys/bus.h 2013-12-28 15:28:46 UTC (rev 6568)
+++ trunk/sys/sys/bus.h 2013-12-28 15:29:32 UTC (rev 6569)
@@ -464,6 +464,8 @@
int device_set_driver(device_t dev, driver_t *driver);
void device_set_flags(device_t dev, u_int32_t flags);
void device_set_softc(device_t dev, void *softc);
+void device_free_softc(void *softc);
+void device_claim_softc(device_t dev);
int device_set_unit(device_t dev, int unit); /* XXX DONT USE XXX */
int device_shutdown(device_t dev);
void device_unbusy(device_t dev);
@@ -536,7 +538,7 @@
* is for drivers that wish to have a generic form and a specialized form,
* like is done with the pci bus and the acpi pci bus. BUS_PROBE_HOOVER is
* for those busses that implement a generic device place-holder for devices on
- * the bus that have no more specific river for them (aka ugen).
+ * the bus that have no more specific driver for them (aka ugen).
* BUS_PROBE_NOWILDCARD or lower means that the device isn't really bidding
* for a device node, but accepts only devices that its parent has told it
* use this driver.
More information about the Midnightbsd-cvs
mailing list