ts-7000
[Top] [All Lists]

[ts-7000] TS-7400 Serial AMBA question... /dev/ttyAM0 & /dev/ttyAM1

To:
Subject: [ts-7000] TS-7400 Serial AMBA question... /dev/ttyAM0 & /dev/ttyAM1
From: "Xilinx" <>
Date: Wed, 29 Apr 2009 13:10:11 -0000
I am trying to put a IO-line Hi as soon as the /dev/ttyAM1 has no chars left in 
the buffers. faster than 10ms! , so it will have to be donne in Kernel_space!

I ended up checking linux24/drivers/serial/core.c which is built in the 
kernel.(2.4.26-ts11)

dmesg-->
ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA

Why is it AMBA and not 16550 as the EP9302 datasheet mentions?
Why do we have a ttyAM2 ? it doesn't exist.

# more /proc/tty/driver/ttyAM\%d
serinfo:1.0 driver revision:
0: uart:AMBA port:00000000 irq:52 tx:42580 rx:59 RTS|DTR
1: uart:AMBA port:00000000 irq:54 tx:0 rx:0
2: uart:AMBA port:00000000 irq:55 tx:0 rx:0

# setserial -g /dev/ttyAM1
/dev/ttyAM1, UART: undefined, Port: 0x0000, IRQ: 54

Why is the port-address not correct here from both commands?


I have put some extra dprint options in core.c to check the amount of 
characters in the buffer :

DEBUG: core.c , uart_write (state->info->xmit.buf: -1069683100)
DEBUG: core.c , uart_chars in buffer: -1069683100
DEBUG: core.c , uart_chars in buffer: -1069683100
DEBUG: core.c , uart_write (state->info->xmit.buf: -1069683100)

How can I explain values like this? 


I'm a bit lost here.... Any suggestions?




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU