summaryrefslogtreecommitdiffstats
path: root/sys/pccard
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - 'Beep' support now happens in it's own separate file, so you can messnate1997-10-265-42/+83
| | | | | | | around with different noises for the different events and not have it affect other files. Inspired by: PAO
* - Functional changes to PCCARD support.nate1997-10-262-41/+13
| | | | | | | | | | * Kill individual drivers 'suspend' routines, since there's no simple/safe way to suspend/resume a card w/out going through the complete probe at initialization time. * Default to using the apm_pccard_resume sysctl code, which basically pretends the card was removed, and then re-inserted. Suspend/resume is now 'emulated' with a fake insert/removal. (Hence we no longer need the driver-specific suspend routines.)
* - Do a bunch of gratuitous changes intended to make the code easier tonate1997-10-267-403/+408
| | | | | | | | | | | | follow. * Rename/reorder all of the pccard structures, change many of the member names to be descriptive, and follow more closely other 'bus' drivers naming schemes. * Rename a bunch of parameter and local variable names to be more consistant in the code. * Renamed the PCCARD 'crd' device to be the 'card' device * KNF and make the code consistant where it was obvious. * ifdef'd out some unused code
* - Call 'callout_handle_init' on the two timeout channels after they arenate1997-10-261-0/+2
| | | | created in the new slot controller structure.
* - KNF the PCI stuff, no functional changes.nate1997-10-251-20/+24
|
* - Recognize the Cirrus Logic PD6729/6730 PC-Card Controller behind thenate1997-10-241-2/+13
| | | | | | | | PCI bus. [ Re-organized the code to be easier to extend, based on Michael's patch ] Submitted by: Michael Reifenberger <root@totum.plaut.de>
* - Use the definitions found in <i386/isa/isa.h> instead of rolling ournate1997-10-241-6/+7
| | | | | | | | own definition of ISA_HOLE_START. We shouldn't need to include bus/processor specific code in here, but it is required. At least by doing it this way it becomes more obvious where the bogusness is. Obtained from: email with bde
* - defined constant ISA_HOLE_START (would be nice to include machine/pmap.h,nate1997-10-231-57/+66
| | | | | | | | | but it has too much baggage). - create a new routine 'unregister_device_interrupt', which is now used instead of having two routines with the same code snippet. - Minor cleanups and commenting. [ No functional changes, just moving things around ]
* - Move the untimeout code call out of the check for pwr_off_pending. Itnate1997-10-231-3/+2
| | | | shouldn't make any difference, but did on a couple of test systems.
* - Fix braino in last commit. (Slow networks should be outlawed!)nate1997-10-231-2/+2
|
* - When doing suspend/resume, only try to suspend those drivers on activenate1997-10-231-4/+8
| | | | | | | | | | | | | slots. Otherwise, we try to suspend drivers who have been disabled already. [ The only reason the drivers are still on the list is because of race conditions where the card is removed while the driver is in use. We leave the drivers on the slot list (leaving all of their structures in place in case a process is using it) but set it's state to empty so that further uses by the pccard code know not to expect active cards. ]
* Back our V1.36, due to reports of badness. (IRQ's are again allocatednate1997-10-231-1/+1
| | | | | | | from the 'lower' interrupts to the 'higher' interrupts.) We need to find a way to set the interrupt for the controller in the config file. Determined by: handy@sag.space.lockheed.com
* - Simplify code by removing a variable which was initialized once, nevernate1997-10-232-8/+2
| | | | modified, and was expected to have the initialized value.
* LEarn about the TI 1131.wollman1997-10-171-0/+2
|
* - Bring in APM_PCCARD_RESUME support from PAO, FreeBSD style. This newnate1997-10-061-8/+33
| | | | | | | sysctl option 'fakes' like a card was removed and inserted when the machine is brought up again from a suspend. It is disabled by default, and the old code is used. Obtained from: PAO
* - Include <sys/interrupt.h> to avoid compiler errors.nate1997-10-061-0/+1
|
* - Fix braino in last commit.nate1997-10-061-11/+3
|
* Modem cards send the speaker audio (dialing noises) to the host'snate1997-10-062-18/+49
| | | | | | | | | speaker. Cirrus Logic PCIC chips must enable this. There is also a Low Power Dynamic Mode bit that claims to reduce power consumption by 30%, so enable it and hope for the best. PR: 4650 Submitted by: Nick Sayer <nsayer@quack.kfu.com>
* - Allocate the 'PCIC' interrupt from the last available (higher #) IRQnate1997-10-061-1/+1
| | | | | | | instead of the first available, like Win95 does. This appears to help on some machines, and avoids potential problems with built-in serial ports which tend to live at IRQ 3, which is usually picked with the old method.
* - Don't start at IRQ 0 in build-freelist, but instead start at IRQ 1.nate1997-10-061-1/+1
| | | | (Not sure if this makes muich difference, but you never know.)
* - Style policenate1997-10-062-30/+30
| | | | | | - Updated some comments using data from the most recent PAO release. Obtained (partially) from: PAO-970616
OpenPOWER on IntegriCloud