From: Sowmini Varadhan <sowmini.varadhan@xxxxxxxxxx> Date: Fri, 19 Dec 2014 15:06:51 -0500 > On (12/19/14 14:57), David Miller wrote: >> >> The core operation is the range allocation. So if you just put the >> powerpc alloc/free code (basically, the bulk of your patch) into >> lib/iommu-common.c or similar, that ought to be a good starting point. > > sounds good, I'll do this and get back over the next week. > (Some things like the demap function pointer may need to be > generalized a bit, e.g., pass the iommu_pool * to the callback for > other archs) It might be cleaner to have a "const struct iommu_ops *" kind of thing in the base iommu structure. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html