Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Interrupt handlers which do nothing should return 0 (or -1 if they are not | 2007-11-25 | 1 | -2/+2 | ||
| | | | | | sure) ok kettenis jsg | |||||
* | If some rather important registers read as 0xffffffff then the device | 2007-11-25 | 1 | -4/+11 | ||
| | | | | | | is probably not there and we should not attach cardbus. Viao TZ-series with a Ricoh cardbus+ofw+MMC/SD/MS/.. chip ok kettenis jsg | |||||
* | remove an ugly nested block | 2007-11-25 | 1 | -8/+5 | ||
| | ||||||
* | Don't do anything in the shutdownhook if the registers aren't mapped. | 2007-11-23 | 1 | -1/+5 | ||
| | | | | ok deraadt@, fgsch@ | |||||
* | Add a symbolic name parameter to cardbus_intr_establish(). | 2006-10-12 | 1 | -9/+19 | ||
| | | | | | | Count cardbus devices interrupts in cbb(4) using evcount(9). ok deraadt@ | |||||
* | removal of '#ifdef rbus ... #else ...' directives, we use rbus in all | 2006-06-21 | 1 | -225/+2 | ||
| | | | | | | | | cases anyways, so we might as well remove code (the !rbus case) thats been dead throughout the last years and just use the rbus code without ifdefs. brad, miod "I am all for this diff" ok deraadt, mickey | |||||
* | remove redundant commented debug define | 2006-06-14 | 1 | -2/+1 | ||
| | ||||||
* | - add pccbb_attach_hook in pccbbattach for MD initializations. | 2006-04-02 | 1 | -14/+13 | ||
| | | | | | | | - omit arithmetics to bus_space_handle_t. - remove use of IST_LEVEL; not defined on sparc64 and unused. From NetBSD | |||||
* | splvm. | 2006-03-11 | 1 | -1/+3 | ||
| | ||||||
* | remove splimp handler. | 2006-03-11 | 1 | -5/+1 | ||
| | ||||||
* | Add some missing 'break;'s in auich and auixp that lint spotted. While | 2005-11-26 | 1 | -2/+2 | ||
| | | | | | | here, use FALLTHRU or FALLTHROUGH to make lint even happier. ok marco@ miod@ | |||||
* | use proper bus_size_t for register offsets and not bus_addr_t; uwe@ miod@ testing | 2005-11-23 | 1 | -4/+4 | ||
| | ||||||
* | Support the CardBus part of TI's PCI7XX1 controllers. | 2005-10-05 | 1 | -1/+3 | ||
| | | | | ok deraadt@, miod@ | |||||
* | add special handling for some o2micro devices, so by instance atheros works. | 2005-10-02 | 1 | -2/+32 | ||
| | | | | | | | adapted from similar linux change by Aristeu Sergio Rozanski Filho <aris at cathedrallabs dot org> via Leonardo Chiquitto Filho <leonardo at iken dot com dot br>. test compiled by pedro@. | |||||
* | spelling. | 2005-09-16 | 1 | -4/+4 | ||
| | ||||||
* | enforce 10-bit width for i/o addresses when start address is assigned by | 2005-08-03 | 1 | -4/+32 | ||
| | | | | | the driver and calcule address line mask when is not. from haya@netbsd.org. tested by several ppl. | |||||
* | Add pcmcia_intr_string() to format the intr string for pcmcia attach | 2005-01-27 | 1 | -3/+15 | ||
| | | | | routines. | |||||
* | tweaks for ti12xx bridges; from freebsd via rees@ | 2004-07-14 | 1 | -6/+45 | ||
| | ||||||
* | do not panic if there is no IPL_IMP | 2003-12-23 | 1 | -1/+3 | ||
| | ||||||
* | add topic97b support; from netbsd and tested by Pedro la Peu <pedro@am-gen.org> | 2003-06-25 | 1 | -1/+25 | ||
| | ||||||
* | Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and other | 2002-07-23 | 1 | -3/+3 | ||
| | | | | portions of the tree. | |||||
* | Final __P removal plus some cosmetic fixups | 2002-03-14 | 1 | -7/+7 | ||
| | ||||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -85/+85 | ||
| | ||||||
* | TI 1410 PCI-CardBus support. | 2002-01-30 | 1 | -1/+3 | ||
| | ||||||
* | fix a // comment and kill a few trailing spaces | 2001-12-24 | 1 | -26/+26 | ||
| | ||||||
* | Change pci_intr_map to take pci_attach_args as an argument. | 2001-08-25 | 1 | -3/+2 | ||
| | | | | | | | | | | | 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. | |||||
* | Initialize auto variable (win[{0,1}].win_flags). Also, if PCCBB_MEM_CACHABLE | 2001-08-22 | 1 | -13/+10 | ||
| | | | | | | 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. | |||||
* | fetch sc_intline from pci_intr_line(ih) to accomodate for | 2001-08-19 | 1 | -5/+5 | ||
| | | | | | the line being possibly resolved in pci_intr_map(). found and tested by jason@ | |||||
* | ...and convert this one as well. | 2001-08-19 | 1 | -3/+7 | ||
| | ||||||
* | quieten pcmcia/cardbus interrupt handling at unsuspend time | 2001-08-17 | 1 | -3/+4 | ||
| | ||||||
* | Comment spelling fix, and remove static regardless of | 2001-06-20 | 1 | -6/+4 | ||
| | | | | CBB_DEBUG setting | |||||
* | Make pci_mapreg_map take an extra argument where we can | 2001-06-12 | 1 | -7/+8 | ||
| | | | | | | | 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. | |||||
* | No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok) | 2001-05-16 | 1 | -6/+3 | ||
| | ||||||
* | restore socket base addr and bus number on resume; from netbsd | 2001-05-01 | 1 | -1/+11 | ||
| | ||||||
* | Do not attempt to attach cards that have unsupported (i.e., non-5, non-3) | 2001-02-01 | 1 | -1/+10 | ||
| | | | | | | | 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. | |||||
* | introduce and use a flag indicating that interrupts are | 2001-01-27 | 1 | -1/+6 | ||
| | | | | | | | | | 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. | |||||
* | repair printing | 2001-01-22 | 1 | -2/+2 | ||
| | ||||||
* | map and establish interrupt earlier in the attach routine, | 2001-01-21 | 1 | -44/+30 | ||
| | | | | | | | 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 | |||||
* | BUG FIX: change enable sequence for 16-bit pcmcia cards. This change | 2000-12-06 | 1 | -48/+43 | ||
| | | | | | | | | 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. | |||||
* | Bugfix: reset 16-bit pcmcia in chip initialisation sequence; from NetBSD. | 2000-11-29 | 1 | -1/+11 | ||
| | ||||||
* | Correct PCI interrupt setup routine for Texas Instruments PCI113X CardBus | 2000-11-29 | 1 | -5/+9 | ||
| | | | | bridges so that hot insertion and removal works; from NetBSD. | |||||
* | Clarify that the RX5C57X requires write to the PCI_LEGACY to disable and | 2000-11-29 | 1 | -5/+6 | ||
| | | | | not PCI_BCR_INTR; from NetBSD. | |||||
* | Power down PC cards at shutdown time; from NetBSD. I'm also reverting my own | 2000-11-29 | 1 | -6/+5 | ||
| | | | | | | | 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). | |||||
* | Defer most of the attach process as recommended in the comments; mickey@ ok | 2000-10-09 | 1 | -33/+31 | ||
| | ||||||
* | For the Toshiba TOPIC95B CardBus controller, we must clear the socket and slot | 2000-09-24 | 1 | -1/+5 | ||
| | | | | | control registers at shutdown else we hang. Fixes it on my laptop, should help out espie@ on his Toshiba system too. | |||||
* | convert to new timeouts | 2000-07-25 | 1 | -4/+5 | ||
| | ||||||
* | Sync with NetBSD. | 2000-07-06 | 1 | -9/+83 | ||
| | ||||||
* | Reorder irq enabling and vector setup; makes Ricoh-based PCI-CardBus bridges | 2000-07-06 | 1 | -170/+169 | ||
| | | | | behave more nicely. Also remove statics. From niklas@ | |||||
* | Remove one of my completely incomprehensible debugging printf's. | 2000-04-26 | 1 | -2/+1 | ||
| | ||||||
* | Fix function prototype so it compiles again. | 2000-04-20 | 1 | -9/+4 | ||
| |