summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pccard_nbk.c
Commit message (Collapse)AuthorAgeFilesLines
* o Implement some compatibility functions for NEWCARD compat. This isimp2000-06-181-2/+24
| | | | | | | incomplete, but will eventually allow the same drivers to function with both oldcard and newcard. o Remove include of opt_bus.h. It isn't needed and gets in the way of module building.
* Checkin my first batch of New Mexico changes:imp2000-04-251-12/+14
| | | | | o minor whitespace things (bad because this is also a functional commit) o Backport reading in of CIS entries from the driver level.
* o Preliminary support for mapping the CIS by the driver.imp2000-04-201-0/+35
| | | | | | | | o Modify xe driver to use this. There's still some issues with this code, so xe can't map the cis just yet. I'm thinking about how to resolve the issue. pccard_nbk's pccard_alloc_resource is getting in the way.
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* /tmp/msgimp2000-02-211-4/+6
|
* Propagate MAC address in CIS tupple to dev/ed/ driver.hosokawa2000-01-211-0/+17
| | | | | | | | Many ed-based Ethernet PC-cards can't get correct MAC address without this patch. Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Reviewed by: Warner Losh <imp@village.org>
* Switch to using suspend/resume methods rather than the APM hooks.imp1999-12-081-9/+10
| | | | | | | | | | | | | Should have no effect, but does make things a little cleaner. I thought this was the race that was causing problems, but it turned out to be in pccardd waking up after the empty/insert events had happened and being confused. Minor cleanup: o Remove isahd from pccard_devinfo o remove extra from controller o formatting nits o use PCCARD_DEVINFO(d) rather than a bare device_get_ivars(d)
* Allow NULL for startp and/or countp in bus_get_resource() so that you canpeter1999-11-201-2/+4
| | | | get one of the two without having to use a dummy variable.
* Kill unneeded includesimp1999-11-201-4/+0
| | | | Found by phk's script a while ago.
* Do not add children for new bus kludge version of pccard.imp1999-10-281-8/+1
| | | | Fix some compile warnings.
* Massive rewrite of pccard to convert it to newbus.imp1999-10-251-24/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Gut the compatibility interface, you now must attach with newbus. o Unit numbers from pccardd are now ignored. This may change the units assigned to a card. It now uses the first available unit. o kill old skeleton code that is now obsolete. o Use newbus attachment code. o cleanup interfile dependencies some. o kill list of devices per slot. we use the device tree for what we need. o Remove now obsolete code. o The ep driver (and maybe ed) may need some config file tweaks to allow it to attach. See config files that were committed for examples on how to do this. Drivers to be commited shortly. This is an interrum fix until the new pccard. ed, ep and sio will be supported by me with this release, although others are welcome to try to support other devices before new pccard is working. I plan on doing minimal further work on this code base. Be careful when upgrading, since this code is known to work on my laptop and those of a couple others as well, but your milage may vary. BUGS TO BE FIXED: o system memory isn't allocated yet, it will be soon. o No devices actually have a pccard newbus attach in the tree. BUGS THAT MIGHT BE FIXED: o card removal, including suspend, usually hangs the system. Many thanks to Peter Wemm and Doug Rabson for helping me to fill in the missing bits of New Bus understanding at FreeBSD Con '99.
* Reorganize the attachement point for pcic (it was unattached andimp1999-10-151-169/+4
| | | | | | | | | | | | | | | | | | | | | | floating before). Attach pccard devices to pcic, one per slot (although this may change to one per pcic). pcic is now attached to isa (to act as a bridge) and pccard is attached to pcic, cbb and pc98ic (the last two are card bus bridge and the pc98ic version of pcic, neither of which are in the tree yet). Move pccard compat code into pccard/pccard_compat.c. THIS REQUIRES A CONFIG FILE CHANGE. You must change your pcic/card entries to be: # PCCARD (PCMCIA) support controller pcic0 at isa? controller pcic1 at isa? controller card0 The old system was upside down and this corrects that problem. It will make it easier to add support for YENTA pccard/card bus bridges. Much more cleanup needs to happen before newbus devices can have pccard attachments. My previous commit's comments were premature.
* Make it easier to have completely new bus attachment points for pccardimp1999-10-151-4/+60
| | | | | | | | | | devices. There may still be problems with said drivers, if so please let me know. o Move attach-like functionality to the nbk attach compatibility code. o Smarter probe code: for the compatibility code probe succeeds if strcmp succeeds, for noncompatibility you can do anything you like. o Get rid of some compiler warnings introduced in last commit.
* *** empty log message ***imp1999-09-261-0/+2
|
* Kill printf warnings.imp1999-09-261-1/+1
|
* $Id$ -> $FreeBSD$peter1999-09-061-1/+1
|
* Kludge together support for the old pccard system with newbus. Thisimp1999-09-061-0/+274
will allow newbus based drivers to have pccard attachments. Also start printing out probe messages for pccards stating the resources used and regularize many of the pccard printfs. Reviewed by: Peter Wemm.
OpenPOWER on IntegriCloud