[Midnightbsd-cvs] src: bus.h: Add a commonly used "hack" in FreeBSD with 6.2+ drivers.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Jun 30 20:12:06 EDT 2008
Log Message:
-----------
Add a commonly used "hack" in FreeBSD with 6.2+ drivers. This will make updating and porting drivers easier.
Tags:
----
RELENG_0_2
Modified Files:
--------------
src/sys/sys:
bus.h (r1.1.1.1.4.1 -> r1.1.1.1.4.2)
-------------- next part --------------
Index: bus.h
===================================================================
RCS file: /home/cvs/src/sys/sys/bus.h,v
retrieving revision 1.1.1.1.4.1
retrieving revision 1.1.1.1.4.2
diff -L sys/sys/bus.h -L sys/sys/bus.h -u -r1.1.1.1.4.1 -r1.1.1.1.4.2
--- sys/sys/bus.h
+++ sys/sys/bus.h
@@ -325,6 +325,14 @@
}
/*
+ * Forward compatibility define. bus_get_dma_tag is defined in current
+ * to get the parent's dma tag. In RELENG_6 this is currently spelled NULL,
+ * so provide a stop-gap compatibilty hook until this functionality is
+ * merged from head (if ever) (FreeBSD)
+ */
+#define bus_get_dma_tag(a) NULL
+
+/*
* Access functions for device.
*/
device_t device_add_child(device_t dev, const char *name, int unit);
More information about the Midnightbsd-cvs
mailing list