summaryrefslogtreecommitdiffstats
path: root/sys/pccard
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Set the device name for NEC PC98 PCMCIA Controller on boot.imp2001-04-211-18/+19
| | | | | # We really need to allocate i/o ports for it, but I need to learn # the pc98 bus space better before attempting that.
* Indirect off cinfo rather than calling pcic_ functions directly. Thisimp2001-04-191-12/+12
| | | | | | | means that the pcic98 functionality might now work (I've tested it on my pcic machine, but not the pcic98). Since these functions are rarely called, it is unlikely that this will have a measurable impact on performance.
* First cut at bringing NEC PC98 original pccard bridge code back intoimp2001-04-194-47/+372
| | | | | | | | | FreeBSD. This code doesn't work just yet, but does compile. We need to start indirecting via the cinfo pointers, rather than directly calling pcic_*. There may be other issues as well, but you gotta start somewhere. Obtained from: PAO3
* Move setting of TI113X_PCI_CARD_CONTROL register soonerimp2001-04-171-3/+2
|
* Minor comment that missed the last changeimp2001-04-171-1/+1
|
* When booting, turn on the 3E0 compatibility address for ricoh cardbusimp2001-04-172-3/+32
| | | | | | | | | | | parts. This is based on the newcard code that turns it off :-). We can now reboot after NEWCARD or Windows and have OLDCARD work. Add support for the RL5C466 while I'm at it. Treat TI1031 the same as the CLPD6832. It doesn't work yet, but sucks less than it did before. Also add a few #defines for other changes in the pipe.
* Fix minor typo in comment. 112x -> 12xximp2001-04-111-1/+1
|
* Add #define for IBM3765.imp2001-04-111-3/+2
| | | | | Fix SWAMPBOX. It had actiontec's ID. Reorder pnpids so they are in alphabetical order.
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* First step towards plugging the "pccard is trying to map into a BIOSimp2001-03-262-75/+64
| | | | | | | | | | | region for CIS reading" problem: Use bus_alloc_resource to get the memory that we'll be using. Also has the benefit of doing usage checking as well. This gets rid of the ugly kludge that we had before for mapping pmem to vmem. Second, move PIOCSRESOURCE to its own routine and make it conform more to style(9) in the process.
* 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.
* Axe a few __P() while I'm in the neighborhood.imp2001-03-223-17/+16
|
* Place the call to pccard_insert_beep() in the inserted() timeoutiedowse2001-03-202-13/+13
| | | | | | | | | | | | routine instead of pccard_event(). This avoids spurious extra calls to pccard_insert_beep() at insert or remove time which could occur due to noise on the card-present lines. Clean up some code in pccard_beep.c; we were depending on the order of evaluation of function arguments, which is undefined in C. Also, use `0' rather than `NULL' for integer values. Reviewed by: sanpei, imp
* Lots of minor cleanup, plus a couple of interesting things.imp2001-03-193-94/+137
| | | | | | | | | | | | | | | | | | | | | | | o Attempt to disable the slot when we detect that there are problems with it in our ISR. This should make polling mode work better for more cards, but more work may be needed. This "disabling" sets the card interrupt register to 0. This worked for me for lots of tests in polling mode. o Now that I've found datasheets, fix a boatload of magic numbers in the source to make it easier to understand. o Use a table of names rather than a big case statement. o Cull a few of the "unused" controller types that we map to other times that were a vestiage of PAO code that we never merged in the same way. o Enforce legal IRQs. You are no longer allowed to try to use IRQs that will fail on all known ISA/PCI <-> PCMCIA bridges. The bridges do not have pins for these illegal interrupts, and all of them are listed as reserved and/or illegeal in the datasheets depending on which one you look at. o Add comments about how IBM-AT based computers and NEC PC-98 based computers map these interrupts and which ones are valid. o Always clear the bit that steers the management interrupt either to the value listed in the PCIC_STAT_INT register. I've seen this bit get set on suspend/resume and after windows boot, and it does't hurt to clear it. NOTE: this might mean we can share this interrupt in the future.
* Move ti1031 to the 16-bit bridge sectionimp2001-02-071-3/+3
|
* Fix a minor bug that prevents NEWBUS users from setting more thandmlb2001-01-091-1/+1
| | | | | | | | one memory map. The memory window for the PCIC is identifed by the resource id for NEWSBUS drivers. pccardd always uses window 0 and rid 0 when setting maps up. This fix does not affect pccardd's handling of common memory for ed cards. Reviewed by: imp
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-094-4/+2
|
* o Now that I've had time to test the new interface, reintegrate it back in.imp2001-01-072-4/+7
| | | | | | | | | | | | | | | 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 device id for the OZ Micro 6832. I didn't try to init it like theimp2001-01-022-1/+6
| | | | | Cirrus Logic parts that end in 6832, but maybe some machines will need that in the future.
* 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>)
* fix type check in pccard_beep_selectsanpei2000-11-011-1/+1
|
* Oops, in previous commit(rev.1.4), I replacedsanpei2000-10-311-6/+6
| | | | | pitch and duration only in ``struct'', I forgot to replace these in sysbeep and timeout, sorry.
* Make a few more mallocs use M_ZERO.dwmalone2000-10-291-4/+3
| | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: imp
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* add PC-Card melody beep(PC Card bus, kludge version)sanpei2000-10-282-41/+92
| | | | Original idea from: PAO3
* Change comment from sprintf to snprintfimp2000-10-261-1/+1
|
* Change snprintf to strncpy.imp2000-10-261-2/+9
| | | | | Also add a comment about a bogus assumption in the current code found at bsdcon by jhb.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Another PnP pcic card: SMC Swapbox Plug and Playimp2000-10-121-0/+1
| | | | Submitted by: gallatin
* fix some minor problem in PIOCSRESOURCE ioctl.sanpei2000-10-011-14/+5
| | | | | | | | | | | | | | - If resource which was allocated for pcic was requested via this ioctl, bus_alloc_resource would be succeeded and that resource was returned as free resource. So check whether requested resource was used for pcic or not before bus_alloc_resource test. - merge SYS_RES_IRQ routine into other SYS_RES_* routine and clean up. problem reported by: Yohei Terada <terada@jiro.c.u-tokyo.ac.jp>
* Spelling police in a comment: Defalut -> Default.jhb2000-09-291-1/+1
|
* Add pccard_product_lookup comatibility shimimp2000-09-281-0/+7
|
* o Remove 9 unnecessary includes.imp2000-09-203-12/+8
| | | | | | | | 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 PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)sanpei2000-09-173-0/+59
| | | | | | | Now /usr/sbin/pccardd read free resource(io,irq) range with this ioctl. Original Idea from: PAO3
* - Remove the inthand2_t type and use the equivalent driver_intr_t type fromjhb2000-09-131-1/+2
| | | | | | | | | | | | | newbus for referencing device interrupt handlers. - Move the 'struct intrec' type which describes interrupt sources into sys/interrupt.h instead of making it just be a x86 structure. - Don't create 'ithd' and 'intrec' typedefs, instead, just use 'struct ithd' and 'struct intrec' - Move the code to translate new-bus interrupt flags into an interrupt thread priority out of the x86 nexus code and into a MI ithread_priority() function in sys/kern/kern_intr.c. - Remove now-uneeded x86-specific headers from sys/dev/ata/ata-all.c and sys/pci/pci_compat.c.
* Add a detach method to allow this device to be unloaded.imp2000-08-301-0/+7
|
* Add TI-1031 id. It doesn't work yet, but it is nice to have it.imp2000-08-292-0/+6
| | | | | These were on cards that were pci pccard (not cardbus) bridges that lived in SparcUltras that picked up on ebay.
* Add UNIX domain socket feature to pccardd. This makes pccardume2000-08-202-4/+6
| | | | | | | related PAO3/ports such as gxcardmon work. Reviewed by: imp Obtained from: PAO3
* Add some infrastructure support for dealing with large attributeimp2000-08-102-5/+61
| | | | | | | | | | 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>
* Fix a bug so that we have correct number of pccard instances in pcic_attach().iwasaki2000-07-241-1/+1
| | | | | | | | | pcic_attach() got a wrong pointer to pcic_slots since device haven't set correct unit number yet, so always accessed elements of pcic_slots which belong to pcic0 (unit number 0). Now we set unit number to pcic device first, then access to pcic_slots based on the unit number we've just set.
* There is no atdevbase on the alpha. Hide this case statement on alpha untilmjacob2000-06-231-0/+3
| | | | the design/implementation is complete.
* 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.
* Add ACTIONTECH #define for plug and play. Also add PnP support to NEWCARDimp2000-05-291-1/+1
| | | | | | for this card. Submitted by: Kazuya Kodama <kodama@rd.nacsis.ac.jp>
* Make this compile without depending on the FreeBSD 2.2 compatabilitypeter2000-05-282-12/+13
| | | | defines.
* Add PnP ID for vadem based plug and play card.imp2000-05-021-0/+1
| | | | | Submitted by: Dave Belfer-Shevett <shevett@stonekeep.com> Fix by: Bill Paul
* Add $FreeBSD$peter2000-05-011-0/+1
|
* MFPAO3. Improvement of of pccard cis tuple parsing capability.iwasaki2000-04-261-0/+29
| | | | | | | | | - Fixed bogus CIS tuple dumping (Network node ID, IRQ modes and etc.) - Include telling drivers ethernet address if Network node ID tuple is available. This is usefull for some bogus ehter cards which can't get correct ethernet address from CIS tupple. Obtained from: PAO3
* Checkin my first batch of New Mexico changes:imp2000-04-254-43/+48
| | | | | o minor whitespace things (bad because this is also a functional commit) o Backport reading in of CIS entries from the driver level.
OpenPOWER on IntegriCloud