block_til_ready

2007-03-08 Thread Mockern
Hi, What is the simpliest implementation of block_til_ready for tty driver? Thanks, Andy - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Problem: cat /dev/my_ttyS0 is not blocked

2007-03-10 Thread Mockern
Hi, I have a problem with cat /dev/my_ttyS0 (see strace output below). cat function is not blocked. I don't understand why it is not stopped at read(0, __ and terminated? Thank you -- execve(/bin/cat, [cat], [/* 12

Re: bloc_til_ready in tty driver

2007-02-16 Thread Mockern
Thanx for your respond, I did not implement this function in my tty driver. Does it help to work my driver with cat Linux operation? (e.g. cat ttyS10) Mockern napsal(a): What for is bloc_til_ready function in tty drivers? Most drivers waits for hardware to detect carrier and for closed

Re: cat, cp operations for tty driver (like for char one)

2007-02-16 Thread Mockern
Thanx for your respond. Does it mean I have to change nothing in my tty driver (based on serial_core.c) to use: cat and cp? No nonstandard special functions to implement? On Thu, 15 Feb 2007, Mockern wrote: I have a question about linux tty driver how to support cp, cat operations

Re: cat, cp operations for tty driver (like for char one)

2007-02-16 Thread Mockern
Thank you very much On Fri, 16 Feb 2007, Mockern wrote: Thanx for your respond. Does it mean I have to change nothing in my tty driver (based on serial_core.c) to use: cat and cp? No nonstandard special functions to implement? Change nothing. It you are making your own, make sure your

Re: bloc_til_ready in tty driver

2007-02-16 Thread Mockern
Thank you very much Mockern napsal(a): Thanx for your respond, I did not implement this function in my tty driver. Does it help to work my driver with cat Linux operation? (e.g. cat ttyS10) Help in which way? If you haven't implemented it, it'll behave like there was O_NONBLOCK passed

Linux tty driver question

2007-02-17 Thread Mockern
Hi, I'm working on Linux tty driver (based on tiny_tty). How can I provide in my driver Linux cat operation (e.g.cat ttyS3)? What should I implement exactly? Thankx - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: Linux tty driver question

