public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Daniel.Andersson@combitechsystems.com
To: jskov@cambridge.redhat.com
Cc: ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Serial problem on EB40
Date: Wed, 11 Jul 2001 01:00:00 -0000	[thread overview]
Message-ID: <2253171AF143D21185A60000F8FA748B02DA4E34@pluto.combitech.se> (raw)

Do you mean any special part?

The thing that makes me a bit confused is that i get a valid handle back
from the lookup function but when i try to use it then I can't.....This
indicates that something is wrong in the setup of the "handles". In my
serial file i have the following:

DEVTAB_ENTRY(at91_serial_io0,
	     CYGDAT_IO_SERIAL_ARM_EB01_SERIAL0_NAME,
	     0,                    // Does not depend on a lower level
interface
	     &cyg_io_serial_devio, //&serial_devio,
	     at91_serial_init,
	     at91_serial_lookup,     // Serial driver may need initializing
	     &at91_serial_channel0

....which seems to be in every serial device setup. However, since i can't
get by the "t->handlers->set_config" then something must be wrong in the
"cyg_io_serial_devio"-part, am i write? Where do we have the connection
between the "cyg_io_serial_devio" and my actual set_config function. I
assume that this is through the funs? My funs table looks like this:

static SERIAL_FUNS(at91_serial_funs,
		   at91_serial_putc,
		   at91_serial_getc,
		   at91_serial_set_config,
		   at91_serial_start_xmit,
		   at91_serial_stop_xmit
    );

....and the functions they all exists in my serial file. Have i missed
anything that might cause this problem?

Regards, Daniel


> -----Original Message-----
> From: Jesper Skov [ mailto:jskov@cambridge.redhat.com ]
> Sent: den 11 juli 2001 09:21
> To: Andersson Daniel
> Cc: ecos-discuss@sourceware.cygnus.com
> Subject: Re: [ECOS] Serial problem on EB40
> 
> 
> >>>>> "Daniel" == Daniel Andersson 
> <Daniel.Andersson@combitechsystems.com> writes:
> 
> Daniel> Hi, I have a quite strange problem with my serial port (using
> Daniel> a EB40 board). I can get a handle to the port using the lookup
> Daniel> function but when i am trying to make any calls to it (like
> Daniel> cyg_io_set_config) then i get a -EDEVNOSUPP in return (see
> Daniel> clip below). It looks like the serial port isn't setup right
> Daniel> in the DEVTAB since the functioncall "t->handlers->set_config"
> Daniel> in iosys.c doesn't work. Any clues of what the problem maigt
> Daniel> be?
> 
> You should have a look at the serial driver code.
> 
> Jesper
> 

             reply	other threads:[~2001-07-11  1:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11  1:00 Daniel.Andersson [this message]
2001-07-11  1:41 ` Jesper Skov
  -- strict thread matches above, loose matches on Subject: below --
2001-07-11  0:01 Daniel.Andersson
2001-07-11  0:21 ` Jesper Skov

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=2253171AF143D21185A60000F8FA748B02DA4E34@pluto.combitech.se \
    --to=daniel.andersson@combitechsystems.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jskov@cambridge.redhat.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).