Date: Fri, 10 Dec 1999 22:09:45 +0100 From: "D. Rock" <rock@dead-end.net> To: Warner Losh <imp@village.org> Cc: mobile@FreeBSD.ORG Subject: Re: cvs commit: src/sys/isa sio.c Message-ID: <38516C19.2859013F@dead-end.net> References: <199912100819.AAA21609@freefall.freebsd.org> <199912100827.BAA20603@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------E24DC417B5A8465A0AE02C7C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Warner Losh wrote: > > In message <199912100819.AAA21609@freefall.freebsd.org> Warner Losh writes: > : sys/isa sio.c > ... > : This makes sio pccards work again. Cards that are active when ejects may > : not work (but they might, softc goes away quickly). > ... > : 1.279 +19 -13 src/sys/isa/sio.c > > I found a number of problems with my sio card that I hadn't seen > before. All of them were related to detach save one embarassing one > (the card.h removal in a previous commit). > > Please test this and lemme know what you think. I'll not guarantee > that active cards going away won't do bad things to your system. I am > interested on inactive (and unopened) cards problems. My card still doesn't work. It does get detected: sio2 at port 0x3e8-0x3ef irq 15 slot 0 on pccard0 sio2: type 16550A But the first real access (like a simple "stty -a < /dev/cuaa2") freezes the machine. Another serial card does work, so I think my configuration is OK. Daniel --------------E24DC417B5A8465A0AE02C7C Content-Type: text/plain; charset=us-ascii; name="cis" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cis" Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 2 000: 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = reserved, 32 units Tuple #2, code = 0x15 (Version 1 info), length = 32 000: 04 01 49 6e 74 65 6c 6c 69 67 65 6e 74 00 50 43 010: 4d 43 49 41 20 46 41 58 2b 4d 4f 44 45 4d 00 ff Version = 4.1, Manuf = [Intelligent],card vers = [PCMCIA FAX+MODEM] Tuple #3, code = 0x20 (Manufacturer ID), length = 4 000: 00 02 01 00 PCMCIA ID = 0x200, OEM ID = 0x1 Tuple #4, code = 0x21 (Functional ID), length = 2 000: 02 00 Serial port/modem Tuple #5, code = 0x22 (Functional EXT), length = 4 000: 00 02 0f 5c Serial interface extension: 16550 UART, Parity - Space,Mark,Odd,Even, Tuple #6, code = 0x22 (Functional EXT), length = 9 000: 05 1f 1f 00 04 00 00 04 00 Modem interface capabilities: Tuple #7, code = 0x22 (Functional EXT), length = 9 000: 06 1f 1f 00 04 00 00 04 00 Modem interface capabilities: Tuple #8, code = 0x22 (Functional EXT), length = 12 000: 02 06 00 3f 1c 03 03 0f 07 00 01 b5 Data modem services available: Tuple #9, code = 0x22 (Functional EXT), length = 8 000: 13 06 00 1f 00 02 00 b5 Tuple #10, code = 0x22 (Functional EXT), length = 8 000: 23 06 00 1f 00 02 00 b5 Tuple #11, code = 0x1a (Configuration map), length = 5 000: 01 27 80 ff 67 Reg len = 2, config register addr = 0xff80, last config = 0x27 Registers: XXX--XX- Tuple #12, code = 0x1b (Configuration entry), length = 19 000: cf 41 99 79 55 3d 86 46 26 4c aa 60 f8 03 07 f0 010: bc 86 28 Config index = 0xf(default) Interface byte = 0x41 (I/O) +RDY/-BSY active Vcc pwr: Nominal operating supply voltage: 5 x 1V Continuous supply current: 3.5 x 10mA Max current average over 1 second: 1 x 100mA, ext = 0x46 Max current average over 10 ms: 2 x 100mA Power down supply current: 4.5 x 1mA Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3f8 block length = 0x8 IRQ modes: Level, Pulse, Shared IRQs: 4 5 6 7 10 11 12 13 15 Max twin cards = 0 Misc attr: (Audio-BVD2) (Power down supported) Tuple #13, code = 0x1b (Configuration entry), length = 7 000: 17 08 aa 60 f8 02 07 Config index = 0x17 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2f8 block length = 0x8 Tuple #14, code = 0x1b (Configuration entry), length = 7 000: 1f 08 aa 60 e8 03 07 Config index = 0x1f Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x3e8 block length = 0x8 Tuple #15, code = 0x1b (Configuration entry), length = 7 000: 27 08 aa 60 e8 02 07 Config index = 0x27 Card decodes 10 address lines, 8 Bit I/O only I/O address # 1: block start = 0x2e8 block length = 0x8 Tuple #16, code = 0xff (Terminator), length = 0 2 slots found --------------E24DC417B5A8465A0AE02C7C Content-Type: text/plain; charset=us-ascii; name="dmesg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg" Copyright (c) 1992-1999 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #12: Fri Dec 10 21:16:47 CET 1999 root@laptop:/usr/src/sys/compile/ROCK Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Xeon/Celeron (232.11-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 67108864 (65536K bytes) avail memory = 62140416 (60684K bytes) Preloaded elf kernel "kernel" at 0xc02db000. VESA: v2.0, 1024k memory, flags:0x0, mode table:0xc00c8cf6 (c0008cf6) VESA: Copyright 1994 TRIDENT MICROSYSTEMS INC. Pentium Pro MTRR support enabled npx0: <math processor> on motherboard npx0: INT 16 interface apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard pci0: <PCI bus> on pcib0 vga-pci0: <Trident model 9397 VGA-compatible display device> irq 9 at device 2.0 on pci0 isab0: <Intel 82371AB PCI to ISA bridge> at device 3.0 on pci0 isa0: <ISA bus> on isab0 ata-pci0: <Intel PIIX4 ATA controller> at device 3.1 on pci0 ata-pci0: Busmastering DMA supported ata0 at 0x01f0 irq 14 on ata-pci0 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> irq 9 at device 3.2 on pci0 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered chip1: <Intel 82371AB Power management controller> at device 3.3 on pci0 pcic-pci0: <TI PCI-1131 PCI-CardBus Bridge> at device 10.0 on pci0 pcic-pci1: <TI PCI-1131 PCI-CardBus Bridge> at device 10.1 on pci0 atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> on isa0 sc0: VGA <6 virtual consoles, flags=0x200> fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 pcic0: <VLSI 82C146> at irq 10 on isa0 pccard0: <PC Card bus -- kludge version> on pcic0 pccard1: <PC Card bus -- kludge version> on pcic0 ppc0 at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode lpt0: <generic printer> on ppbus 0 lpt0: Interrupt-driven port ppi0: <generic parallel i/o> on ppbus 0 unknown0: <PNP0c02> at port 0x4d0-0x4d1,0xff00-0xff41,0xff80-0xff8f,0x10-0x1f,0x398-0x399,0x22,0x24-0x3d,0x50-0x52,0x72-0x77,0x90-0x9f,0xa4-0xad,0xb0-0xbd,0x2100-0x216f,0x2178-0x21ef,0x21f8-0x21ff,0x46e8 on isa0 unknown1: <PNP0c02> at port 0x80,0x1260-0x1263,0x2260-0x2263,0x3260-0x3263,0x4260-0x4263,0x5260-0x5263,0x6260-0x6263,0x7260-0x7263,0x8260-0x8263,0x9260-0x9263,0xa260-0xa263,0xb260-0xb263,0xc260-0xc263,0xd260-0xd263,0xe260-0xe263,0xf260-0xf263 iomem 0xfff80000-0xfffdffff,0xfffe0000-0xffffffff on isa0 unknown2: <PNP0c01> at iomem 0-0x9ffff,0xe0000-0xfffff,0x100000-0x3ffffff on isa0 unknown3: <PNP0200> at port 0-0xf,0x81-0x8f,0xc0-0xdf drq 4 on isa0 unknown: <PNP0000> can't assign resources unknown4: <PNP0100> at port 0x40-0x43 irq 0 on isa0 unknown5: <PNP0b00> at port 0x70-0x71 irq 8 on isa0 unknown: <PNP0303> can't assign resources unknown6: <PNP0c04> at port 0xf0-0xff irq 13 on isa0 unknown: <PNP0800> can't assign resources unknown7: <PNP0a03> at port 0xcf8-0xcff on isa0 sio0: <Generic IRDA-compatible device> at port 0x2f8-0x2ff irq 3 drq 3 on isa0 sio0: type 16550A unknown: <PNP0f13> can't assign resources sio1: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0 sio1: type 16550A unknown: <PNP0700> can't assign resources unknown: <PNP0400> can't assign resources unknown8: <ESS0006> at port 0x800-0x807 on isa0 joy0: <ESS0001 PnP Joystick> at port 0x201 on isa0 pcm0: <ESS1869> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on isa0 unknown9: <PNP0e03> at port 0x3e0-0x3e1 on isa0 ad0: <TOSHIBA MK3205MAV/E0.03 A> ATA-4 disk at ata0 as master ad0: 3102MB (6354432 sectors), 6304 cyls, 16 heads, 63 S/T, 512 B/S ad0: 16 secs/int, 1 depth queue, PIO acd0: <TOSHIBA CD-ROM XM-1802B/1115> CDROM drive at ata0 as slave acd0: read 4134KB/s (4134KB/s), 128KB buffer, DMA acd0: supported read types: CD-R, CD-RW, CD-DA stream acd0: Audio: play, 16 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked Mounting root from ufs:/dev/ad0a pccard: card inserted, slot 0 ed0 at port 0x240-0x25f irq 11 slot 0 on pccard0 ed0: address 00:80:c8:8b:66:e9, type NE2000 (16 bit) --------------E24DC417B5A8465A0AE02C7C Content-Type: text/plain; charset=us-ascii; name="config" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="config" machine i386 ident LAPTOP maxusers 6 options PQ_LARGECACHE cpu I686_CPU options COMPAT_43 options SYSVSHM options SYSVSEM options SYSVMSG options MD5 options DDB options KTRACE options PERFMON options UCONSOLE options INET pseudo-device ether pseudo-device loop pseudo-device bpf pseudo-device tun options ICMP_BANDLIM options FFS options NFS options NFS_NOSERVER options CD9660 options MSDOSFS options PROCFS options FFS_ROOT options SOFTUPDATES options QUOTA options P1003_1B options _KPOSIX_PRIORITY_SCHEDULING options _KPOSIX_VERSION=199309L controller scbus0 device da0 device pass0 pseudo-device pty options MSGBUF_SIZE=20480 controller isa0 options PNPBIOS controller atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 options ATKBD_DFLT_KEYMAP makeoptions ATKBD_DFLT_KEYMAP="german.iso" device psm0 at atkbdc? irq 12 options PSM_HOOKAPM options PSM_RESETAFTERSUSPEND device vga0 at isa? port ? conflicts options VGA_WIDTH90 options VESA pseudo-device splash device sc0 at isa? options MAXCONS=6 options SC_DFLT_FONT makeoptions SC_DFLT_FONT=iso options SC_PIXEL_MODE device npx0 at nexus? port IO_NPX flags 0x0 irq 13 controller ata0 device atadisk0 device atapicd0 options ATA_ENABLE_ATAPI_DMA controller fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device sio0 device ed0 device pcm0 device sbc0 device apm0 at nexus? device joy0 controller pci0 controller pcic0 at isa? irq 10 controller card0 options PCIC_RESUME_RESET controller ppbus0 controller vpo0 at ppbus? device lpt0 at ppbus? device ppi0 at ppbus? device ppc0 at isa? port? irq 7 controller uhci0 controller usb0 device ugen0 --------------E24DC417B5A8465A0AE02C7C Content-Type: text/plain; charset=us-ascii; name="pccard.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pccard.conf" # $FreeBSD: src/etc/pccard.conf.sample,v 1.50 1999/11/21 09:48:15 msmith Exp $ io 0x240-0x400 irq 11 15 memory 0xd4000 96k #debuglevel 9 card "D-Link" "DE-660" config 0x20 "ed0" ? 0x10 insert /etc/pccard_ether ed0 remove /etc/pccard_ether ed0 delete down card "Intelligent" "PCMCIA FAX+MODEM" config 0x1f "sio2" ? # config 0x27 "sio3" ? card "GSM" "DSA Card" config 0x23 "sio3" ? # config 0x22 "sio2" ? --------------E24DC417B5A8465A0AE02C7C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38516C19.2859013F>