Re: I82365 driver question
dhinds <[email protected]> Thu, 11 Apr 2002 15:33:54 -0700
| Newsgroups | gmane.linux.pcmcia.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 10, 2002 at 06:32:09PM -0700, Sanjay Jain wrote: > > PD6729 card offset only holds bits 25-19 so I think upper 6 bits of > systm address should be discarded. I got it to work by > changing line. > > i = ((mem->card_start - mem->sys_start) >> 12) & 0x3fff; > to > i = ((mem->card_start - (mem->sys_start & 0x3FFFFFF)) >> 12) & 0x3fff; > > Now I can see all memory space of the 20 MB card. This still doesn't make sense to me; it works on other platforms for both sys_start values with the upper 6 bits zero as well as non-zero. And I don't see how the upper 6 bits can affect the result after the "& 0x3fff" step. That would seem to contradict how binary math should work. What is the actual value of sys_start in your case? -- Dave