summaryrefslogtreecommitdiffstats
path: root/sys/pccard
Commit message (Collapse)AuthorAgeFilesLines
* Well folks, this is it - The second stage of the removal for build supportpeter1999-04-172-2/+1
| | | | for LKM's..
* Import PCI pccard bridge chip probing from PAO. Hopeful prelude fornsayer1999-04-012-13/+44
| | | | | | | broadening chipset support in -current. Reviewed by: joerg Obtained from: PAO
* - Made the setting of the machdep.pccard.pcic_irq from the boot config filenate1999-03-261-5/+6
| | | | | | actually work. Reviewed by: "Sean O'Connell" <sean@stat.Duke.EDU>, msmith
* Remove static delcarations from {,un}register_pcic_intr declarationsimp1999-03-121-2/+2
| | | | | | | | in the not APIC_IO case. This should silence the warnings when building pcic.c as well as the undefined functions when the kernel links. Noticed by: several people in -current and me building the kernel
* Updated to use new APIC (SMP) safe interrupt register/unregisterroger1999-03-102-7/+48
| | | | | | | functions. Posted for review to -smp and -mobile and -hackers with no objections. Reviewed by: Nate
* Header file for pcic interrupt register/unregister functions.roger1999-03-101-0/+36
| | | | No objections from -smp or -mobile or -hackers.
* On second thought: do previous fux in pcic.c better.guido1999-02-142-9/+3
| | | | Now we just untimeout the call to inserted() if it exists.
* Somehow, it is possible to get a pcicintr() when in the resume process.guido1999-02-141-1/+8
| | | | | | | This will trigger inserted()) to be called twice which confuses pccardd. Add code to not process pcicitr())'s when in the middle of a resume process. The real insertion of cards and the emulated one in the suspend/resume code really do not mix up.
* Add "beep" ioctl. (#10 is reserved for PIOCSVIR)kuriyama1999-02-134-4/+14
| | | | | Obtained from: PAO3 Reviewed by: -current list
* Allow the interrupt allocated to the PCIC to be tuned from the kernelmsmith1999-01-291-1/+13
| | | | | environment by setting the variable machdep.pccard.pcic_irq. If the IRQ is invalid, the PCIC will run in polled mode.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-4/+4
| | | | | | | kernel compile. This commit includes significant work to proper handle const arguments for the DDB symbol routines.
* Include <sys/select.h> -- don't depend on pollution in <sys/proc.h>.bde1999-01-271-1/+2
|
* Identify the TI1250 PCMCIA/CardBus bridge. It seems that it's compatibletorstenb1999-01-252-2/+5
| | | | to the TI1131. At least it works in my Compaq Armada 7800.
* Initial update pccard code for KLD module support. Module supportpeter1999-01-195-156/+84
| | | | | | however is only marginally useful until the new-style bus (pci and isa) stuff comes onboard to give us a better shot at actually pci and isa drivers loadable (or preloadable anyway).
* probe function changed from returning char * to const char *.dillon1998-12-141-3/+3
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-1/+1
| | | | and local variables, goto labels, and functions declared but not defined.
* Add #include to get a prototype for update_intr_masks().peter1998-11-091-1/+2
|
* - Fix a bug where a "power_off_slot' timeout was not cancelled when thenate1998-09-241-1/+6
| | | | | | | | computer 'suspended', although the slot was powered off. There was a race where the slow could be powered off *after* it was assigned a new driver when the computer was 'resumed'. Noticed by: Brian Somers <brian@Awfulhak.org>
* Make PCIC_RESUME_RESET an proper option.brian1998-09-081-3/+4
| | | | | | My laptop (a CTX Cybernote) needs this. It claims to have a PC-Card VLSI 82C146 (5 mem & 2 I/O windows)
* o renable pccard_remove_driver (it was used in the skel.c driver)imp1998-08-262-22/+22
| | | | | o update skel.c to lots of stuff that has happened since the last time it was updated.
* Add probing support for the vadem VG365 and the Vadem VG465 pcic chips.imp1998-08-252-12/+38
| | | | | | | | | We do the same thing we do with all the other Vadem chips and print the right identification for these chips. Tested with the 365, and inferred for the 465. This allows the cheapo PCMCIA card that I got from necx to print the right chip number on boot.
* Fixed printf format errors.bde1998-08-181-4/+4
|
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-162-7/+9
| | | | integers. Don't forget to cast to (void *) as well.
* Changed the type of an isa/general interrupt handler to take abde1998-06-182-7/+7
| | | | | | `void *' arg. Fixed or hid most of the resulting type mismatches. Handlers can now be updated locally (except for reworking their global declarations in isa_device.h).
* This commit fixes various 64bit portability problems required fordfr1998-06-071-2/+2
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Include pc98.h instead of isa.h when PC98 is defined.kato1998-05-051-1/+5
|
* - Give up trying for a simple solution for correctly recognizing if a cardnate1998-04-202-1/+5
| | | | | | | | | | | was really removed, or simply 'faked' by a suspend/resume. Keep track of both current and previous state, and send that information to the userland programs. [ XXX - This breaks binary compatability with older pccardd programs, but they don't work reliably. :( ]
* - Only poll the PCIC controller for insertion/removal events if thenate1998-04-201-3/+4
| | | | controller hasn't been assigned an IRQ.
* Support compiling with `gcc -ansi'.bde1998-04-151-7/+7
|
* - Whoops, better have the structure created before trying to use it innate1998-04-091-2/+2
| | | | | | the patch I just submitted. Noticed by: phk
* - Fix bug I introduced a few months ago. If a driver fails the probe,nate1998-04-081-4/+4
| | | | | | | | correctly unregister the interrupt from the system. [ My fix is much simpler than the one provided in the PR ] PR: 6249
* Uninitialized pointer reference may happen on particular environment.hosokawa1998-03-191-1/+6
| | | | (for example, it kills my new laptop, Toshiba Libretto 100....)
* Removed unused #includes.bde1998-02-251-2/+1
|
* - Removed typo in Copyright and added Id.nate1998-02-071-1/+2
|
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-241-1/+3
| | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow.
* - Support for multiple PD6832 controllers. Each found 6832 is assignednate1998-01-202-4/+22
| | | | | | | and initializes the next two ports in order starting at 03e0. This also patches pcic_p.h to reduce the I/O ports mapped from 4 to 2. Submitted by: Ted Faber <faber@ISI.EDU>
* Specify the minor number correctly when creating devfs entries.msmith1998-01-021-1/+3
|
* - Remove the code that cleared out the registers (previously enabled by thenate1997-12-021-7/+0
| | | | | | | | option PCIC_NOCLRREGS). This is now the default behavior since it's apparently required for the CLPD6832, and doesn't negatively affect any of my test machines. Requested by: Ted Faber <faber@ISI.EDU>
* - Add necessary include files and fix bugs in last.nate1997-12-021-3/+6
|
* - Bring in code removed from /sys/pccard/pcic.c, including DEVICE IDs, andnate1997-12-022-95/+107
| | | | | | | more bootverbose code. - Style nits. No significant functional changes.
* - Remove PCI code from here, now that the PCI framework lives in /sys/pci.nate1997-12-021-86/+5
|
* - Framework for PCI/CardBus controllers running in PCMCIA emulationnate1997-12-022-0/+216
| | | | | | | mode. Currently, the only supported controller is the Cirrus Logic PD6832, but others can be supported with docs on them. Submitted by: Ted Faber <faber@ISI.EDU>
* - Renamed 'card.h' to 'cardinfo.h', to avoid namespace collisions withnate1997-11-185-146/+6
| | | | | | the card.h that config builds. [ Repository renaming done in the background to save the card.h history ]
* MF22:nate1997-11-152-6/+7
| | | | | | | | | | | | (update_intr_masks might not need to be done in 3.X, but the new generic interrupt code is incomplete w/regard to support for the PCCARD code, so to avoid any potential problems use it. It can't hurt). - Correctly register pcic_imask with the system interrupt code. - Call update_intr_masks() so that pcic_imask modifications that occur when card interrupts are registered get updated in the system interrupt code.
* - Reset the pcic controller interrupt 'poll' timeout *after* we call thenate1997-11-041-6/+6
| | | | interrupt routine.
* - More style nits (sorry, I should have done this last time).nate1997-10-281-10/+10
|
* - Style nit.nate1997-10-281-20/+20
|
* - Disable cards when doing a suspend by emulating that they have beennate1997-10-283-10/+13
| | | | | | | | | | | | removed. Add a new state 'suspend' so we 'fake' insertion events at resume time for the cards that have been suspended. [ The code still works if you remove the card during suspend, switch the card during suspend, or combinations of both. ] Reviewed by: frf@xocolatl.com
* - Instead of relying on a functional call to register PCARD-capable drivers,nate1997-10-263-2/+13
| | | | | | | | use a Linker Set. Note, if a driver is loaded as an LKM if will have to use the function call, but since none of the existing drivers are loadable, this made things cleaner and boot messages nicer. Obtained from: PAO-970616
* - Patch the 'skeleton' example driver to be more consistant with the newnate1997-10-261-40/+28
| | | | state of the world.
OpenPOWER on IntegriCloud