summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pccard_nbk.c
Commit message (Collapse)AuthorAgeFilesLines
* If flags were specified for the device, print them in the probeimp2001-09-091-1/+4
| | | | | | message. Some scsi devices have rather elaberate flags, and it is hard to know which ones were specified in pccard.conf when debug information only includes the dmesg.
* There is no tcic driver, so no need to list it here.imp2001-08-151-1/+0
|
* Type sanity: use uintptr_t * for read_ivar and u_int8_t instead of u_charimp2001-08-101-1/+1
|
* #ifdef some 5.0 code with freebsd_version to reduce diffs with stable.imp2001-07-281-3/+16
|
* Update copyright infoimp2001-05-251-2/+1
|
* This code touches MD code inappropriately. So we have to include pc98imp2001-05-151-0/+5
| | | | specific file for pc98.
* Minor style(9) changes:imp2001-05-141-27/+27
| | | | return (VALUE);
* Change machdep.pccard.pcic_mem_{start,end} to machdep.pccard.mem_{start,end}imp2001-05-141-10/+8
| | | | | | | since they have nothing to do with pcic and it makes grepping for pcic infection in pccard harder. MFC after: 3 days
* o Get rid of static array of slots in pccard layer. Move this to theimp2001-05-131-6/+12
| | | | | | | | | softc. o Store pointers to softc in dev_t in si_drv1. o Change 'kludge version' to 'classic version' since things are getting less kludgy. o Minor code shuffling so that we probe and attach the pccard slots. o Minor style(9) changes.
* Add a sysctl pair for the pcic memory allocation rangedmlb2001-05-081-3/+16
| | | | | | | | | | | | | machdep.pccard.pcic_mem_start machdep.pccard.pcic_mem_end and default the range to IOM_BEGIN/IOM_END. This may prove useful to if_ray users (and others) on more modern hardware that maps BIOS stuff into 0xd000-0xdffff. MFC: after 1 week Approved by: imp
* My fix to NEWCARD for getting the function type broke oldcard due toimp2001-04-211-2/+2
| | | | | | | | a name conflict. Pointed out by: markm # I had to login to freefall to make this commit, so something maybe up
* First step towards making loadable modules independent of havingimp2001-03-221-4/+6
| | | | | | | | pccard in the kernel for those drivers with pccard attachments. This makes the compat layer a little larger by introducing some inlines, but should almost make it possible to have independent attachments. The pccard_match function are the only one left, which I will take care of shortly.
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-1/+0
|
* o Now that I've had time to test the new interface, reintegrate it back in.imp2001-01-071-2/+2
| | | | | | | | | | | | | | | o Fix OLDCARD to use the new interface. o Rename the offsetp argument to deltap to more closely reflect what it is returning (it returns the delta from the requested value to the actual value). o Remove duplicate $FreeBSD$ in pccbb.c o Allow deltap to be NULL. o Convert new isa pcic driver and add XXX comments that this function isn't actually implemented there (which means that NEWCARD pccard stuff won't work there until it is). o Revert attempts to make old inferface work in NEWCARD. Subitted by: peter (Parts of the new version code)
* Add pccard_product_lookup comatibility shimimp2000-09-281-0/+7
|
* o Remove 9 unnecessary includes.imp2000-09-201-3/+0
| | | | | | | | o Add Vpp power at 5.0V rather than 0. Setting it to zero violates the pccard spec. Most pcic devices in use today don't let us violate the spec, but some older ones do. Bill Paul sent this to me a long time ago and I thought I'd commit it before now. o Add some debug stuff hidden behind bootverbose.
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-191-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | possible to have different probe/attach semantics between the two systems and yet still use the same driver for both. Compatibility methods for OLDCARD drivers. We use these routines to make it possible to call the OLDCARD driver's probe routine in the context that it expects. For OLDCARD these are implemented as pass throughs to the device_{probe,attach} routines. For NEWCARD they are implemented such such that probe becomes strictly a matching routine and attach does both the old probe and old attach. compat devices should use the following: /* Device interface */ DEVMETHOD(device_probe), pccard_compat_probe), DEVMETHOD(device_attach), pccard_compat_attach), /* Card interface */ DEVMETHOD(card_compat_match, foo_match), /* newly written */ DEVMETHOD(card_compat_probe, foo_probe), /* old probe */ DEVMETHOD(card_compat_attach, foo_attach), /* old attach */ This will allow a single driver binary image to be used for both OLDCARD and NEWCARD. Drivers wishing to not retain OLDCARD compatibility needn't do this. ep driver minorly updated. sn driver updated more than minorly. Add module dependencies to allow module to load. Also change name to if_sn. Add some debugging code. attempt to fix the cannot allocate memory problem I'd been seeing. Minor formatting nits.
* Add some infrastructure support for dealing with large attributeimp2000-08-101-0/+9
| | | | | | | | | | memory space needed by the raylink driver (in progress, nearing completion). This is a minorly cleaned up diff from Duncan to help him reduce the diffs from stock FreeBSD. Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
* 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