2007-02-17 Thread Mockern
Thank you, I have no problem with my tty driver, except one thing: it does not work with cat (but there are no problems to write,read from user space application). I'll try to follow your adwise to support cat. Mockern napsal(a): Hi, I'm working on Linux tty driver (based on tiny_tty

Re: Linux tty driver question

2007-02-17 Thread Mockern
The problem is (probably???) that I did not implement ready_til_block in my driver. OK, thank you, i need to investigate it with strace. Mockern napsal(a): Thank you, I have no problem with my tty driver, except one thing: it does not work with cat (but there are no problems to write

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Mockern
Thanx for your respond. Could you please inform me what patches exactly you have grabbed? On Sat, Feb 17, 2007 at 03:29:31PM +0300, Mockern wrote: When data is received from the hardware, it needs to be placed into the tty device's flip buffer. This can be done with the following bit of code

Re: Analog-to-Digital Converter (ADC) driver

2007-02-17 Thread Mockern
AD7994 4 Channel, 12-Bit ADC with I2C Compatible Interface in 16-Lead TSSOP, I think it could be I2C driver On 2/17/07, Mockern [EMAIL PROTECTED] wrote: Hello, Where I can find any ADC driver example? Depending on what kind of ADC and what you want to do with it, anything from a simple

Re: Analog-to-Digital Converter (ADC) driver

2007-02-17 Thread Mockern
AD7994 4 Channel, 12-Bit ADC with I2C Compatible Interface in 16-Lead TSSOP, I think it could be I2C driver On 2/17/07, Mockern [EMAIL PROTECTED] wrote: Hello, Where I can find any ADC driver example? Depending on what kind of ADC and what you want to do with it, anything from a simple

ADC driver with I2C interface

2007-02-17 Thread Mockern
Hello, Where I can grab an example of ADC driver with I2C interface? - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: serial and tty driver

2007-02-18 Thread Mockern
, Paul Fulghum wrote: Mockern wrote: I have a question, what is really difference between serial and tty drivers? As I understand tty is high level and communicates with user space. The serial core implements many of the details of a tty driver in a common place so that individual hardware

Re: ADC driver with I2C interface

2007-02-18 Thread Mockern
Thank you, I'll take a look. did you tried www.comedi.org ? Am Sunday 18 February 2007 00:18 schrieb Mockern: Hello, Where I can grab an example of ADC driver with I2C interface? - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

APM driver

2007-02-19 Thread Mockern
Hello, I need to send a battery info status from my driver to Linux APM driver. How can I do it? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

apm_get_power_status question

2007-02-19 Thread Mockern
Hello, I need to send data from my driver to apm driver, I want to use apm_get_power_status function for getting here my battery ststus info. But I have found this function has no implementation. thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Question: Where tty layer keeps termios data?

2007-03-23 Thread Mockern
Hi, Could someone please to help with next question: Where Linux (or maybe tty layer) keeps termios data? If I run stty command, where stty gets current termios settings? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

problem: init_termios = tty_std_termios;

2007-03-25 Thread Mockern
Hi, I just added mydriver_tty_driver-init_termios = tty_std_termios to my init driver function. Problem: But now I can't see data at user level application. It looks like flip_buffer needs to get termination character(or new line character) to push data to high level. Which character

Question: half-duplex and full-duplex serial driver

2007-03-26 Thread Mockern
Hi, Could you help me please, how can my serial driver to work in half-duplex and full-duplex mode? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Mockern
) Mockern [EMAIL PROTECTED] wrote: Hello, how to limit flip buffer size in tty driver? You don't. See Documentation/tty.txt and throttle/unthrottle Alan -- Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru - To unsubscribe from this list: send the line unsubscribe

cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
I tried to check cat operations for tiny_tty driver from LDD book. What is wrong with cat operation here? Here is the output from strace cat hello /dev/my_tty1 [EMAIL PROTECTED]:/home# strace cat hello /dev/my_tty1 execve(/bin/cat, [cat, hello], [/* 12 vars */]) = 0 brk(0)

Re: cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
Thank you very much for you help. BTW, for cat /dev/my_tty1 can see here something wrong? as I understand tiny_timer function sends data to tty level by calling tty_flip_buffer_push(tty). Is this enough to support cat /dev/my_tty1? On Wed, Feb 21, 2007 at 06:03:16PM +0300, Mockern wrote: I

Re: cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
cat /dev/my_tty does nothing, just stopped for reading. I tried to send a data, but there was no respond, just waiting. On Wed, Feb 21, 2007 at 10:33:52PM +0300, Mockern wrote: Thank you very much for you help. BTW, for cat /dev/my_tty1 can see here something wrong? as I understand

cat reading problem

2007-02-23 Thread Mockern
Hello, I tried to cat /dev/mytty/ttyS3, but cat shows nothing. I attached here strace cat /dev/mytty/ttyS3 and cat hello. Hello is just a file. As you can see the result of strace cat is identical, but in tty case I can't see nothing. Why does cat write nothing at my console? Thank

Question: 20 microseconds delay

2007-03-03 Thread Mockern
Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function. Mockern napsal(a): Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. regards

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function Am Samstag 03 Mдrz 2007 15:20 schrieb Mockern: Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? You can't do it with jiffies as they have 1

kernel threads locking data

2007-03-04 Thread Mockern
hi, how is better to lock data (a buffer) which is used by 2 kernel threads? thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Problem: Kernel oops

2007-03-05 Thread Mockern
Hi, I have the Linux kernel oops problem sometime. How can I fix it? Thank you - Unable to handle kernel NULL pointer dereference at virtual address 0004 pgd = c0004000 [0004] *pgd= Internal error:

Question: Watchdog driver for the SA11x0/PXA2xx

2007-03-05 Thread Mockern
hi, Could someone explain me please, do I need sa1100_wdt.c in my Linux box? What is the main goal of this driver? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

timeout = 1 millisecond for wait_event_timeout

2007-03-05 Thread Mockern
Hi, I have a question. How can I make timeout = 1 millisecond for wait_event_timeout function? Something like (HZ/1000)*x? - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Problem: how to make kernel thread more faster?

2007-03-05 Thread Mockern
hi, Is there a way how to make kernel thread more faster? I put some of my code to the kthread, but I noticed that kthread sends data more slow than original driver without kthread. Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Question: schedule()

2007-03-06 Thread Mockern
Hi, What does schedule() function do? I want to make my kthread preemptive. Thanks - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

cat reading problem

2007-02-23 Thread Mockern
Hello, I tried to cat < /dev/mytty/ttyS3, but cat shows nothing. I attached here strace cat < /dev/mytty/ttyS3 and cat < hello. Hello is just a file. As you can see the result of strace cat is identical, but in tty case I can't see nothing. Why does cat write nothing at my console? Thank

Question: 20 microseconds delay

2007-03-03 Thread Mockern
Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function. >Mockern napsal(a): >> Hi, >> >> I have a question. >> >> I need to use 20 microsecond delay in my driver. >> What exact jiffies value I should define to get 20 microseconds? > >It's s

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function >Am Samstag 03 Mдrz 2007 15:20 schrieb Mockern: >> Hi, >> >> I have a question. >> >> I need to use 20 microsecond delay in my driver. >> What exact jiffies value I should define to get 20 micros

kernel threads locking data

2007-03-04 Thread Mockern
hi, how is better to lock data (a buffer) which is used by 2 kernel threads? thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Problem: Kernel oops

2007-03-05 Thread Mockern
Hi, I have the Linux kernel oops problem sometime. How can I fix it? Thank you - Unable to handle kernel NULL pointer dereference at virtual address 0004 pgd = c0004000 [0004] *pgd= Internal error:

Question: Watchdog driver for the SA11x0/PXA2xx

2007-03-05 Thread Mockern
hi, Could someone explain me please, do I need sa1100_wdt.c in my Linux box? What is the main goal of this driver? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

timeout = 1 millisecond for wait_event_timeout

2007-03-05 Thread Mockern
Hi, I have a question. How can I make timeout = 1 millisecond for wait_event_timeout function? Something like (HZ/1000)*x? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Problem: how to make kernel thread more faster?

2007-03-05 Thread Mockern
hi, Is there a way how to make kernel thread more faster? I put some of my code to the kthread, but I noticed that kthread sends data more slow than original driver without kthread. Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Question: schedule()

2007-03-06 Thread Mockern
Hi, What does schedule() function do? I want to make my kthread preemptive. Thanks - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

block_til_ready

2007-03-08 Thread Mockern
Hi, What is the simpliest implementation of block_til_ready for tty driver? Thanks, Andy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Problem: cat < /dev/my_ttyS0 is not blocked

2007-03-10 Thread Mockern
Hi, I have a problem with cat < /dev/my_ttyS0 (see strace output below). cat function is not blocked. I don't understand why it is not stopped at read(0, __ and terminated? Thank you -- execve("/bin/cat", ["cat"],

Re: bloc_til_ready in tty driver

2007-02-16 Thread Mockern
Thanx for your respond, I did not implement this function in my tty driver. Does it help to work my driver with cat Linux operation? (e.g. cat < ttyS10) >Mockern napsal(a): >> What for is "bloc_til_ready" function in tty drivers? > >Most drivers waits fo

Re: cat, cp operations for tty driver (like for char one)

2007-02-16 Thread Mockern
Thanx for your respond. Does it mean I have to change nothing in my tty driver (based on serial_core.c) to use: cat and cp? No "nonstandard " special functions to implement? > >On Thu, 15 Feb 2007, Mockern wrote: > >> I have a question about linux tty driver >

Re: cat, cp operations for tty driver (like for char one)

2007-02-16 Thread Mockern
Thank you very much >On Fri, 16 Feb 2007, Mockern wrote: > >> Thanx for your respond. >> >> Does it mean I have to change nothing in my tty driver >> (based on serial_core.c) to use: cat and cp? No "nonstandard " special >> functions to implement

Re: bloc_til_ready in tty driver

2007-02-16 Thread Mockern
Thank you very much >Mockern napsal(a): >> Thanx for your respond, >> >> I did not implement this function in my tty driver. >> >> Does it help to work my driver with cat Linux operation? >> (e.g. cat < ttyS10) > >Help in which way?

Linux tty driver question

2007-02-17 Thread Mockern
Hi, I'm working on Linux tty driver (based on tiny_tty). How can I provide in my driver Linux cat operation (e.g.cat < ttyS3)? What should I implement exactly? Thankx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

Re: Linux tty driver question

2007-02-17 Thread Mockern
Thank you, I have no problem with my tty driver, except one thing: it does not work with cat (but there are no problems to write,read from user space application). I'll try to follow your adwise to support cat. >Mockern napsal(a): >> Hi, >> >> I'm working on Li

Re: Linux tty driver question

2007-02-17 Thread Mockern
The problem is (probably???) that I did not implement ready_til_block in my driver. OK, thank you, i need to investigate it with strace. >Mockern napsal(a): >> Thank you, >> >> I have no problem with my tty driver, except one thing: it does not work >> with cat

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Mockern
Thanx for your respond. Could you please inform me what patches exactly you have grabbed? >On Sat, Feb 17, 2007 at 03:29:31PM +0300, Mockern wrote: >> When data is received from the hardware, it needs to be placed into the tty >> device's flip buffer. This can be done with th

Re: Analog-to-Digital Converter (ADC) driver

2007-02-17 Thread Mockern
AD7994 4 Channel, 12-Bit ADC with I2C Compatible Interface in 16-Lead TSSOP, I think it could be I2C driver >>On 2/17/07, Mockern <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> Where I can find any ADC driver example? >>> >> &

Re: Analog-to-Digital Converter (ADC) driver

2007-02-17 Thread Mockern
AD7994 4 Channel, 12-Bit ADC with I2C Compatible Interface in 16-Lead TSSOP, I think it could be I2C driver >On 2/17/07, Mockern <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Where I can find any ADC driver example? >> > >Depending on what kind of ADC and

ADC driver with I2C interface

2007-02-17 Thread Mockern
Hello, Where I can grab an example of ADC driver with I2C interface? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: serial and tty driver

2007-02-18 Thread Mockern
-0600, Paul Fulghum wrote: >> Mockern wrote: >> >I have a question, what is really difference between serial and tty >> >drivers? >> > >> >As I understand tty is high level and communicates with user space. >> >> The serial core implements

Re: ADC driver with I2C interface

2007-02-18 Thread Mockern
Thank you, I'll take a look. > >did you tried www.comedi.org ? > >Am Sunday 18 February 2007 00:18 schrieb Mockern: >> Hello, >> >> Where I can grab an example of ADC driver with I2C interface? >> - >> To unsubscribe from this list: send the line

APM driver

2007-02-19 Thread Mockern
Hello, I need to send a battery info status from my driver to Linux APM driver. How can I do it? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

apm_get_power_status question

2007-02-19 Thread Mockern
Hello, I need to send data from my driver to apm driver, I want to use apm_get_power_status function for getting here my battery ststus info. But I have found this function has no implementation. thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: how to limit flip buffer size in tty driver?

2007-02-20 Thread Mockern
300 (MSK) >"Mockern" <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> how to limit flip buffer size in tty driver? > >You don't. > >See Documentation/tty.txt and throttle/unthrottle > >Alan -- Сегодня удачный день, чтобы завести почту на Яндекс

cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
I tried to check cat operations for tiny_tty driver from LDD book. What is wrong with cat operation here? Here is the output from strace cat hello > /dev/my_tty1 [EMAIL PROTECTED]:/home# strace cat hello > /dev/my_tty1 execve("/bin/cat", ["cat", "hello"], [/* 12 vars */]) = 0 brk(0)

Re: cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
Thank you very much for you help. BTW, for cat < /dev/my_tty1 can see here something wrong? as I understand tiny_timer function sends data to tty level by calling tty_flip_buffer_push(tty). Is this enough to support cat < /dev/my_tty1? >On Wed, Feb 21, 2007 at 06:03:16PM +0300, Mock

Re: cat problem in tiny_tty driver (the source included)

2007-02-21 Thread Mockern
cat < /dev/my_tty does nothing, just stopped for reading. I tried to send a data, but there was no respond, just waiting. >On Wed, Feb 21, 2007 at 10:33:52PM +0300, Mockern wrote: >> Thank you very much for you help. >> >> BTW, for cat < /dev/my_tty1 can see he

Question: Where tty layer keeps termios data?

2007-03-23 Thread Mockern
Hi, Could someone please to help with next question: Where Linux (or maybe tty layer) keeps termios data? If I run stty command, where stty gets current termios settings? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

problem: init_termios = tty_std_termios;

2007-03-25 Thread Mockern
Hi, I just added "mydriver_tty_driver->init_termios = tty_std_termios" to my init driver function. Problem: But now I can't see data at user level application. It looks like flip_buffer needs to get termination character(or new line character) to push data to high level. Which character

Question: half-duplex and full-duplex serial driver

2007-03-26 Thread Mockern
Hi, Could you help me please, how can my serial driver to work in half-duplex and full-duplex mode? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at