Date: Tue, 15 Jul 1997 12:54:52 -0400 From: Paul Werkowski <pw@snoopy.mv.com> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: polling in sio.c Message-ID: <199707151654.MAA00268@snoopy.mv.com> In-Reply-To: Your message of "Tue, 15 Jul 1997 21:03:44 %2B0930." <199707151133.VAA16316@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Michael Smith <msmith@atrad.adelaide.edu.au> Message-Id: <199707151133.VAA16316@genesis.atrad.adelaide.edu.au> Subject: Re: polling in sio.c In-Reply-To: <199707091741.NAA01725@snoopy.mv.com> from Paul Werkowski at "Jul 9, 97 01:41:04 pm" To: pw@snoopy.mv.com (Paul Werkowski) Date: Tue, 15 Jul 1997 21:03:44 +0930 (CST) Cc: freebsd-mobile@FreeBSD.ORG > Any reason not to base the poll interval on the port line speed? 100Hz is as fast as can be conveniently arranged. I would recommend fixing your modem configuration instead. If you post the output of 'pccard dumpcis' and the /etc/pccard.conf entry you're using, along with the resource allocation details from the top of /etc/pccard.conf and the IRQ usage for your system to mobile@freebsd.org , we can probably sort it out. > Paul Werkowski -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ Ok, thanks. I hope I got it all here.... ============================================ pccardc dumpcis Code 128 not found Code 128 not found code Unknown ignored Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: 00 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = 512b, 1 units Tuple #2, code = 0x15 (Version 1 info), length = 50 000: 05 00 4d 65 67 61 68 65 72 74 7a 00 58 4a 2d 43 010: 43 34 32 38 38 00 56 2e 33 34 20 44 61 74 61 2f 020: 46 61 78 2f 43 65 6c 6c 20 50 43 20 43 61 72 64 030: 00 ff Version = 5.0, Manuf = [Megahertz],card vers = [XJ-CC4288] Addit. info = [V.34 Data/Fax/Cell PC Card],[ÿ] Tuple #3, code = 0x20 (Manufacturer ID), length = 4 000: 02 01 23 00 PCMCIA ID = 0x102, OEM ID = 0x23 Tuple #4, code = 0x1a (Configuration map), length = 5 000: 01 23 00 03 03 Reg len = 2, config register addr = 0x300, last config = 0x23 Registers: XX------ Tuple #5, code = 0x1b (Configuration entry), length = 16 000: e0 41 99 49 55 26 25 aa 60 f8 03 07 30 ff ff 28 Config index = 0x20(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Nominal operating supply voltage: 5 x 1V Continuous supply current: 2 x 100mA Power down supply current: 2 x 10mA Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3f8 block length = 0x8 IRQ modes: Level IRQs: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Max twin cards = 0 Misc attr: (Audio-BVD2) (Power down supported) Tuple #6, code = 0x1b (Configuration entry), length = 7 000: 21 08 aa 60 f8 02 07 Config index = 0x21 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 Tuple #7, code = 0x1b (Configuration entry), length = 7 000: 22 08 aa 60 e8 03 07 Config index = 0x22 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 Tuple #8, code = 0x1b (Configuration entry), length = 7 000: 23 08 aa 60 e8 02 07 Config index = 0x23 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 Tuple #9, code = 0x21 (Functional ID), length = 2 000: 02 01 Serial port/modem - POST initialize Tuple #10, code = 0x22 (Functional EXT), length = 4 000: 00 02 0f 7c Serial interface extension: 16550 UART, Parity - Space,Mark,Odd,Even, Tuple #11, code = 0x22 (Functional EXT), length = 9 000: 01 1f 0d 00 03 00 00 03 00 Modem interface capabilities: Tuple #12, code = 0x22 (Functional EXT), length = 12 000: 02 06 00 3f 1c 03 03 0f 07 00 02 b5 Data modem services available: Tuple #13, code = 0x22 (Functional EXT), length = 8 000: 13 06 00 0f 00 02 00 b5 Tuple #14, code = 0x22 (Functional EXT), length = 8 000: 23 06 00 0f 00 02 00 b5 Tuple #15, code = 0x0 (Null tuple), length = 7 000: 02 01 23 00 05 00 ff Tuple #16, code = 0x14 (No link), length = 0 Tuple #17, code = 0xff (Terminator), length = 0 2 slots found ================================================================ # PC-card sample configuration file # Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org> # # Generally available IO ports io 0x240-0x2e0 0x300-0x360 # Generally available IRQs irq 3 4 5 9 11 # Available memory slots memory 0xd4000 96k # ......... for unsupported cards ......... card "Megahertz" "XJ-CC4288" config 0x22 "sio2" 5 insert echo Megahertz XJ-CC4288 inserted remove echo Megahertz XJ-CC4288 removed ============================================================== dmesg|grep irq pcic0 <O2micro PCI to PC-Card Bridge> rev 2 int a irq 11 on pci0:3:0 sc0 at 0x60-0x6f irq 1 on motherboard sio0 at 0x3f8-0x3ff irq 4 on isa lpt0 at 0x378-0x37f irq 7 on isa psm0 at 0x60-0x64 irq 12 on motherboard fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc1 at 0x170-0x177 irq 15 on isa pcic: controller irq 3 ============================================================= config file # PCCARD (PCMCIA) support controller crd0 device pcic0 at crd? device pcic1 at crd? device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device sio2 at isa? port "IO_COM3" tty irq 5 vector siointr ================================================================ from dmesg after insert/remove Card inserted, slot 0 sio2: Warning: irq_pending error1. <<< first one in sio.c sio2: type 16550A sio2: unload,gone Return IRQ=5 Card removed, slot 0 ==============================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707151654.MAA00268>