On Thursday 25 October 2007, Alan Cox wrote:I'm assuming you mean they should continue to work like they do today: return the resource. Your pseudocode below shows an iomap utility taking a resource. Sure, for PCI ... where the meaning of BARs is a fixed part of the hardware spec, and it's not uncommon to skip a few. But as I noted, that notion doesn't apply cleanly outside PCI; indexes aren't necessarily portable between systems. So any such interface should discourage their use. One issue with a dev_iomap() is that only memory resources really need mapping ... but *all* of them need claiming. (Modulo the detail that the iomap morphs i/o addresses too.) The $SUBJECT function is a (minor) simplification for both the mapping and claiming steps. I think I'd rather see a dev_resource_claim() which combines the request_{,mem_}region() semantics with mapping ... that way drivers could save code, not just unify the two types of register addressing. - Dave -
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Christoph Lameter | Re: Major regression on hackbench with SLUB (more numbers) |
| Mike Travis | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
