From owner-freebsd-mobile Thu Mar 25 10:54:51 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from f77.nop.or.jp (f77.nop.or.jp [210.145.217.241]) by hub.freebsd.org (Postfix) with ESMTP id C78161503A for ; Thu, 25 Mar 1999 10:54:43 -0800 (PST) (envelope-from uch@nop.or.jp) Received: from localhost (localhost [127.0.0.1]) by f77.nop.or.jp (8.9.1a/3.7W) with ESMTP id DAA23411; Fri, 26 Mar 1999 03:54:19 +0900 (JST) To: aland@SoftOrchestra.com Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: New design of PCMCIA/CardBus support. (work in progress) In-Reply-To: Your message of "Wed, 24 Mar 1999 20:59:20 -0800" <3.0.32.19990324205917.01f51650@blueneptune.com> References: <3.0.32.19990324205917.01f51650@blueneptune.com> X-Mailer: Mew version 1.92 on Emacs 20.2 / Mule 3.0 (MOMIJINOGA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990326035418O.uch@nop.or.jp> Date: Fri, 26 Mar 1999 03:54:18 +0900 From: UCHIYAMA Yasushi X-Dispatcher: imput version 971024 Lines: 232 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org | I'll test it. I am going to install -current on another partition, and if | that seems to be more trouble than it's worth, I'll back down to 3.1-stable. | | I have 2.2.8 running fine, will your patch run on it? I'm working on 3.1-RELEASE based FreeBSD/newconfig. It doesn't run on 2.2.8. To test NetBSD elink driver, you need 3 patches. http://www.jp.freebsd.org/~furuta/nc-snapshot/snap_31_19990315.diff ftp://ftp.nop.or.jp/users/uch/PCMCIA/FreeBSD/sys990315-pcmcia990325.patch.gz ftp://ftp.nop.or.jp/users/uch/PCMCIA/FreeBSD/sys990315-pcmcia990325-elinknetbsd.patch.gz 1) extract 3.1-RELEASE source tree at anywhere. (sys31R.tar.gz is my tarball name) # tar zxvf sys31R.tar.gz [...] 2) apply patch # patch -p1 -E < snap_31_19990315.diff [...] # gzip -d < sys990315-pcmcia990325.patch.gz | patch -p0 -E [...] # gzip -d < sys990315-pcmcia990325-elinknetbsd.patch.gz | patch -p0 -E [...] 3) compile `config' (newconfig version of config(8)) # cd usr.sbin/config.new # make -f Makefile.boot [...] 4) compile kernel # cd ../../sys/i386/conf # ../../../usr.sbin/config.new/config ELINK_NETBSD # cd ../../compile/ELINK_NETBSD # make depend && make [...] And see also http://www.jp.freebsd.org/newconfig/ . I've tested 3c509(ep at isa), 3c509(ep at isapnp), 3c589D(ep at pcmcia), 3c575TX(ep at cardbus). Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.1-RELEASE #0: Fri Mar 26 03:37:36 JST 1999 uch@r3000.rfe.nop.or.jp:/usr/src/990325/sys/compile/ELINK_NETBSD Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Xeon/Celeron (267.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping=2 Features=0x183fbff> real memory = 469762048 (458752K bytes) avail memory = 454942720 (444280K bytes) Preloaded elf kernel "kernel" at 0xf0259000. mainbus0 (root) pci0 at mainbus0 Probing for devices on PCI bus 0: pchb0 at pci0 dev 0 func 0bridge0 primary=0 secondary=1 subordinate=1 bridge1 primary=0 secondary=2 subordinate=2 bridge2 primary=0 secondary=3 subordinate=3 ppb0 at pci0 dev 1 func 0pci1 at ppb0 Probing for devices on PCI bus 1: pcib0 at pci0 dev 4 func 0: Intel 82371AB PCI to ISA bridge pirq_to_irq = 10 10 10 10 default irq routingtable=80808080 PIRQ0# (disable)-> 10 PIRQ1# (disable)-> 10 PIRQ2# (disable)-> 10 PIRQ3# (disable)-> 10 INT 00 Must be Edge trigger-> Don't change INT 01 Must be Edge trigger-> Don't change INT 02 Must be Edge trigger-> Don't change INT 03 Edge -> Don't change INT 04 Edge -> Don't change INT 05 Edge -> Don't change INT 06 Edge -> Don't change INT 07 Edge -> Don't change INT 08 Must be Edge trigger-> Don't change INT 09 Edge -> Don't change INT 10 Edge -> Level INT 11 Edge -> Don't change INT 12 Edge -> Don't change INT 13 Must be Edge trigger-> Don't change INT 14 Edge -> Don't change INT 15 Edge -> Don't change set_intline: dev=4,func=2,pin=4,line=10 set_intline: dev=11,func=0,pin=1,line=10 set_intline: dev=12,func=0,pin=1,line=10 set_intline: dev=12,func=1,pin=2,line=10 vendor 0x8086 id 0x7111 at pci0 dev 4 func 1: not configured vendor 0x8086 id 0x7112 at pci0 dev 4 func 2: not configured chipset0 at pci0 dev 4 func 3: Intel 82371AB Power management controller vga1 at pci0 dev 11 func 0: S3 ViRGE DX/GX graphics accelerator cbb0 at pci0 dev 12 func 0 (RF5C47X) cbb0: CardBus resister address 0x0 -> 0x68000000 intrpin A, intrtag 10 intr_establish:irq=10 trigger=level ipl=bio cbb0: interrupting at irq 10 PCI config regs: 0x00: 04781180 02100007 06070003 00822000 0x10: 68000000 020000dc 20020200 fffff000 0x20: 00000000 fffff000 00000000 fffffffc 0x30: 00000000 fffffffc 00000000 0700010a 0x40: 00000000 00000001 00000000 00000000 0x80: 00000000 00000300 04630463 00000000 0x90: 00000000 00000000 00000000 00000000 0xa0: 00000000 00000000 00000000 00000000 socket regs: 00000000 00000006 30000450 00000000 00000000 ExCA regs: 83 3f 00 00 00 00 00 00 cardbus0 at cbb0 bus 2 device 0 pci113xattach: found cardbus pcmcia0 at cbb0 slot 0 cbb0: a 16-bit pcmcia card found. pccbb_pcmcia_socket_enable: 5V card pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44] pccbb_power: CARDBUS_VCC_5V and CARDBUS_VPP_VCC [15] pccbb_pcmcia_wait_ready: status 0x5f cbb0: pccbb_pcmcia_socket_enable 00 cardtype mem 50 pccbb_pcmcia_alloc_mem: addr 0x68001000 size 0x400, realsize 0x1000 pccbb_pcmcia_mem_map window 0 bus 68001000+0+400 at card addr 0 pccbb_pcmcia_do_mem_map: start 0x68001000 end 0x680013ff off 0x97fff000 pccbb_pcmcia_do_mem_map window 0: 0180 0180 ff7f 68 pccbb_pcmcia_socket_disable pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44] pcmcia0: CIS version PCMCIA 2.0 or 2.1 pcmcia0: CIS info: 3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002 pcmcia0: Manufacturer code 0x101, product 0x589 pcmcia0: function 0: network adapter, ccr addr 10000 mask 3 pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel pcmcia0: function 0, config table entry 3: I/O card; irq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16 irqlevel ep0 at pcmcia0 function 0pccbb_pcmcia_socket_enable: 5V card pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44] pccbb_power: CARDBUS_VCC_5V and CARDBUS_VPP_VCC [15] pccbb_pcmcia_wait_ready: status 0x5f cbb0: pccbb_pcmcia_socket_enable 00 cardtype io 70 pccbb_pcmcia_alloc_mem: addr 0x68001000 size 0x14, realsize 0x1000 pccbb_pcmcia_mem_map window 0 bus 68001000+0+14 at card addr 10000 pccbb_pcmcia_do_mem_map: start 0x68001000 end 0x68001013 off 0x9800f000 pccbb_pcmcia_do_mem_map window 0: 0180 0180 0f40 68 pccbb_pcmmcia_io_alloc alloc port 0x700+0x10 pccbb_pcmcia_io_map window 0 io16 port 700+10 pccbb_pcmcia_do_io_map win 0 addr 0x700 size 0x10 width 16 start 00 07, stop 0f 07, ioctl 01 enable 61 : 3Com 3c589 10Mbps Ethernet ep0: address 00:60:97:8d:d8:e9, 8KB byte-wide FIFO, 5:3 Rx:Tx split ep0: 10baseT, 10base5, 10base2 (default 10baseT) pccbb_pcmcia_socket_disable pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [44] cbb1 at pci0 dev 12 func 1 (RF5C47X) cbb1: CardBus resister address 0x0 -> 0x68010000 intrpin B, intrtag 10 intr_establish:irq=10 trigger=level ipl=bio cbb1: interrupting at irq 10 PCI config regs: 0x00: 04781180 02100007 06070003 00822000 0x10: 68010000 220000dc 20030300 fffff000 0x20: 00000000 fffff000 00000000 fffffffc 0x30: 00000000 fffffffc 00000000 0700020a 0x40: 00000000 00000001 00000000 00000000 0x80: 00000000 00000300 04630463 00000000 0x90: 00000000 00000000 00000000 00000000 0xa0: 00000000 00000000 00000000 00000000 socket regs: 00000000 00000006 30000860 00000000 00000000 ExCA regs: 83 3f 00 00 00 00 00 00 cardbus1 at cbb1 bus 3 device 1 cardbusattach: CardBus card found [0x2] cardbus_attach_card: cb1 start pccbb_power: CARDBUS_VCC_3V and CARDBUS_VPP_UC [1] cardbus_attach_card: Vendor 0x10b7, Product 0x5057, CIS 0x90 tuple: LINKTARGET len 5 0x 0: 13 3 43 49 53 tuple: MANFID len 6 0x 0: 20 4 1 1 57 50 tuple: CONFIG_CB len 8 0x 0: 4 6 3 1 0 0 0 0 tuple: CFTABLE_ENTRY_CB len 14 0x 0: 5 c 41 9a 1 b5 1e 1 55 2 30 ff ff 1 tuple: BAR len 8 0x 0: 7 6 11 0 40 0 0 0 tuple: VERS_1 len 59 0x 0: 15 39 5 0 33 43 6f 6d 20 43 6f 72 70 6f 72 61 0x10: 74 69 6f 6e 0 33 43 35 37 35 41 0 46 61 73 74 0x20: 20 45 74 68 65 72 4c 69 6e 6b 20 58 4c 20 50 43 0x30: 20 43 61 72 64 0 30 30 31 0 ff tuple: FUNCID len 4 0x 0: 21 2 6 1 tuple: END len 66 ep1 at cardbus1 dev 0 function 0pccbb_io_open: 0x8300[0x2c] - 0x8340[0x30] pccbb_cardenable: command reg 0x2100007 3Com 3C575 (ep compatible mode)ep1: address 60:00:b6:08:5f:f7, 8KB word-wide FIFO, 3:5 Rx:Tx split ep1: manual (default manual) - pccard_intr_establish: irq 10 intr_establish:irq=10 trigger=level ipl=net ep1: interrupting at (null) pci113xattach: found cardbus pcmcia1 at cbb1 slot 1 isa0 at pcib0 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support sc0 at isa0 sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at isa0 port 0x3f8-0x3ff irq 4 intr_establish:irq=4 trigger=level ipl=bio sio0: type 16550A sio1 at isa0 port 0x2f8-0x2ff irq 3 intr_establish:irq=3 trigger=level ipl=bio sio1: type 16550A 3COM 3C509 Ethernet card in PnP mode ep2 at isa0 port 0x300-0x30f irq 5: 3Com 3C509 Ethernet ep2: address 00:60:97:96:07:e0, 8KB byte-wide FIFO, 1:1 Rx:Tx split ep2: 10baseT, 10base5 (default 10baseT) intr_establish:irq=5 trigger=edge ipl=net vga0 at isa0 npx0 at isa0 irq 13: INT 16 interface apm0 at isa0: found APM BIOS version 1.2 atkbdc0 at isa0 atkbd0 at isa0 irq 1 lpt0 at isa0 port 0x378-0x37f irq 7 intr_establish:irq=7 trigger=level ipl=bio : Interrupt-driven port lp0: TCP/IP capable interface psm0 at isa0 irq 12 intr_establish:irq=12 trigger=level ipl=bio : model IntelliMouse, device ID 3 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2 intr_establish:irq=6 trigger=edge ipl=bio : FIFO enabled, 8 bytes threshold fd0 at fdc0 drive 0: 1.44MB 3.5in wdc0 at isa0 irq 14 wd0 at wdc0 unit 0: 2445MB (5008752 sectors), 4969 cyls, 16 heads, 63 S/T, 512 B/S isapnp0: read port 0x203 ep3 at isapnp0 port 0x210/16 irq 9 ep3: 3Com 3C509B EtherLink III intr_establish:irq=9 trigger=edge ipl=net ep3: address 00:60:97:96:0b:c8, 8KB byte-wide FIFO, 1:1 Rx:Tx split ep3: 10baseT, 10base5 (default 10baseT) changing root device to wd0s1a --- UCHIYAMA Yasushi uch@nop.or.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message