From owner-freebsd-mobile Tue Mar 23 10:18:50 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id 7F50B14BFA for ; Tue, 23 Mar 1999 10:18:01 -0800 (PST) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id NAA05016 for ; Tue, 23 Mar 1999 13:17:39 -0500 (EST) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id NAA02129 for freebsd-mobile@FreeBSD.ORG; Tue, 23 Mar 1999 13:17:38 -0500 (EST) Message-ID: <19990323131738.B2058@stat.Duke.EDU> Date: Tue, 23 Mar 1999 13:17:38 -0500 From: "Sean O'Connell" To: FreeBSD mobile Subject: Force pccard controller to specific irq Reply-To: "Sean O'Connell" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi- I have been continually frustrated by the way the IRQ is being selected for the PCCard controller. It is grabbing IRQ3 regardless of whether I put something into /boot/loader.rc or not. Is there a way to hardcode IRQ10 into the kernel config file or the /sys/pccard code? The problem is that under Windoze, the card controller uses IRQ10, but under FreeBSD ep0 has a really poor go at it when using IRQ10 (it's fine on IRQ11 if I define it in the kernel that way but this really limits what can be done with the laptop ). It behaves as though that IRQ really isn't free (almost like a duplex mismatch, but it's on a hub and I don't think ep0 can do full-duplex). It all boils down to my desire to have IRQ3 back. I have included /etc/pccard.conf and my kernel. /etc/pccard.conf: # Sample PCCARD configuration file # # Removing all IRQ conflicts from this file can't be done because of some # IRQ-selfish PC-cards. So if you want to use some of these cards in # your machine, you will be forced to modify their IRQ parameters from # the following list. # # IRQ == 0 means "allocate free IRQ from IRQ pool" # IRQ == 16 means "do not use IRQ (e.g. PIO mode)" # # $Id: pccard.conf.sample,v 1.24.2.1 1999/02/05 09:42:27 markm Exp $ # Generally available IO ports io 0x240-0x360 # Generally available IRQs (Built-in sound-card owners remove 5) irq 10 11 # Available memory slots memory 0xd4000 96k # 3Com Etherlink III 3C589D card "3Com Corporation" "3C589D" config 0x1 "ep0" 11 insert echo 3Com Etherlink III inserted insert /etc/pccard_ether ep0 remove echo 3Com Etherlink III removed remove /sbin/ifconfig ep0 delete # Linksys Ethernet card card "Linksys" "Combo PCMCIA EthernetCard (EC" config 0x1 "ed0" 11 insert echo Linksys EthernetCard inserted insert /etc/pccard_ether ed0 remove echo Linksys EthernetCard removed remove /sbin/ifconfig ed0 delete # Eiger 28.8 Fax/Modem card "PCMCIA " "28.8K Fax/Modem " config 0x1f "sio2" 10 insert echo PCMCIA Fax/Modem inserted remove echo PCMCIA Fax/Modem removed Or the kernel: # $Id: GENERIC,v 1.143.2.2 1999/02/15 02:50:07 des Exp $ machine "i386" cpu "I686_CPU" ident OMNIBOOK maxusers 32 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options "VM86" #allow vm86 memory calls config kernel root on wd0 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 disk fd0 at fdc0 drive 0 controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff disk wd0 at wdc0 drive 0 controller wdc1 at isa? port "IO_WD2" bio irq 15 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM # atkbdc0 controlls both the keyboard and the PS/2 mouse controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? tty device npx0 at isa? port IO_NPX irq 13 # Laptop support # # Advanced Power Management device apm0 at isa? # PCCARD (PCMCIA) support # - note -> need to set irq to same as Winders in controller card0 device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 device sio2 at isa? port "IO_COM3" tty irq 10 # Parallel port device ppc0 at isa? port? net irq 7 controller ppbus0 device nlpt0 at ppbus? #device plip0 at ppbus? #device ppi0 at ppbus? #controller vpo0 at ppbus? # 3Com NIC device ed0 at isa? port 0x280 net irq 11 iomem 0xd8000 device ep0 at isa? port 0x300 net irq 11 # Sound card ... ha ha ha ha device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x10 pseudo-device loop pseudo-device vn pseudo-device ether pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's # KTRACE enables the system-call tracing facility ktrace(2). # This adds 4 KB bloat to your kernel, and slightly increases # the costs of each syscall. options KTRACE #kernel tracing # This provides support for System V shared memory and message queues. # options SYSVSHM options SYSVSEM options SYSVMSG # The `bpfilter' pseudo-device enables the Berkeley Packet Filter. Be # aware of the legal and administrative consequences of enabling this # option. The number of devices determines the maximum number of # simultaneous BPF clients programs runnable. pseudo-device bpfilter 4 #Berkeley packet filter -- ------------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message