summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pccbb.c
AgeCommit message (Collapse)Author
2002-07-23Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and otherDale Rahn
portions of the tree.
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-30TI 1410 PCI-CardBus support.Federico G. Schwindt
2001-12-24fix a // comment and kill a few trailing spacesMichael Shalayeff
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
2001-08-22Initialize auto variable (win[{0,1}].win_flags). Also, if PCCBB_MEM_CACHABLEAaron Campbell
isn't set, clear the prefetchable bits in the bridge control register. These fixes from NetBSD. Now OpenBSD won't hang when it tries to read the CIS from an ADMtek-based card through a Ricoh-based PCI-CardBus bridge.
2001-08-19fetch sc_intline from pci_intr_line(ih) to accomodate forMichael Shalayeff
the line being possibly resolved in pci_intr_map(). found and tested by jason@
2001-08-19...and convert this one as well.Miod Vallat
2001-08-17quieten pcmcia/cardbus interrupt handling at unsuspend timeTheo de Raadt
2001-06-20Comment spelling fix, and remove static regardless ofNiklas Hallqvist
CBB_DEBUG setting
2001-06-12Make pci_mapreg_map take an extra argument where we canNiklas Hallqvist
put a size limitation of the PCI region to map. That makes the PERC 3/Di raid controller usable, as it publishes too much PCI memory for us to map in the kernel virtual memory. As we only access the first 256 byte it is of no use to map 128MB of kvm.
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-05-01restore socket base addr and bus number on resume; from netbsdMichael Shalayeff
2001-02-01Do not attempt to attach cards that have unsupported (i.e., non-5, non-3)Aaron Campbell
voltages. Fixes the problem with those silly SCM Microsystems PCI-CardBus dock boards that are often shipped with Lucent WaveLAN cards. Thanks to drahn@openbsd.org for testing and dave@arbor.net for originally reporting the problem.
2001-01-27introduce and use a flag indicating that interrupts areMichael Shalayeff
enabled for this cbb. essentially this means that cbb driver has completed it's initialization and is ready to treat interrupts. this was exposed by ccb's sharing their interrupt and pccbbintr() being called for cbb which has not completed attachment due to interrupt sharing.
2001-01-22repair printingTheo de Raadt
2001-01-21map and establish interrupt earlier in the attach routine,Michael Shalayeff
instead of middle of the thread. behaviour remains the same. since interrupts are disabled in the controller until proper time this is safe to do this way. deraadt@ ok
2000-12-06BUG FIX: change enable sequence for 16-bit pcmcia cards. This changeAaron Campbell
provides better (not perfect) reset sequence. The most significant change is asserting output enable reg before power up. Stop routing interrupt during reset. From NetBSD.
2000-11-29Bugfix: reset 16-bit pcmcia in chip initialisation sequence; from NetBSD.Aaron Campbell
2000-11-29Correct PCI interrupt setup routine for Texas Instruments PCI113X CardBusAaron Campbell
bridges so that hot insertion and removal works; from NetBSD.
2000-11-29Clarify that the RX5C57X requires write to the PCI_LEGACY to disable andAaron Campbell
not PCI_BCR_INTR; from NetBSD.
2000-11-29Power down PC cards at shutdown time; from NetBSD. I'm also reverting my ownAaron Campbell
fix for this (rev 1.7) as this is the better way to do it. This fixes the problem seen with reboot while an xl(4) CardBus card is in a slot on my Toshiba Tecra 550CDT (so it should fix the same problem espie@ has seen on a different model Toshiba laptop).
2000-10-09Defer most of the attach process as recommended in the comments; mickey@ okAaron Campbell
2000-09-24For the Toshiba TOPIC95B CardBus controller, we must clear the socket and slotAaron Campbell
control registers at shutdown else we hang. Fixes it on my laptop, should help out espie@ on his Toshiba system too.
2000-07-25convert to new timeoutsMichael Shalayeff
2000-07-06Sync with NetBSD.Aaron Campbell
2000-07-06Reorder irq enabling and vector setup; makes Ricoh-based PCI-CardBus bridgesAaron Campbell
behave more nicely. Also remove statics. From niklas@
2000-04-26Remove one of my completely incomprehensible debugging printf's.Aaron Campbell
2000-04-20Fix function prototype so it compiles again.Aaron Campbell
2000-04-08Initial check-in for support of 32-bit CardBus PC Cards; from NetBSD. On manyAaron Campbell
machines, this code needs the new PCIBIOS* options enabled in the kernel config file to work, but your mileage may vary. Included is a working 3c575 driver for 3Com 10/100 CardBus PC Card NICs (tested only with the 'C' revision). The 3c575 is the pccard version of the PCI EtherLink XL cards, and thus the xl driver has been split into /sys/dev/ic.