Date: Thu, 18 Feb 2016 06:38:41 -0800 From: John Baldwin <jhb@freebsd.org> To: Zbigniew Bodek <zbb@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295755 - in head/sys: arm/arm arm64/arm64 kern powerpc/powerpc sparc64/sparc64 sys Message-ID: <15376407.tuYH0ZQ0Qn@ralph.baldwin.cx> In-Reply-To: <201602181300.u1ID05qW056340@repo.freebsd.org> References: <201602181300.u1ID05qW056340@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, February 18, 2016 01:00:04 PM Zbigniew Bodek wrote: > Author: zbb > Date: Thu Feb 18 13:00:04 2016 > New Revision: 295755 > URL: https://svnweb.freebsd.org/changeset/base/295755 > > Log: > Introduce bus_get_bus_tag() method > > Provide bus_get_bus_tag() for sparc64, powerpc, arm, arm64 and mips > nexus and its children in order to return a platform specific default tag. > > This is required to ensure generic correctness of the bus_space tag. > It is especially needed for arches where child bus tag does not match > the parent bus tag. This solves the problem with ppc architecture > where the PCI bus tag differs from parent bus tag which is big-endian. > > This commit is a part of the following patch: > https://reviews.freebsd.org/D4879 > > Submitted by: Marcin Mazurek <mma@semihalf.com> > Obtained from: Semihalf > Sponsored by: Annapurna Labs > Reviewed by: jhibbits, mmel > Differential Revision: https://reviews.freebsd.org/D4879 It should be noted that this API is temporary. It should probably be marked as such so that no code depends on it long term. Once bus_map_resource is implemented in the parent drivers for this bus this should be removed. I hope to have that in place for 11 so that no release ships with this API. I have a review open on a prototype for bus_map_resource() in D5237. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15376407.tuYH0ZQ0Qn>