public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jesper Skov <jskov@cygnus.co.uk>
To: guinan@bluebutton.com
Cc: Ecos Discussion List <ecos-discuss@sourceware.cygnus.com>
Subject: Re: [ECOS] SMC2 - no interrupts?
Date: Wed, 10 Nov 1999 00:57:00 -0000	[thread overview]
Message-ID: <ot1z9yvin7.fsf@thinktwice.zoftcorp.dk> (raw)
In-Reply-To: <Pine.LNX.4.10.9911092234090.10663-400000@gemini.home.net>

>>>>> "Jamie" == Jamie Guinan <guinan@bluebutton.com> writes:

Jamie> Is there anything else I need to do to get the interrupts into
Jamie> operation?  Maybe its a cache issue?

It's a long shot, but you may have to prime the transmitter. See the
cogent serial driver:

// Enable the transmitter on the device
static void
cogent_serial_start_xmit(serial_channel *chan)
{
    cogent_serial_info *cogent_chan = (cogent_serial_info *)chan->dev_priv;
    cyg_addrword_t port = cogent_chan->base;
    cyg_uint8 _ier;

    HAL_READ_UINT8(port+SER_16550_IER, _ier);
    _ier |= IER_XMT;                    // Enable xmit interrupt
    HAL_WRITE_UINT8(port+SER_16550_IER, _ier);

    (chan->callbacks->xmt_char)(chan);
}


The last line loads the first character into the transmit
buffer. Reason being that the TX interrupt doesn't happen until the TX
buffer goes from full->empty.

This is also done in the quicc_smc(1?) driver so if your are using the
same sources it's probably something else.

Jesper

      reply	other threads:[~1999-11-10  0:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-09 19:36 Jamie Guinan
1999-11-10  0:57 ` Jesper Skov [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=ot1z9yvin7.fsf@thinktwice.zoftcorp.dk \
    --to=jskov@cygnus.co.uk \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=guinan@bluebutton.com \
    /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 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 read-only IMAP folder(s) and NNTP newsgroup(s).