[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IDE and CF on CFFA



>>>>> "SG" == St�phane Guillard <stephane.guillard@steria.com> writes:

SG> Now my turn for a question. I've done a full ATA/ATAPI PIO/UDMA
SG> driver for the AmigaOne (basically a PowerPC mainboard with a VIA
SG> southbridge). It works fine with HDD's & CD's, but a user recently
SG> reported that when he hooks a compactflash card to the IDE bus
SG> with the ad hoc adapter, my driver wont deal with it.

SG> As I have neither had a CF in my hands, nor an adapter, could you
SG> tell me if there is anything specific to these toys ? I have the
SG> multivolume ATA(PI) docs but a hint such as 'poweron signature is
SG> neither ATA nor ATAPI but 0xblablabla would be highly appreciated
SG> before I dive again in those docs.

The boot code I wrote for the C1 computer detects devices by sending
identify and identify packet commands. Compact Flash cards show up as
regular hard drives. If you wish to distinguish CF cards from HDs, the
ATA docs say:

  "Devices reporting the value 848Ah in IDENTIFY DEVICE data word 0 or
  devices having bit 2 of IDENTIFY DEVICE data word 83 set to one
  shall support the CFA feature Set."

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/