public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* serial.c - start looking from 0x220 iomem_base  ??
@ 2004-02-13 15:09 Robert Woerle
  2004-02-13 15:36 ` Richard B. Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Woerle @ 2004-02-13 15:09 UTC (permalink / raw)
  To: linux-kernel

Hi

I am having here a device  (Tablet PC ) sample with a serial resistive 
touchscreen  .
Under Windows it comes up as COM1 at IO-Base 0x220 -0x227 IRQ 4 .
Now it seems that in linux the serial driver doesnt look for so "low" 
I/O-Base `s .

By hacking around by hardcoding the 0x220 somehwere in serial.c i get it 
to detect a standard 16550 , but
unfortunately it then assumes that all ttySX have this base .
This is because of my hardcoded hack and the driver not looking for all 
the rest mem bases.

So the quesion is :
Where do i tell serial.o  to start lower ( at 0x220 ) to look for 
controllers .. .??



Pls also CC me directly since i am only monitoring this list .


-- 
____________________________________
*Robert Woerle
*
*Technical Product Manager

2L Computers BV*
*
*Niederlassung Deutschland*
*Pace/Blade/ /- /Commodore - Conceptronic*
** 
*
phone: 	+49 89 552 999 34
fax: 	+49 89 552 999 10
email: 	robert@paceblade.com <mailto:robert@paceblade.com>
web: 	http://www.paceblade.com <http://www.paceblade.com/>
_____________________________________








^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: serial.c - start looking from 0x220 iomem_base  ??
  2004-02-13 15:09 serial.c - start looking from 0x220 iomem_base ?? Robert Woerle
@ 2004-02-13 15:36 ` Richard B. Johnson
  2004-02-16 16:13   ` Robert Woerle
  0 siblings, 1 reply; 3+ messages in thread
From: Richard B. Johnson @ 2004-02-13 15:36 UTC (permalink / raw)
  To: Robert Woerle; +Cc: linux-kernel

On Fri, 13 Feb 2004, Robert Woerle wrote:

> Hi
>
> I am having here a device  (Tablet PC ) sample with a serial resistive
> touchscreen  .
> Under Windows it comes up as COM1 at IO-Base 0x220 -0x227 IRQ 4 .
> Now it seems that in linux the serial driver doesnt look for so "low"
> I/O-Base `s .
>
> By hacking around by hardcoding the 0x220 somehwere in serial.c i get it
> to detect a standard 16550 , but
> unfortunately it then assumes that all ttySX have this base .
> This is because of my hardcoded hack and the driver not looking for all
> the rest mem bases.
>
> So the quesion is :
> Where do i tell serial.o  to start lower ( at 0x220 ) to look for
> controllers .. .??
>
>
>
> Pls also CC me directly since i am only monitoring this list .

There are 4 de facto standard serial ports:

COM1	0x3F8	IRQ4
COM2	0x2F8	IRQ3
COM3	0x3E8	IRQ4
COM4	0x2E8	IRQ3

If you have a port at 0x220, it is above the game-port area,
but not where the kernel should "look for" serial devices.
Therefore, you don't tell the kernel to, as you state, start
lower. Instead, you tell the kernel where they are by putting
them in the pnp_devices[] table.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: serial.c - start looking from 0x220 iomem_base  ??
  2004-02-13 15:36 ` Richard B. Johnson
@ 2004-02-16 16:13   ` Robert Woerle
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Woerle @ 2004-02-16 16:13 UTC (permalink / raw)
  To: root; +Cc: linux-kernel



Richard B. Johnson schrieb:

>On Fri, 13 Feb 2004, Robert Woerle wrote:
>
>  
>
>>Hi
>>
>>I am having here a device  (Tablet PC ) sample with a serial resistive
>>touchscreen  .
>>Under Windows it comes up as COM1 at IO-Base 0x220 -0x227 IRQ 4 .
>>Now it seems that in linux the serial driver doesnt look for so "low"
>>I/O-Base `s .
>>
>>By hacking around by hardcoding the 0x220 somehwere in serial.c i get it
>>to detect a standard 16550 , but
>>unfortunately it then assumes that all ttySX have this base .
>>This is because of my hardcoded hack and the driver not looking for all
>>the rest mem bases.
>>
>>So the quesion is :
>>Where do i tell serial.o  to start lower ( at 0x220 ) to look for
>>controllers .. .??
>>
>>
>>
>>Pls also CC me directly since i am only monitoring this list .
>>    
>>
>
>There are 4 de facto standard serial ports:
>
>COM1	0x3F8	IRQ4
>COM2	0x2F8	IRQ3
>COM3	0x3E8	IRQ4
>COM4	0x2E8	IRQ3
>
>If you have a port at 0x220, it is above the game-port area,
>but not where the kernel should "look for" serial devices.
>Therefore, you don't tell the kernel to, as you state, start
>lower. Instead, you tell the kernel where they are by putting
>them in the pnp_devices[] table.
>
>
>  
>
I tryed that now and added a device  like
ISAPNP_VENDOR('P', 'N', 'P'), ISAPNP_DEVICE(0x0220),

but nothing happens ... it leaves the function saying
<7>"Leaving  probe_serial_pci() (probe finished)

What can i do ?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-16 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-13 15:09 serial.c - start looking from 0x220 iomem_base ?? Robert Woerle
2004-02-13 15:36 ` Richard B. Johnson
2004-02-16 16:13   ` Robert Woerle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox