Re: [PATCH] PCMCIA identification strings for Elan -- second attempt

Tony Olech
2006-11-21T14:01:00Z

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Hi,
I can't find an actual device, and my former boss
left Elan a few months ago, but I have attached
the data from our product database:

cis configuration file:

[-- Attachment #2: SL432.TXT --]
[-- Type: text/plain, Size: 4374 bytes --]

;****************************************************************************************
;*
;* Filename: sl432.txt
;*
;* Author: P. Sleeman Elan Digital Systems Limited (c) 2003
;*
;* Date: 19/05/2003
;*
;* Description: This file defines the CIS for the SL432 PC Card
;*
;* File Revision: 1.01
;*
;* History: Rev. Date Revision History
;* 1.00 19/05/2003 Creation
;*
;****************************************************************************************

$01 $03 $00 $00 $FF
$15 $3A $05 $00 [Elan] $00 [Serial Port: SL432] $00 [1.00] $00 [KIT:Kxxxxx-xxx ] $00 $FF
$20 $04 $5D $01 [EL]
$06 $15 $04 $00 $60 $00 $00 $00 $00 $B0 $00 $00 $00 $00 $00 $01 $00 $00 $00 $60 $01 $00 $00 ;long link MFC, 4 functions

%60 ;pad to here with 0xffs. Start of function 1's CIS

$13 $03 [CIS] ;link target tuple
$21 $02 $02 $01 ;identify as a serial port
$1A $05 $01 $27 $00 $04 $61 ;2 byte config base,1 byte ccr presence mask, last table index is 27h, 400h base, cor, csr, iobase0&1 present

;$1B $0D $C7 $01 $19 $01 $55 $AB $60 $F8 $03 $07 $B0 $FF $FF ;com1 default settings: 5V, 3f8, IRQ share lvl & an IRQ mask = irq any
;$1B $0B $8F $01 $18 $AB $60 $F8 $02 $07 $B0 $FF $FF ;com2 2f8 irq any
;$1B $0B $97 $01 $18 $AB $60 $E8 $03 $07 $B0 $FF $FF ;com3 3E8 irq any
;$1B $0B $9F $01 $18 $AB $60 $E8 $02 $07 $B0 $FF $FF ;com4 2E8 irq any
$1B $07 $A7 $01 $18 $23 $B0 $FF $FF ;comN any io on 8 byte boundary, lvl irq any in mask ffff
$FF ;end of this function's CIS

%B0 ;pad to here with 0xffs. Start of function 2's CIS

$13 $03 [CIS] ;link target tuple
$21 $02 $02 $01 ;identify as a serial port
$1A $05 $01 $27 $20 $04 $61 ;2 byte config base,1 byte ccr presence mask, last table index is 27h, 420h base, cor, csr, iobase0&1 present

;$1B $0D $CF $01 $19 $01 $55 $AB $60 $F8 $02 $07 $B0 $FF $FF ;com2 default settings: 5V, 2f8, IRQ share lvl & an IRQ mask = irq any
;$1B $0B $87 $01 $18 $AB $60 $F8 $03 $07 $B0 $FF $FF ;com1 3f8 irq any
;$1B $0B $9F $01 $18 $AB $60 $E8 $02 $07 $B0 $FF $FF ;com4 2e8 irq any
;$1B $0B $97 $01 $18 $AB $60 $E8 $03 $07 $B0 $FF $FF ;com3 3e8 irq any
$1B $07 $A7 $01 $18 $23 $B0 $FF $FF ;comN any io on 8 byte boundary, lvl irq any in mask ffff
$FF ;end of this function's CIS

%100 ;pad to here with 0xffs. Start of function 3's CIS

$13 $03 [CIS] ;link target tuple
$21 $02 $02 $01 ;identify as a serial port
$1A $05 $01 $27 $40 $04 $61 ;2 byte config base,1 byte ccr presence mask, last table index is 27h, 400h base, cor, csr, iobase0&1 present

;$1B $0D $D7 $01 $19 $01 $55 $AB $60 $E8 $03 $07 $B0 $FF $FF ;com3 3E8 irq any
;$1B $0B $9F $01 $18 $AB $60 $E8 $02 $07 $B0 $FF $FF ;com4 2E8 irq any
;$1B $0B $87 $01 $18 $AB $60 $F8 $03 $07 $B0 $FF $FF ;com1 default settings: 5V, 3f8, IRQ share lvl & an IRQ mask = irq any
;$1B $0B $8F $01 $18 $AB $60 $F8 $02 $07 $B0 $FF $FF ;com2 2f8 irq any
$1B $07 $A7 $01 $18 $23 $B0 $FF $FF ;comN any io on 8 byte boundary, lvl irq any in mask ffff
$FF ;end of this function's CIS

%160 ;pad to here with 0xffs. Start of function 4's CIS

$13 $03 [CIS] ;link target tuple
$21 $02 $02 $01 ;identify as a serial port
$1A $05 $01 $27 $60 $04 $61 ;2 byte config base,1 byte ccr presence mask, last table index is 27h, 400h base, cor, csr, iobase0&1 present

;$1B $0D $DF $01 $19 $01 $55 $AB $60 $E8 $02 $07 $B0 $FF $FF ;com4 2E8 irq any
;$1B $0B $97 $01 $18 $AB $60 $E8 $03 $07 $B0 $FF $FF ;com3 3E8 irq any
;$1B $0B $87 $01 $18 $AB $60 $F8 $03 $07 $B0 $FF $FF ;com1 default settings: 5V, 3f8, IRQ share lvl & an IRQ mask = irq any
;$1B $0B $8F $01 $18 $AB $60 $F8 $02 $07 $B0 $FF $FF ;com2 2f8 irq any
$1B $07 $A7 $01 $18 $23 $B0 $FF $FF ;comN any io on 8 byte boundary, lvl irq any in mask ffff
$FF ;end of this function's CIS

$FF $FF

$80 $11 [<DATE>dd.mm.yyyy] $00
$81 $2E [Copyright (c) Elan Digital Systems Ltd, 2003.] $00

%200 ;make the file 512 bytes long
\x1a

[-- Attachment #3: Type: text/plain, Size: 16 bytes --]

the binary cis:

[-- Attachment #4: SL432.CIS --]
[-- Type: application/octet-stream, Size: 512 bytes --]

[-- Attachment #5: Type: text/plain, Size: 21 bytes --]

the dump_cis_output:

[-- Attachment #6: SL432.DUMP_CIS --]
[-- Type: application/octet-stream, Size: 1517 bytes --]

offset 0x02, tuple 0x01, link 0x03
00 00 ff
dev_info
NULL 0ns, 512b

offset 0x07, tuple 0x15, link 0x3a
05 00 45 6c 61 6e 00 53 65 72 69 61 6c 20 50 6f
72 74 3a 20 53 4c 34 33 32 00 31 2e 30 30 00 4b
49 54 3a 4b 78 78 78 78 78 2d 78 78 78 20 20 20
20 20 20 20 20 20 20 20 00 ff
vers_1 5.0, "Elan", "Serial Port: SL432", "1.00",
"KIT:Kxxxxx-xxx "

offset 0x43, tuple 0x20, link 0x04
5d 01 45 4c
manfid 0x015d, 0x4c45

offset 0x49, tuple 0x06, link 0x15
04 00 60 00 00 00 00 b0 00 00 00 00 00 01 00 00
00 60 01 00 00
mfc_long_link
function 0: attr 0x0060
function 1: attr 0x00b0
function 2: attr 0x0100
function 3: attr 0x0160

offset 0x60, tuple 0xff, link 0xff
13 03 43 49 53 21 02 02 01 1a 05 01 27 00 04 61
1b 07 a7 01 18 23 b0 ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
13 03 43 49 53 21 02 02 01 1a 05 01 27 20 04 61
1b 07 a7 01 18 23 b0 ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
13 03 43 49 53 21 02 02 01 1a 05 01 27 40 04 61
1b 07 a7 01 18 23 b0 ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

[-- Attachment #7: Type: text/plain, Size: 625 bytes --]

Tony Olech
Elan Digital Systems Limited
------------------------------------------------------------------------
On 21 Nov 2006, at 13:28, Dominik Brodowski wrote:

> On Tue, Nov 21, 2006 at 08:53:22AM +0000, Tony Olech wrote:
>> YES is does indeed have 4 serial channels.
>
> Four serial channels might be handled by two device functions...
> and it's
> the number of device function which decides whether it is a "MFC"
> device or
> not. And if it indeed has four sub-devices, the PCMCIA core needs
> to be
> improved -- therefore, could you send me a CIS dump for this
> device, please?
>
> Thanks,
> Dominik
>