Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with IOPCCard16Device





Markus Bollinger wrote:

> Our problem with the IOPCCard16Device is following:
>
> Our card does 16 bit and 8 bit IO access.
> With the default IOPCCard16Enabler the card is
> configured as IO_DATA_PATH_WIDTH_16.
>
> But we want to do 8 bit and! 16 bit accesses.

if your card has a different configuration in its CIS that supports the
type of access you want, you can specifically request that configuration
by calling the configure method with the index of CIS configuration that
you want, i.e. the lower 6 bits of TPCE_INDX.

assuming you trying to do the right thing and your card doesn't have a
configuration for what you want do, go slap up the guys who designed it
(if you can find them :-).


> When doing IOPCCard16Device->ioWrite8() on even
> address offsets, everything ok (also ioRead()).
>
> The problem is with odd offsets: The controller does a
> 8 bit write access on the right offset but puts the
> data on data bits 8..15.

there are at least two things you can try:

1. write a custom enabler to set things up the way you like.
2. use the card services call "ModifyWindow" (it is documented in the
file "doc/PCMCIA-PROG" in the IOPCCardFamily source). you can get the
handle to your window by calling getWindowHandle() on your provider.

-rick
--
"More computing sins are committed in the name of efficiency (without
necessarily achieving it) than for any other single reason - including
blind stupidity" -Wulf 1972


_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.