From: Greg B. <gb...@po...> - 2001-02-21 02:34:30
|
Studencki Pawel wrote: > > hi, > > Greg, thanks for Your tips. Here my other doubts... > > > You need to get the User Manual for the HD64461 from Hitachi. > > In the '65 Manual, it implies in Section 8 Interrupt Controller that > > the IRQ0# from the '65 is level triggered, active low (which is what > > you'd expect for direct connection to our 7750). > > I was looking already for this manual, but I haven't found it...could > somebody tell me, where can I find it? Or perhaps could someone mail me this > file? I'm not sure its available anymore. This page http://www.hitachi.co.jp/Sicd/English/Products/micom/syuhen.htm has links for '63 and '65 docs but no '61. Perhaps someone has an old copy? > > [*] HD64461 PCMCIA enabler > > It's not a generic PCMCIA driver. It's a very simple hack which sets > > up port mappings for one specific set of cards in one specific box > > (an NE2000 network card and a CompactFlash memory card in an HP690). > > This is probably not what you want. > > but theoretical this could be working with my board, I need only to modify > some adresses and register values? Yes, and build the appropriate drivers into the kernel. But you have to be aware of the limitations of this solution: 1. you can't have any cards except those specific cards in the sockets, 2. you have to have the correct card in the correct socket, i.e. you can't swap them around, 3. the cards must be the default voltage handled by the socket, e.g. you can't mix 3.3V and 5V cards, 4. you can't insert or eject cards, 5. depending on how smart the driver is, you may not be able to boot the device without the cards inserted. I know IDE is clever enough to probe for devices, but I'm not so sure about the NE2K. All these are the reasons why Jesper Skov and I independently created PCMCIA Socket Services drivers, because they handle all these issues. However, as long as you're happy with these limitations the ENABLER solution will be OK for you. > I have a SanDisk PCMCIA flashdisk and perhaps (I don't have it yet) a ne2000 > compatible network card. In this case I don't need a PCMCIA socket service? Subject to the limitations above, no. If you need to support something other than the cards the ENABLER currently supports, try: 1. choose the cards you wish to support, 2. insert them into a Linux laptop's PCMCIA socket 3. use the dump_cis program to get the CIS data from the card 4. from that you can figure out a set of IO port and IRQ mappings which will keep the card happy. 5. hardcode those into the code > > If you want to be able to plug in various different types of cards, > > you need a proper PCMCIA Socket Services driver. AFAIK there > > isn't one > > for the 7709/64461 combination, but you might want to have a look at > > Jesper Skov's driver for the 7707, available at > > I understand, this is a second possibility. I have to hack PCMCIA enabler or > Jesper Skov's driver...I don't know which way is the most simple one...with > Jesper's solution I get probably more general stuff, but need to solve this > problem as quick as possible. If time to delivery is your major limiting factor, go for the quick ENABLER hack. > > For our PCMCIA support, we have the following compiled as modules: > > drivers/ide/ide-cs.o > drivers/ide/ide-disk.o > drivers/ide/ide-mod.o > drivers/ide/ide-probe-mod.o > drivers/net/8390.o > drivers/net/airo.o > drivers/net/ne.o > drivers/net/pcmcia/airo_cs.o > drivers/net/pcmcia/pcnet_cs.o > drivers/net/stnic.o > drivers/pcmcia/ds.o > drivers/pcmcia/hd64465_ss.o > drivers/pcmcia/pcmcia_core.o > > > The first 4 are necessary to mount flash cards as IDE disks. > > are they general? they should work, if I get working hd64462? The ide-cs module is for Card Services, and relies on a working PCMCIA socket driver (ide-cs handles negotiating ports and IRQs with the card). The others (ide-disk, ide-mod, ide-probe-mod) are generic and should work once you have port & IRQ mappings. > > > The last > > 3 are various PCMCIA drivers. > > PCMCIA driver with hd6446x support? For x=5. Untested on x!=5. Also, assumes SH4 in one place. And in another place, one particular voltage control chip of the two the 64465 supports. > So for SHx and HD6446x we have > companion chip support integrated with PCMCIA driver? These are modules, and > in arch/sh/kernel/setup_hd6446x.c are defined these early CF enable for > HP690? Um, I nearly understood that? > > The stuff in the middle is for supporting > > network cards. > > If I use ne2000, there should be no neeed to hack it, theoretical. Correct. Greg. -- These are my opinions not PPIs. |