aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard
Commit message (Collapse)AuthorAgeFilesLines
* I don't believe these are used at all, and can be safely removedWarner Losh2006-01-157-1004/+0
| | | | Notes: svn path=/head/; revision=154392
* Remove code describing pre 5.x systemWarner Losh2006-01-101-19/+0
| | | | Notes: svn path=/head/; revision=154163
* Remove the kernel portion of OLDCARD. I'm working on a replacementWarner Losh2005-09-257-5401/+0
| | | | | | | | for pccardc dumpcis, but until I'm done with that, I'm leaving pccardc in place. As such, I'm leaving the .h files in place for the moment. Notes: svn path=/head/; revision=150556
* Change a directory layout for pc98.Yoshihiro Takahashi2005-05-101-1/+1
| | | | | | | | | | | | - Move MD files into <arch>/<arch>. - Move bus dependent files into <arch>/<bus>. Rename some files to more suitable names. Repo-copied by: peter Discussed with: imp Notes: svn path=/head/; revision=146049
* Remove more deadwood that never got implemented in NEWCARD, since NEWCARDWarner Losh2005-02-151-16/+0
| | | | | | | | went a different direction than was anticipated when these compatibility shims were added. Notes: svn path=/head/; revision=141936
* Remove card_get_function. It looks like it was intended to be aWarner Losh2005-02-141-8/+0
| | | | | | | | | | | | bridge between OLDCARD and NEWCARD for drivers to inquire after the function number (eg, 0, 1, 2). Nobody ever used it, so retire it with honors. NEWCARD never implemented it, and the same information can be obtained by the pccard_get_function_number(). MFC After: 3 days Notes: svn path=/head/; revision=141882
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-0713-13/+22
| | | | Notes: svn path=/head/; revision=139825
* Move PNP IDs back into oldcard filesWarner Losh2004-08-133-2/+13
| | | | Notes: svn path=/head/; revision=133632
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-162-7/+7
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-172-7/+7
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-0/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 1/6:Poul-Henning Kamp2004-02-211-6/+0
| | | | | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
* - Implement selwakeuppri() which allows raising the priority of aSeigo Tanimura2003-11-093-3/+3
| | | | | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current Notes: svn path=/head/; revision=122352
* Change all SYSCTLS which are readonly and have a related TUNABLEMike Silbersack2003-10-212-9/+9
| | | | | | | | from CTLFLAG_RD to CTLFLAG_RDTUN so that sysctl(8) can provide more useful error messages. Notes: svn path=/head/; revision=121307
* More debug under boot verbose.Warner Losh2003-08-291-2/+3
| | | | Notes: svn path=/head/; revision=119566
* Fix comment.Warner Losh2003-08-291-1/+1
| | | | Notes: svn path=/head/; revision=119565
* add debug to pcic memory mapping routineWarner Losh2003-08-271-0/+5
| | | | Notes: svn path=/head/; revision=119495
* Add comment point o2micro people to NEWCARDWarner Losh2003-08-011-0/+2
| | | | Notes: svn path=/head/; revision=118309
* OLDCARD is OBSOLETE_IN_6. Tag it as such.Warner Losh2003-06-126-0/+12
| | | | Notes: svn path=/head/; revision=116238
* 1. Allow drivers to query CIS strings from OLDCARD.Warner Losh2003-04-234-0/+69
| | | | | | | | | | | | 2. Include backwards compatibility good for the moment (eventually will be turned off in current, but allow for a short transition period). PR: 51333 Submited by: Scott Mitchell (1) MFC after: 2 weeks Notes: svn path=/head/; revision=113946
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+8
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* pccard isn't picky about WHAT major it gets.Warner Losh2003-02-281-0/+4
| | | | Notes: svn path=/head/; revision=111662
* Add SMC 34C90. Not tested, but should be a no-op except for the id string.Warner Losh2003-02-261-1/+4
| | | | | | | Print the sockbase when we can't get the memory for debug. Notes: svn path=/head/; revision=111534
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Consolidate MIN/MAX macros into one place (param.h).Alfred Perlstein2003-02-021-2/+0
| | | | | | | Submitted by: Hiten Pandya <hiten@unixdaemons.com> Notes: svn path=/head/; revision=110232
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Merge from P4:Warner Losh2003-01-041-27/+42
| | | | | | | | | | | | | | o Update copyright. o Add a tunable to allow the ti12xx to initialize the pci clock. Some rare cards need it. o rename 67xx -> 6729 since there's really only one chip in this family. o from pcic_pci_pd6729_init call the routing code o Fix some comments out routing on the TI-1130 class (1030, 1130 and 1131) MFC: After RE@ says it is ok. Notes: svn path=/head/; revision=108670
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* MFp4:Warner Losh2002-11-271-16/+14
| | | | | | | | | | | | Fix a bug with the 3.3V code for the ricoh bridges. I got the bit detect backwards. Also, we can only detect 3.3V cards when the GPI interrupt is disabled. So when it is enabled assume 5.0V card. Obtained from: NetBSD (takemura-san from patches by ngc@ff.iij4u.or.jp) Approved by: re (blanket) Notes: svn path=/head/; revision=107298
* MFp4: Comment about not assuming INTA# for 6729Warner Losh2002-10-071-0/+3
| | | | Notes: svn path=/head/; revision=104607
* Make beep not depend on HZ setting.Warner Losh2002-09-291-4/+6
| | | | | | | | | PR: 25201 Submitted by: Akio Marita-san # This is the last part of the PR uncommitted. Notes: svn path=/head/; revision=104164
* SMIENB not needed, but maybe PCI_CLOCK is, so put it in #if 0'd outWarner Losh2002-09-292-6/+9
| | | | Notes: svn path=/head/; revision=104163
* Parens considered good.Warner Losh2002-09-291-1/+1
| | | | Notes: svn path=/head/; revision=104162
* For boot verbose, print resources assigned in a more asthetically pleasingWarner Losh2002-09-131-5/+11
| | | | | | | | | way. PR: 42745 (although done in a different way) Notes: svn path=/head/; revision=103297
* Change the order that we look for free memory windows from 0 -> MAX-1Warner Losh2002-09-081-4/+4
| | | | | | | | | to MAX-1 -> 0. This should allow for less potential for conflict between pccardd/pccardc and drivers. As far as I can tell no drivers try to use window 4, so this should be a no-op for them. Notes: svn path=/head/; revision=103106
* Add 16-bit before bus to keep the words card and bus apart.Warner Losh2002-07-311-1/+1
| | | | Notes: svn path=/head/; revision=101109
* MFp4:Warner Losh2002-07-262-122/+143
| | | | | | | | | | | | | | o reduce the extra-long ID names. o TI-1510, 1520 and 4510 support. o MFUNC is the name of the register on TI 1200 and newer chips (except 125x and 1450). Initialize it in the func routine, but only if NO_MFUNC isn't set. o better comments about above workaround o register definitions for MFUNC. o move zoom video disable to a better place. Notes: svn path=/head/; revision=100705
* Copy manufacturer and version string into the kernel, and copy it toWarner Losh2002-07-223-2/+10
| | | | | | | | | the slot info. This brings OLDCARD's API much closer to NEWCARD and will allow moving more information into the kernel from pccard.conf for common drivers (ed). Notes: svn path=/head/; revision=100484
* Add support for writing to mapping high memory for pccard memoryWarner Losh2002-07-204-0/+21
| | | | | | | | | | | | | windows. Right now we only support pci chips that are memory mapped. These are the most common bridges in use today and will help a large majority of the users. I/O mapped PCI chips support this functionality in a different way, as do some of the ISA bridges (but only when mounted on a motherboard). These chips are not supported by this change. Notes: svn path=/head/; revision=100417
* minor nit in commentsWarner Losh2002-07-201-1/+0
| | | | Notes: svn path=/head/; revision=100408
* Integrate the hw.pcic.pd6722_vsense tunable from the nomads list.Warner Losh2002-07-181-15/+49
| | | | | | | | | | | | | | This allows one to select the method of 3.3V card detection from the three possible choices (none (0), the "6710 way" (1) and the "6729 way" (2)). The default is the 6710 way, since it works in the most cases. The datasheets for the 6722 suggest that the '29 way is more correct, but experience has shown this method to cause some laptops to hang solid. See source code for details until I update the man page. Submitted by: shibata-san (chiharu shibata <chi@bd.mbn.or.jp>) Notes: svn path=/head/; revision=100298
* Some strange hacks for the clpd6729:Warner Losh2002-07-181-13/+44
| | | | | | | | | | | | | | | | | o It needs to have pcic_isa_intr intrrupt handler o for pci interrupts, in the func interrupt handler it needs to check the isa registers rather than the pci ones for card present. o better commentary for some of the strangeness of the 6729 on pci o fix some crunchy comments to better reflect reality. With this I almost have the WL200 working, but an interrupt storm after attach is causing problems for reasons unknown. This code doesn't seem to break the normal clpd6729 case, and I'd like others with 6729 cards to try to test it (there were some that were used for external pccard slots in pci only systems). Notes: svn path=/head/; revision=100296
* Better verbage on hw.pcic sysctls, delete now obsolete commentWarner Losh2002-07-171-10/+8
| | | | Notes: svn path=/head/; revision=100225
* o Remove workaround that I put in to mask the BadVcc problem.Warner Losh2002-07-172-34/+71
| | | | | | | | | | | | | | o Add preliminary support for Cirrus Logic CL-PD6729 using PCI interrupts. To use it you you need to set hw.pcic.pd6729_intr_path to 2. This is allow us to still default to ISA intrrupt path for this part (which is found much more often in laptops using ISA IRQs). But some PCI cards have this part on them and this should allow them to be used. It is untested on PCI, but it seems to not break the ISA case. o Better sysctl descriptions (I hope). Notes: svn path=/head/; revision=100224
* Be more conservative about the address ranges we assign. SomeWarner Losh2002-07-171-0/+5
| | | | | | | | machines don't like the more liberal default, so be more conservative about what we do by default. Notes: svn path=/head/; revision=100223
* Add definitions for the Ext 1 register on cirrus logic PD-6729.Warner Losh2002-07-171-0/+9
| | | | Notes: svn path=/head/; revision=100221
* Rearrange previous commit that passed the vendor id to the kernel in a wayWarner Losh2002-07-142-28/+27
| | | | | | | | | that's binary compatible for -stable. While binary compatibility doesn't matter much in -current, it is critical for -stable. This change requires pccardd/pccardc to be recompiled. Notes: svn path=/head/; revision=99943
* Typo: do do -> to do.Giorgos Keramidas2002-07-141-1/+1
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=99940
* Lots of people have had to hack around the fixed address for cardbusWarner Losh2002-06-271-1/+1
| | | | | | | | | bridges in modern hardware (that hardware w/ lots of RAM). Raise the address from 0x44000000 to 0x88000000 to match what we do with NEWCARD. However, this really should be done in the pci layer. Notes: svn path=/head/; revision=98929
* Leave it to a non-native speaker of English to catch another typo: "do do" ->Warner Losh2002-06-271-1/+1
| | | | | | | | | "to do" submitted by: marius@alchemy.franken.de Notes: svn path=/head/; revision=98922