address translation
I want to setup a mapping so that when anything tries to read/write the 16 bytes of 0x1f0 - 0x1ff the actual physical memory that gets accessed is 0xf700 - 0xf70f. I can't figure out what I need to call to get this done. ioremap() is the exact opposite of what I want, and remap_page_range() comes very close but aligns everything to the page boundary (in other words, after I do the mapping, accessing 0x1f0 gives me 0xf70001f0 instead of 0xf700). I also tried using io_block_mapping(), which I use in my platform io setup routine, but the MMU crashed with one of those '###A' thingies. :-) any suggestions, please? Trevor ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
pcmcia terminology
Hi, I have another PCMCIA/CF question to ask of this list. I have a PPC405gp-based device (similar to the Walnut) that has a CF slot on the front that we'd like to get working. I did some looking around in the archives and came across this: http://lists.linuxppc.org/linuxppc-embedded/200207/msg00124.html I guess I too am tripping up a bit over the terminology. The hardware spec for my device says the following: The intended mode for the device is "Common Memory Mode". The motherboard does not provide signals to the CF to operate in I/O or True IDE mode. There are two memory regions in the device's memory map for accessing the card's attribute and common memory. Any idea if this is going to present a problem? Or is this how they normally work (i.e. is this what Linux expects)? I've read the SanDisk documentation and I think I understand that fairly well. I've written a quick and dirty driver that can check the DCR and GPIO registers to see if a card is inserted and dump out the contents of some of the attribute memory. I'm just not sure how it all fits together on the Linux side. How does PCMCIA fit together with CF and how does that fit together with IDE? (or is it ATA?). Does MTD play any part? And what ever happened to filesystems? Should I be looking at pccf_4xx.c? My understanding is that this might be what I'm looking for... a "common memory mode" -only to I/O mode translator?? Help with any of the above would be very much appreciated. Trevor ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/