linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Another useful piece of code lost
@ 2000-05-17 22:38 Pavel Roskin
  2000-05-18  3:05 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2000-05-17 22:38 UTC (permalink / raw)
  To: linuxppc-embedded


Hello!

The kernel that Dan Malek wrote for us in Transcept, Inc. had the
following lines in include/asm-ppc/ide.h :

/*
 * The following are not needed for the non-m68k ports
 */
#if 0
#define ide_ack_intr(base, irq)         (1)
#else
static __inline__ void ide_ack_intr(unsigned int base, unsigned int irq)
{
        ((immap_t *)IMAP_ADDR)->im_pcmcia.pcmc_pscr = ~0;
}
#endif

Strictly speaking, this is wrong because this code assumes that all PPC
machines, even PowerMac's use PCMCIA.

But from the practical point of view, this code makes it possible to
support ATA Flash at least on RPX/Lite, so the comment is wrong - there
are non-m68k ports depending on non-trivial ide_ack_intr().

The MontaVista kernels don't include anything like that. This is one of
the reasons why they don't support ATA Flash on RPX/Lite.

Regards,
Pavel Roskin


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-18  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-17 22:38 Another useful piece of code lost Pavel Roskin
2000-05-18  3:05 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).