summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcic
Commit message (Collapse)AuthorAgeFilesLines
* o Now that I've had time to test the new interface, reintegrate it back in.imp2001-01-072-3/+5
| | | | | | | | | | | | | | | 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 the defines for the cardbus extensions for 32 bit addressing. Thispeter2001-01-071-0/+9
| | | | | | | | gets the cardbus code to compile, and I was successfully able to map the CIS into high memory and probe/attach a 16 bit pccard. Jonathan: feel free to replace this with your version if you want - this is an expedient hack to get things to build and appear to work.
* add PNPID for PnP PCMCIA, SCM SwapBox Classic X2P.sanpei2000-12-111-0/+1
| | | | PR: kern/23344 (Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>)
* Start to make code more generic so it can be used by the pccbb driverimp2000-12-052-22/+19
| | | | | | | | | | in the future: o Remove pcic_softc from pcic_handle and replace it with a void * o Reduce dependence on accessing softc via a pcic_handle Minor cleanups: o Define a macro to count the size of an array and use it. o Minor whitespace alignment o make no slots found a printf not a panic.
* Kill #define of DETACH_FORCE since it is now in card_if.mimp2000-11-302-36/+2
|
* Remove some silly debug writes and code that we don't needimp2000-10-181-20/+0
|
* Use appropriate resource management accessors instead of directlymdodd2000-10-182-3/+3
| | | | | | referencing structure members. Use rman_get_size() instead of end - start + 1.
* Another PnP pcic card: SMC Swapbox Plug and Playimp2000-10-122-2/+4
| | | | Submitted by: gallatin
* Fix arguments to kthread_create (submitted by takawata@freebsd.org).imp2000-10-072-3/+4
| | | | Remove unnecessary includes
* Add comment about why the deletion of children is necessary in detach.imp2000-08-301-0/+8
|
* Define a pcic module versionimp2000-08-281-0/+1
|
* o move to using PCIC_SOFTC(dev) to get the softcimp2000-08-193-15/+13
| | | | | o move pcic_deactivate into pcic_detach o Better debug messages
* Call bus_generic_detach on pcic before deleting the children. Thisimp2000-08-191-1/+4
| | | | | | has the side effect of detaching the children before I delete them. When I put the last commits in a loop for loop it died after 5 or so iterations. After this change, I lasted 50 before I stopped the test.
* Remove pcic_isa_identify. I don't think it is needed.imp2000-08-193-26/+21
| | | | | | | Add pcic_detach which removes all of the pcic's children. This lets me load/unload pcic multiple times w/o having multiple instances of each slot attached to pcic.
* Add support for loading this as a module (before there were someimp2000-08-172-11/+16
| | | | | | | | | problems). Also pick an irq if one isn't specified. Ditto for memory. Add additional printfs in the error paths. These will disappear in time. There are still some panics, but this is a good checkpoint.
* Almost make loading work. This is a checkpoint. With these change weimp2000-06-183-43/+85
| | | | | can almost kldload this. More work is ncessary, but I wanted to checkpoint this now.
* Add ACTIONTECH #define for plug and play. Also add PnP support to NEWCARDimp2000-05-292-0/+2
| | | | | | for this card. Submitted by: Kazuya Kodama <kodama@rd.nacsis.ac.jp>
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* OK. Next step: we read in CIS.imp2000-04-193-62/+25
| | | | | | | | | | | 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.
* checkpoint latest pccard/pcic hacking:imp2000-04-133-23/+54
| | | | | | | | | | | | | | | | | | | | 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.
* Be consistant about using the right child to get the ivars, which isimp2000-04-041-7/+20
| | | | the pcic_handle structure for the socket.
* Correct PnP ids for pcic-like cards.imp2000-03-101-4/+4
| | | | Approved by: jkh
* Add some comments about things that have become bad as I've beenimp2000-01-102-3/+5
| | | | | working on this code, or things that I think are layering violations. Plus a minor whitespace cleanup in one place while I'm at it.
* Checkpoint of today's changes. We now get to the point where the pccardimp2000-01-063-45/+53
| | | | | | | | | | | | | | | | | 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-033-86/+195
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Delay creation of threads until after the idle thread is created, moreimp1999-12-212-22/+18
| | | | | | | | | | or less. This is a kludge because there is no support for delayed creation of threads early in the boot process. NEWCARD new boots and the thread process starts and is visible from ps. Now, on to dev/pccard.
* Make attach work, almost. Calling kthread_create from aimp1999-12-202-3/+21
| | | | | | | | | | config_intrhook_establish doesn't work. Children aren't yet attached properly, but that's ok because pccard would likely panic in its current shape. o Save dev of pcic early in attach process o save dev in pcic_handle for use in pcic_create_event_thread. o Remove direct attachments of pccard children for now o move establishment of pcic kthread to config_intrhook.
* o Hide pcic_chip functions inside fileimp1999-12-193-89/+28
| | | | | | o Attach children in a better way than before. o Remove some dead code o collapse the socket attach routines into pcic_attach
* o Separate out alloc/release from the activationimp1999-12-172-51/+64
| | | | | | | | o minor formatting nits o remove the bus_map/unmap calls. FreeBSD doesn't need them. o Fix most of the compiler warnings remaining (some still remain, but they are releated to calling functions that are going to change, so I did not bother).
* Add alloc/release resource. Need to connect functionality later.imp1999-12-153-1/+21
|
* Merge _isa and _isasubr since only one function remained in _isasubrimp1999-12-094-263/+158
| | | | | | Saticize _isa.c Kill compile warnings for _isa.c Remove obsolete comment from i82365.c
* o Implement IRQ activation. We do this in bus_{setup,teardown}_intr,imp1999-12-085-195/+75
| | | | | | | | per discussions on -arch. This is different than -current's pccard code, but shouldn't have any real difference. o More code cleanup. Next step: convert bus_space_* mapping stuff to newbus.
* Tonight's cleanups.imp1999-12-075-187/+129
| | | | | | | 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
* Make this compile again after the device_add_child change.imp1999-12-061-1/+1
|
* Reconnect probing of the width of the isa bus, calling pcic_attach andimp1999-11-293-41/+32
| | | | | | pcic_attach_sockets. Rework bus width probe mapping and unmapping to use the newbus bus_{allocate,release}_resource with a rid of 1 to work on FreeBSD. Remove a few now unneeded #includes.
* Add resource activation routines to pcic driver. Minor cleanup ofimp1999-11-283-31/+58
| | | | | | | 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.
* Update pccard code to latest NetBSD code. This is the last mergeimp1999-11-283-61/+136
| | | | | | | | | | | | | | | | | | | | | | | 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
* Latest incremental efforts on newcard:imp1999-11-202-50/+85
| | | | | | | | | | | o Delete pcic1 from NEWCARD o Add explicit resource hints to pcic0 o Get attach working with newbus, kinda (it does all the newbus stuff, but doesn't try to attach the pccard yet, too many panics). o Disable ie0 and le0 in NEWCARD config. There appears to be a bug in the isa_compat code wrt memory conflicts with newbus drivers for reasons unknown. o Minor cleanups.
* o Remove #if XXX from around the probe code.imp1999-11-172-51/+43
| | | | | | | | | | | o Rewrite probe code to work in the newbus world. o Add preliminary pnp support. I have no clue what the pnp ids for the older ISA machines/cards. I don't have any of these cards/machines so I'll have to rely on the user community to give me help. o Minor code reformatting. Attach hasn't been touched, and there may be some config issues that we need to deal with as well. These will follow in time.
* Make these compile. Next step is to connect newbus plumbing.imp1999-10-275-70/+88
|
* Very preliminary pcic device support. Will make depend, but won'timp1999-10-266-0/+2474
(yet) compile and link. Renamed pcic back to pcic from pcicx, but conditionalize its inclusion on pccard being included also. card is the old and pccard is the new, which is a handy way to have both in the tree at the same time. Obtained from: newconfig project More to follow...
OpenPOWER on IntegriCloud