All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rabeeh Khoury <rabeeh@galileo.co.il>
To: Andreas Schreckenberg <ASchreckenberg@dspace.de>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: 16550 uart without interrupts ?
Date: Mon, 18 Dec 2000 18:13:37 +0200	[thread overview]
Message-ID: <3A3E37B1.9040908@galileo.co.il> (raw)
In-Reply-To: 3A3E2F0A.3D687E6A@dspace.de


In order to work in polling mode , you have to run a __check__ routine
that runs once, at least, in a constant period of time. The routine
checks if new data has arrived or not and accordingly operates.

I suggest that you hook such a routine to your real time clock interrupt
handler which calls function
'rs_interrupt_single' in file drivers/char/serial.c with the appropriate
parameters.

p.s. the function 'rs_interrupt_single' is suitable in case you are
using one port of the serial controller !

Another option is using the decrementer of the ppc CPU which is usually
also used by the Linux kernel. But you have to find a way how to share
the decrementer with your polling function and the kernel.


Regards,
Rabeeh


Andreas Schreckenberg wrote:

> Hello,
>
> Is there anybody with a serial console uart driver for
> ppc systems without using interrupts ?
> Is is possible to use any driver in "polling mode" ?
> (drivers/char/serial.c or arch/8xx_io/uart.c)
>
> I try to bring up Linux on my custom ppc board
> (PPC750, 64M, uart 16550) and my
> (selfmade) interrupt controller will not work at this
> moment.
>
> But it would be nice to have debug messages on the
> serial console. (log_buf is okay but not really the
> thing I would like to have)
>
> Can I work with a "polling driver" -> bash input/output ?
>
> I hope that I must not understand the whole driver :-)
> (only set the uart I/O range, and set the quartz divider)
>
> bye
> Andreas
> EMail: ASchreckenberg@dspace.de
> --
>           Life's not fair. But the root password helps ! :-)
>                    http://schrecky.home.pages.de
>
>
>
>


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

      reply	other threads:[~2000-12-18 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-18 15:36 16550 uart without interrupts ? Andreas Schreckenberg
2000-12-18 16:13 ` Rabeeh Khoury [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A3E37B1.9040908@galileo.co.il \
    --to=rabeeh@galileo.co.il \
    --cc=ASchreckenberg@dspace.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.