summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
Commit message (Collapse)AuthorAgeFilesLines
...
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-4/+4
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Remove bogus commentimp2000-04-201-2/+0
|
* OK. Next step: we read in CIS.imp2000-04-195-155/+9
| | | | | | | | | | | I've done this by having requests to allocate memory propigate up the tree. We'll see how well this works and reevaluate if it isn't working well. Also initialize ptr in the tuple. As well as minor reorg of memory allocation. Likely need to do similar things for I/O when the time comes. I've move all defines from pccardchip.h into pccardvar.h and eliminated pccardchip.h.
* Include <sys/bus.h>, which is needed after Doug's latest object changes.imp2000-04-162-0/+4
|
* checkpoint latest pccard/pcic hacking:imp2000-04-134-142/+89
| | | | | | | | | | | | | | | | | | | | o Eliminate cross calls between the devices. Instead move to using the newbus messaging system. Added three new card calls: attach_card, detach_card, get_type. o Eliminate interrupt routine in pccard we never use. o Move from deactivate to detach for removing cards. o Start mapping CIS memory, but it is broken and causes panics. At least it is closer to working than before. o Eliminate struct device everywhere. It was bogus. o Initialize softc for pccard device so we have valid pointers to ourselves. o Implement routine to find the pcic ivar for a child device of the pccard so we can use it to talk to the pcic hardware. o Lots of minor tiding up. This version now panics when we try to read the CIS. The next batch of work to make this work is what was outlined in my posting to mobile about resource allocation and such.
* Fix pcic_detach_socket to get right pcic_handle.imp2000-04-041-1/+1
| | | | | | | | Pass sc->dev rather than a bogusly cast pccard_softc *sc. This allows us to insert and remove cards w/o panicing the kernel. However, the cis isn't mapped in, so the pccard_scan_cis function fails.
* Minor changes to some of the interfaces.imp2000-03-264-8/+16
| | | | | | Remove RF_PCCARD_ATTR in anticipation of removing it from sys/rman.h Add interface for setting "attributes" of pccard/cardbus devices. Minor formatting nits.
* Regenimp2000-03-252-28/+362
|
* Merge 1.60 to 1.85 of NetBSD's pcmciadevs into our database.imp2000-03-251-13/+67
|
* Propagate MAC address in CIS tupple to dev/ed/ driver.hosokawa2000-01-211-0/+13
| | | | | | | | 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>
* Move xe driver from dev/pccard to dev/xe. Convert driver to newbus.imp2000-01-102-3197/+0
| | | | | | | Driver is not functional yet, but does compile. Tests with xe cards indicates that it doesn't panic the machine when they are present, but fail to probe. Interface help in the pcic/pccard layers are needed to complete this driver.
* Eliminate pccard_chip_* tonight.imp2000-01-104-328/+68
| | | | | | | | | | | o ifdef out pccardchip.h (almost all of it, there are dangling bits o Add rid/res members to pccard_function o remove pct/pch from pccard_softc o map memory properly in scan_cis (almost, see XXX for more work) o manage ccr. o remove bogus comment I added about touching the ccr being a layering violation for pccard. It is properly done at that level. o More function prototyping
* Checkpoint of today's changes. We now get to the point where the pccardimp2000-01-064-92/+68
| | | | | | | | | | | | | | | | | layer is trying to access the now unexistant chip functions. o Added DEVPRINTF which is like DPRINTF only calls device_printf. o Made it possible to define PCICDEBUG o Remove ph_parent and use the softc pointer sc instead in pcic_handle. o Remove all references to dv_xname o Add some debug messages. o enable MI attach/detach calling for pccard. o convert pcic_chip_socket_{en,dis}able to pcic_{dis,en}able_socket and connect them to the power_{enable,disbale}_socket. o Remove pccard pointer from pcic_softc. o GC some unused pccard functions. o Convert pccard_chip_socket* to POWER_ENABLE_SOCKET o kill pccard_attach_args. o power_if.m updates. More to come.
* Connect interrupts and start processing them. We panic on card removalimp2000-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | now, but we're getting interrupts! o Add pcic_suspend/pcic_resume so we can detach our children on suspention and fix the state of the pcic on resume. o Remove some unused parts of softc. o Centralize resource activation/deactivation for pcic bridge chip in the stylistic pcic_activate/pcic_deactivate. o Add bus_print_child method so we can see the pccard attachment. o Add pcic_identify in an attempt to make it possible to automatically id the pcic devices. This works great, but we cannot divine the irq to use from this method, nor the memory hole. For the moment, KLUDGE irq to be 10 and memory hold to be 0xd0000. o Loose the pnp probe stuff. This may be a big mistake, but it is easy enough to add back later. I did this so the identify routines can do their thing unmolested by pnp information. The whole identify thing may be a bad idea to be ripped out later. o change return type of pcic_intr to void, make it static and ripple this through the code. o Add explicit call to bus_generic_attach at the end of pcic_attach to get any children probed/attached. o add some comments about future directions/questionable things being done at different layers, etc.
* Tonight's cleanups.imp1999-12-074-47/+50
| | | | | | | o Implement memory and I/O activation/deactivation. irq not handled. o switch pcic_chip functions around to use more convenient types. o kill __P and most of the old K&R prototypes just to be mean. o minor other nits
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-1/+1
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Sync generated filesimp1999-11-292-4/+14
|
* Merge NetBSD 1.60 by jun:imp1999-11-291-1/+2
| | | | | | Support for TDK LAC-CF010 by Ichiro Fukuhara (ichiro@ichiro.org) on kern/8900 ichiro test TDK CF Card on Opensource matsuri,tokyo and send patch to us. thanx.
* Flesh out the pccard bus_ methods with either the generic one (whereimp1999-11-294-19/+126
| | | | | | | | | | | | | | | | | | | | | | it would work), or a specialized one. Most of these have been creatively stolen from pccard_nkb, which in turn stole from isa showing that generic bus_ versions of bus_{set,get,delete}_resource might be profitable. Fix a couple of minor bugs introduced in the last round of updates from NetBSD. Start on the pccard_ivar structure which will hold the resources and slot number. Add tcic as a possible attachment for pccard and rename the attachment for pcicx to pcic since the name has changed since I originally wrote this stuff. Next up: stringing together the various memory and I/O allocation/mapping primitives in i82365.c, final touches on the isa attach routine and other fun stuff in that line of attach.
* Add resource activation routines to pcic driver. Minor cleanup ofimp1999-11-282-0/+109
| | | | | | | socket attach code. We now have at least a chance for pccard devices appearing in the future. This is a snapshot of ongoing work. Proceed at your own risk.
* commit (re)generated files last.imp1999-11-282-29/+334
|
* Update pccard code to latest NetBSD code. This is the last mergeimp1999-11-285-32/+137
| | | | | | | | | | | | | | | | | | | | | | | before newbusification hits full steam ahead. All: Adjust NetBSD labels to reflect new base versions. dev/pcic/i82365.c: 1.24 Interface change for kernel threads 1.25 Massive unification for cardbus dev/pcic/i82365var.h 1.8 Massive unification for cardbus dev/pcic/i82365_isasubr.c 1.3 Massive unification for cardbus dev/pccard/pccard_cis.c 1.11 Massive unification for cardbus (better device printing, better memspace calcs) dev/pccard/pccard_cis_quirks.c 1.4,1.5 Lotsa 3com devices dev/pccard/pccardchip.h 1.4 Massive unification for cardbus dev/pccard/pccarddevs 1.33..1.59 Lots of devices
* Disable old PCCARD_MODULE code.imp1999-10-291-0/+2
| | | | | | This should fix LINT. Prompted by: phk's explicit message about LINT breakage
* Moderately hacked pccard code from newconfig. It is somewhat inimp1999-10-2612-0/+4469
| | | | | | | | | | | | | incomplete and likely has problem. The code was originally pcmcia, but I renamed it to pccard and made it compile on FreeBSD -current. I converted SIMPLEQ to STAILQ as well as a few sc->dev.xname -> device_printf changes. This is a green port of fairly mature code. I derived this work from the FreeBSD newconfig project (http://www.jp.freebsd.org/newconfig). Any problems with it are likely introduced by me. Obtained from: newconfig project
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-251-9/+0
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* Restore vendor $Id$ now that it won't be clobbered.peter1999-09-232-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-282-4/+4
|
* Decommision miscfs/specfs/specdev.h. Most of it goes into <sys/conf.h>,phk1999-08-081-1/+1
| | | | | | a few lines into <sys/vnode.h>. Add a few fields to struct specinfo, paving the way for the fun part.
* Rename bpfilter to bpf.des1999-07-061-8/+8
|
* Wrap the definition of "XE_DEBUG" so it is overridable from the ``cc''obrien1999-06-221-0/+2
| | | | commandline or kernel conf file.
* Fix conflicts.obrien1999-06-222-120/+214
|
* This commit was generated by cvs2svn to compensate for changes in r48114,obrien1999-06-221-114/+514
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of Xircom PCCARD driver v1.20 (1999/06/13):obrien1999-06-222-233/+726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Conformance with Dingo specification. This includes: Collision/error statistics gathering. Multicast address filtering, eg. the hash filter. Initialisation and interrupt handling sequences. Note that I've started on some of this already in v1.20. * The probe routine needs some more work, to identify oddities such as the REM10. * There are still problems with the autonegotiation code; specifically, it won't autonegotiate with some 10/100 hubs. This might simply be the hardware not getting along, in which case there's nothing we can do, but it's still worth investigating * CEM28/CEM33 support. Should be able to integrate this directly from the Linux code. * Performance enhancements: Full-duplex on 10Mbit networks. Virtual shared-memory mode. Early send and receive modes. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* | Simplify cdevsw registration.phk1999-05-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* | if_xe* now lives in sys/dev/pccard/obrien1999-05-141-1/+2
|/
* Virgin import of Xircom PCCARD driver v1.19.obrien1999-05-141-78/+63
| | | | | | | | | | | | | | v1.19 (1999/04/15) updates the CEM56/REM56 support. Current bugs & misfeatures -------------------------- * CE2 cards still not working reliably. Unclear if this is related to packet I/O code or interrupt handling. * Autonegotiation support remains flaky. We're now OK with 10Mbit auto hubs, but certain combination of hardware will fail to connect. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.18obrien1999-05-141-14/+160
| | | | | | | v1.18 (1999/04/08) adds support for CEM56 and REM56 multifunction cards. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.17obrien1999-05-141-34/+87
| | | | | | | | | | | | | | | | | | | | | | | | v1.17 (1999/03/28) has xperimental fixes to 10Mbit autonegotiation and CE2 input lockup. KNOWN BUGS ========== * Media auto-negotiation is definitely not right. It will work in most circumstances and seems to connect OK to most 100Mbit networks, however some pathological combinations of hubs/networks/peers seem to confuse it. * CE2 support is somewhat flakey (ranging from 'works perfectly' to 'hangs the machine' so far). I've fixed the probe routine and a potential lockup in the output routine, but a lot of people still report that they can't receive or transmit. * You won't be able to use the modem and Ethenet parts of a multifunction card simultaneously. This is limitation the current FreeBSD PCMCIA support. Likewise, there is no support for CardBus devices. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.16.obrien1999-05-141-4/+6
| | | | | | | | v1.16 (1999/03/08) fixed BPF input hang and infinite loop on CE2 short-packet output. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.15obrien1999-05-141-5/+9
| | | | | | | v1.15 fixed driver registration bug under 3.1-STABLE. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.14obrien1999-05-142-1303/+1373
| | | | | | | | | | | | | | | | | | This driver is mostly based on the `xirc2ps' driver for Linux by Werner Koch. Werner has even allowed his code to be distributed under a BSD licence, making our life considerably easier -- thanks Werner! This driver supports: * Intel EtherExpress(TM) PRO/100 PCCARD (16-bit version) * Xircom CreditCard CE2 / CEM28 / CEM33 / CE3 / CEM56 Ethernet adapters. * Toshiba Advanced Network 10/100 PCCARD * Certain Compaq Netelligent 10/100 branded cards v1.14 has major changes to media selection code, and bugfixes in the probe routine. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
* Virgin import of Xircom PCCARD driver v1.13obrien1999-05-142-0/+2439
OpenPOWER on IntegriCloud