Re: How to select Ranges.



Thanks Dean,Now it is clear to me .
But if I use same "Ranges " for two serial port let's say Serial Port 3 and
Serial Port 4(without excluding 3F8) then it will cause problem in
Communication.Earlier I was using same "Ranges" for Port 3 and Port 4 ,

;----------------------------------------------------------------------------------------------
IF BSP_SERIAL3

"Ranges"="0-0x5F,0x65-0x277,0x284-0x2E7,0x2F0-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0x3E7,0x3F0-0xFFFF"
ENDIF ; BSP_SERIAL3

IF BSP_SERIAL4

"Ranges"="0-0x5F,0x65-0x277,0x284-0x2E7,0x2F0-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0x3E7,0x3F0-0xFFFF"
ENDIF ; BSP_SERIAL4
;----------------------------------------------------------------------------------------------


and sometimes I was not getting data from Serial Port 4 .What could be the
reason ?Same "Ranges" can create above problem....


Now,I have different query for you .
I am trying to extend number of serial port from four(builtin) to six(two
additional serail port on Timedia PCI card ).
Following are the specification of the card:

Bus/Device/Function = 0/17/0, 16550 Compatible Communications Device
VendorID = 0x1409, DeviceID = 0x7168, Command = 0x0081, Status = 0x0280
RevisionID = 0x01, ProgIf = 0x02, SubClass = 0x00, BaseClass = 0x07
CacheLineSize = 0x00, LatencyTimer = 0x00, HeaderType = 0x00, BIST = 0x00
BaseAddresses:
0x0000E001 0x00000000 0x0000E401 0x0000E801 0x00000000 0x00000000
CIS = 0x00000000, SubVendorID = 0x1409, SubSystemID = 0x5079
ROMBaseAddress = 0x00000000
InterruptLine = 0x05, InterruptPin = 0x01, MinGrant = 0x00, MaxLatency =
0x00

Can you tell me how to interface card on PCI bus.

"Dean Ramsier" wrote:

Looks to me like the BSP is already assuming the traditional com1 (0x3F8) is
used by something else that isn't going to request resources. If I'm not
mistaken, that COM1 is usually used for debug on X86 hardware. All the
other IO ranges you listed are already excluded in the last range statement.

If you wanted to also restrict the 0x3F8 range, you would add another line
like

IF BSP_SERIAL4
"Ranges"="0-0x5F,0x65-0x277,0x284-0x2E7,0x2F0-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0x3E7,0x3F0-0x3f7,0x400-0xFFFF"
ENDIF ; BSP_SERIAL4


--
Dean Ramsier - eMVP
BSQUARE Corporation


"Amit Golhani" <AmitGolhani@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:94F1D463-1790-48CC-9A98-844FEB9D2344@xxxxxxxxxxxxxxxx
Dean, can you tell me in elaborate way.

I am using following settings:

Serial Port#1:IoBase=3F8(IRQ4)
Serial Port#2:IoBase=2F8(IRQ3)
Serial Port#3:IoBase=3E8(IRQ10)
Serial Port#4:IoBase=2E8(IRQ11)

Amit

"Dean Ramsier" wrote:

The ranges are defining IO ports that are available to be used. If an
existing device (COM in this case) is using an IO range, it has to be
excluded from the list. Notice that as each additional serial port is
added, another range of IO addresses is removed from the list in the new
range (the last range listed overrides all previous ones). So you need
to
know the IO range used by your 4th serial port, then create a new range
definition that also excludes those IO ports.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Amit Golhani" <AmitGolhani@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6A4F3ABC-E0E0-4842-BD22-B88AF9B0DAD9@xxxxxxxxxxxxxxxx
Hi all,
I am using PCM-6892 board VIA C3 processor ( with four builtin serial
port) .
For developing image for above I am using CEPC:x86 BSP (Enterprise Web
Pad).
By default it is having 3 Instances (com16550) for serail port .I
already
created instance for forth port.Now my query is how to select Ranges
for
forth port.

Ranges for Port 1 ,2 & 3 was already there in platform.reg as:


IF BSP_NOSERIAL
"Ranges"="0-0x5F,0x65-0x277,0x284-0x38F,0x392-0x3DF,0x3E2-0xFFFF"
ENDIF ; BSP_NOSERIAL
IF BSP_NOSERIAL !

"Ranges"="0-0x5F,0x65-0x277,0x284-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0xFFFF"
ENDIF ; BSP_NOSERIAL !
IF BSP_SERIAL2

"Ranges"="0-0x5F,0x65-0x277,0x284-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0x3E7,0x3F0-0xFFFF"
ENDIF ; BSP_SERIAL2
IF BSP_SERIAL3

"Ranges"="0-0x5F,0x65-0x277,0x284-0x2E7,0x2F0-0x2F7,0x300-0x38F,0x392-0x3DF,0x3E2-0x3E7,0x3F0-0xFFFF"
ENDIF ; BSP_SERIAL3

Now I want to add Ranges for forth port .Can anyone tell how to select
Ranges?

Thanks in Advance.

Amit







.



Relevant Pages


Loading