summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/i82365.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not perform timeout maintainance on sc->poll_timeout if it has not beenmiod2015-08-151-5/+6
| | | | initialized yet.
* Make pcic_ident_ok() completely silent in case of failure.miod2015-07-261-4/+4
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-6/+6
| | | | after discussions with beck deraadt kettenis.
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-3/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* simplify kthread_create(). no more stdargderaadt2013-11-181-3/+4
| | | | ok matthew guenther mikeb
* All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}deraadt2010-09-061-2/+2
|
* timeout_add -> timeout_add_msecblambert2009-08-021-3/+3
| | | | ok miod@
* More timeout(9) usage cleaned up.mk2008-05-221-3/+2
| | | | ok claudio
* spelling fixes, from Martynas Venckus;jmc2007-11-251-3/+3
|
* use proper bus_size_t for register offsets and not bus_addr_t; uwe@ miod@ testingmickey2005-11-231-2/+2
|
* Prettier diagnostic message; ok deraadt@.grange2005-09-101-2/+2
|
* Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.grange2004-05-041-6/+6
| | | | | | This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
* First round of __P removal in sysmillert2002-03-141-18/+18
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* Back out pcic_delay() since we cannot call tsleep() in interupt context.millert2001-08-171-19/+4
| | | | | For this to work pcmcia would have to be a kernel thread w/ process context.
* move extern int cold to .hfgsch2001-06-241-2/+1
|
* Implement pcic_delay, it uses tsleep for large delays to avoidfgsch2001-05-171-4/+20
| | | | | momentary freezes. deraadt@ ok. Thanks to millert@ and mickey@.
* Use 32 pages instead of 4 in mem_alloc. This is needed by cnw, and usefulfgsch2000-09-051-17/+16
| | | | | w/ other drivers as well. The iomem change has changed long ago to keep using 4 pages; From NetBSD.
* Oops, put back this call to spltty(). When our timeout expires and we poll theaaron2000-06-301-2/+10
| | | | pcic, we don't want to be interrupted by real interrupts generated by the pcic.
* Make suspend -> eject card -> resume work.aaron2000-06-281-72/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | On suspend, the apm code calls each function in its powerhook list. This list contains pointers to functions that are to be executed on PWR_SUSPEND and PWR_RESUME. One of these functions is pcmcia_power() which calls xxx_activate() for each PC Card that is connected with the action DVACT_ACTIVATE (where xxx is the name of the driver for the PC Card). On resume, the same thing happens, except the action is DVACT_ACTIVATE. Clearly, if a card is gone when we resume, trying to activate it is a bad idea. This commit adds a pcic_power() function that runs before pcmcia_power(). On resume, it uses pcic_intr_socket() to detect any events that occurred while we were suspended. (I had to split pcic_event_thread() into a threaded part and a non-threaded part, since the thread will not run when we are in interrupt context, but I need the events to be processed before pcmcia_power() runs.) So, by the time pcic_power() is through, all events that occurred during suspend have been processed, and pcmcia_power() will not try to activate cards that are not there since they have already been completely and properly detached. Note that event handling for card removals first calls the deactivate functions on the card then the detach functions. When we suspend, apm does the deactivate for us. So on resume, if we detect a card has been removed, we skip the deactivation step and just detach. We use the DVF_ACTIVE bit to determine whether or not deactivation has already occurred. Deactivating a device that has already been deactivated causes a panic.
* Implement PCMCIA event polling. This will either complement interrupt-drivenaaron2000-06-231-2/+18
| | | | | | | event notification from the pcic (if an interrupt is available) or allow the insertion and removal of PCMCIA devices even if there is no IRQ for the pcic. Each socket is checked for status change every 0.5 seconds using art's timeout code. Insertion and removal events should no longer ever go unnoticed.
* indent.fgsch2000-04-191-6/+10
|
* Fix a bug introduced after cardbus commit where uart16550a wasfgsch2000-04-191-14/+14
| | | | | being detected as uart16450 as side effect. This also corrects the posibility of misdetection of vadem controllers.
* Initial check-in for support of 32-bit CardBus PC Cards; from NetBSD. On manyaaron2000-04-081-49/+108
| | | | | | | | 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.
* Some KNF. Initialize shutdown just in case.fgsch2000-02-021-13/+20
|
* Fill in detach support in the i82365 driver; mostly netbsd, as was theniklas1999-08-081-24/+203
| | | | former pcmcia commit.
* shrink code, cleanup port printouts, repairs various commentsderaadt1999-07-261-73/+36
|
* Add support for Vadem PCMCIA controllers.fgsch1999-05-021-9/+54
|
* Always check that "range->start" and "range->len" is within the bounds offgsch1999-02-131-4/+4
| | | | "h->sc->iobase" and "h->sc->iosize" before call bus_space_alloc.
* Always initialize sc->handle[i].flags.fgsch1999-02-061-3/+4
| | | | Check if the socket is present before disabling the CSC_INTR.
* Add support for:fgsch1999-01-281-22/+35
| | | | | | | | | | - 3COM 3CXEM556 (Ethernet/Modem) - SVEC Combo and Lancard - Corega PCC-T Add pcmcia_check_cis_quirks to fix some cards whose CIS flat-out lies. Add more products to pcmciadevs. Correctly read 1 controller if CL-PD6729. Remove some unused vars.
* provide pcmcia IO bus mapper with list of blocks where it shouldderaadt1999-01-031-6/+49
| | | | preferentially map; idea by me, code by niklas
* Sync with NetBSD (no detach updates yet).fgsch1998-12-151-12/+12
| | | | This should fix pcic_chip_socket_enable() to work on more machines.
* Added support for Intel 82365SL PCIC controllers and clones from NetBSD.fgsch1998-09-111-0/+1151