aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pccard
Commit message (Collapse)AuthorAgeFilesLines
* Move dumpcis to its own directory, start to decouple from theWarner Losh2008-11-1722-3542/+0
| | | | | | | pccardc/pccardd history. Notes: svn path=/head/; revision=185032
* Minor ANSI tweaks.Warner Losh2008-11-171-5/+2
| | | | Notes: svn path=/head/; revision=185031
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* Correct two typosPav Lucistnik2007-05-121-2/+2
| | | | | | | | | PR: docs/66771 Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week Notes: svn path=/head/; revision=169502
* The utility accepts multiple arguments.Ruslan Ermilov2006-11-131-3/+3
| | | | Notes: svn path=/head/; revision=164252
* Package the dumpcisfile functionality into a new dumpcis command.Warner Losh2006-10-184-1/+97
| | | | | | | | | Also, don't build pccardc now. I've left it in place for people that wish to build it to test experimental support for oldcard functionality that may have been lost in newcard. Notes: svn path=/head/; revision=163491
* Delete now-unused portion of pccardd. OLDCARD is gone from the kernel.Warner Losh2006-10-189-3595/+0
| | | | Notes: svn path=/head/; revision=163490
* Remove now redundant NO_SHARED.Ruslan Ermilov2005-10-171-2/+0
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=151416
* Don't build pccardd anymore.Warner Losh2005-09-291-1/+1
| | | | Notes: svn path=/head/; revision=150732
* Expand *n't contractions.Ruslan Ermilov2005-02-132-2/+2
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-10/+10
| | | | Notes: svn path=/head/; revision=140442
* NOSHARED -> NO_SHAREDRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139112
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-023-6/+9
| | | | Notes: svn path=/head/; revision=131500
* Some wordsmithing and mdoc(7) cleanup.Josef El-Rayes2004-05-211-14/+27
| | | | | | | | | Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> PR: docs/66823 Reviewed by: simon Notes: svn path=/head/; revision=129560
* Remove spurious semicolons. Outside of functions they are actually errors butStefan Farfeleder2004-05-161-1/+1
| | | | | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5 Notes: svn path=/head/; revision=129302
* o Document -s flag.Maxim Konovalov2004-01-151-0/+7
| | | | | | | | No objections from: ume MFC after: 2 weeks Notes: svn path=/head/; revision=124555
* o Actually add -x option: probeonly assigment was missedMaxim Konovalov2003-12-261-0/+3
| | | | | | | | | | | in rev. 1.15 pccardd.c. Reported by: osa OK'ed by: imp MFC after: 2 weeks Notes: svn path=/head/; revision=123860
* Ooops. Committed sin number 1: updating the code w/o updating the comments.Warner Losh2003-10-041-1/+2
| | | | | | | Update the comments too. Notes: svn path=/head/; revision=120758
* I've been burned about half a dozen times by the old PAO syntax forWarner Losh2003-10-041-0/+2
| | | | | | | | | | 'any' interrupt. There's no reason not to be liberal here and accept the PAO syntax. MFC After: 2 weeks Notes: svn path=/head/; revision=120757
* Go ahead and allow ports as high as 0xfff to be used for pccardWarner Losh2003-08-031-1/+1
| | | | | | | | | devices. Only some devices support above 0x400, but since you have to explicitly enable this range, you are assumed to know what you are doing. Notes: svn path=/head/; revision=118381
* Report the I/O base address in hex to be consistent with itsDiomidis Spinellis2003-07-181-1/+1
| | | | | | | | | | specification format. Approved by: schweikh (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=117746
* Include string.h for strlen declarationWarner Losh2003-06-091-0/+1
| | | | Notes: svn path=/head/; revision=116073
* Include stdlib.h for exit declarationWarner Losh2003-06-091-0/+1
| | | | Notes: svn path=/head/; revision=116072
* Include string.h for strcmp declarationWarner Losh2003-06-091-0/+1
| | | | Notes: svn path=/head/; revision=116071
* Remove obsolete compatibility ifdef.Warner Losh2003-04-231-2/+0
| | | | Notes: svn path=/head/; revision=113948
* Copy CIS3 and CIS4 strings into the kernel too.Warner Losh2003-04-232-0/+8
| | | | | | | | PR: 51333 Submitted by: Scott Mitchell Notes: svn path=/head/; revision=113947
* style.Makefile(5)David E. O'Brien2003-04-042-2/+4
| | | | Notes: svn path=/head/; revision=113091
* manufacturer id is typically 4 bytesWarner Losh2003-03-141-1/+1
| | | | Notes: svn path=/head/; revision=112243
* Don't be so verbose about 'unknown' CIS tuples. We were printing eachWarner Losh2003-03-141-2/+1
| | | | | | | | | | | | | | | | | | | one three times before we did the dump. Also, we printed 0x00 for the tuple type rather than the actual tuple type. Now, we print the actual tuple type. This appears to have no ill effects. Should get rid of the Code NN not found and code Unknown ignored messages. The ignored messages are still generated for tuples tuples who have a minimum length set and we find a tuple of that type that's shorter than the minimum length. Notes: svn path=/head/; revision=112233
* mdoc(7) police: Nits.Ruslan Ermilov2003-03-021-2/+2
| | | | Notes: svn path=/head/; revision=111762
* Add a new subcommand to pccardc(8), "dumpcisfile", which reads a CISBrian Feldman2003-02-256-4/+94
| | | | | | | | | structure from a file instead of a PC-CARD itself before parsing and dumping it. (E.g. useful when you get a CIS file from a manufacturer which fixes they broken card's CIS, and add it to the pccard quirks.) Notes: svn path=/head/; revision=111507
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Remove bogus comments about why we do some silly things, and insteadWarner Losh2002-09-291-12/+1
| | | | | | | | | | just say that the reasons are historical. Pr: 41104 Submitted by: hiten Notes: svn path=/head/; revision=104165
* Add -x option. This causes pccardd to exit after probing the cards. ThisWarner Losh2002-09-292-2/+14
| | | | | | | | | | is useful for low memory systems. PR: 36418 Submitted by: Forrest W. Christian Notes: svn path=/head/; revision=104155
* Add a ; to make a non-null statementWarner Losh2002-09-291-1/+1
| | | | Notes: svn path=/head/; revision=104154
* Copy cis strings into the kernel.Warner Losh2002-07-222-9/+15
| | | | Notes: svn path=/head/; revision=100485
* The .Nm utilityPhilippe Charnier2002-07-142-11/+15
| | | | Notes: svn path=/head/; revision=99968
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-04-222-2/+2
| | | | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. Notes: svn path=/head/; revision=95258
* Correct a typo.Dima Dorfman2002-03-241-1/+1
| | | | | | | | PR: 36214 Submitted by: Nagy Attila <bra@fsn.hu> Notes: svn path=/head/; revision=93069
* Add some code which read manufucturer id. This is for NEWCARD compatibility.Takeshi Shibagaki2002-02-204-0/+46
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=90968
* Update length more correctly when parsing a cis info field.Warner Losh2002-01-061-4/+11
| | | | | | | | | | | | | | | | | | | | | Before, we were using while (*p++ && --len > 0); to do this. However, len doesn't get decremented for the NUL byte, so when we used len later to see if we still have CIS left for some optional fields, we'd run off the end of an array and dump core. Instead, replace it with len -= strlen(p) + 1; p += strlen(p) + 1; which is more correct. It is a little bogus to assume that p points to a valid C string, but only a little. The PC Card SPEC mandates that it does, and we already depend on that with the use of strdup a few lines earlier. Since much of the rest of the cis parsing code isn't hyper retentive about error checking, I'll leave that level of checking for another time and/or another committer :-). Notes: svn path=/head/; revision=88961
* Fix a bug about CIS string comparison. Pccardd should be able to distinguishMitsuru IWASAKI2001-11-291-0/+4
| | | | | | | | | | | | | | card "MELCO" "LPC2-T" and card "MELCO" "LPC2-TX" by this fix. Reported by: Kitagawa Shoichi <sk@xstar.kiu.ac.jp>, NINOMIYA Hideyuki <nin@shikoku.ne.jp> MFC after: 1 week Notes: svn path=/head/; revision=87090
* Always set unit number to -1 unless some other unit is specified inWarner Losh2001-11-021-0/+1
| | | | | | | | | | | the config file. This fixes the breakage caused by the recent change in the behavior of device_add_child for ata (which shows soren's reservations were well founded). Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> Notes: svn path=/head/; revision=85885
* Don't core dump if we can't get the index automatically.Warner Losh2001-10-051-1/+2
| | | | | | | Debug info from: Ben Hockenhull <benh@jpj.net> Notes: svn path=/head/; revision=84563
* Change the access width of memory window from 8 bits to 16 bits.Noriaki Mitsunaga2001-09-041-1/+1
| | | | | | | | | | | 16 bits access is required by nsp driver to work in SMIT mode. Since previously (1.65 and before in current, and 1.46.28 and before in stable branch) 16 bits access was default, I hope it will break nothing. Okayed-by: imp Notes: svn path=/head/; revision=82924
* Fix ISA machines. Also, make it possible for the new pccardd to runWarner Losh2001-08-191-40/+61
| | | | | | | | | | | on older kernels correctly. Terminate the loop when we find a suitable irq. Also, only try to select from the pool. Cleaned up the two cases (IRQ picked by the user and ?) into one. MFC upon re approval. Notes: svn path=/head/; revision=81917
* Ask the kernel about IRQ 0 first. If the kernel responds with an IRQ,Warner Losh2001-08-142-20/+22
| | | | | | | | | use it. If not, then loop asking for each one, with normal -I processing. This will effectively disable -I for when the pcic is in PCI function interrupt routing mode. Notes: svn path=/head/; revision=81640
* Only try to allocated properly aligned I/O segments. This should stopWarner Losh2001-08-021-17/+12
| | | | | | | | | | some of the config problems that we've been seeing (where wi0 tries to allocate 0x138-0x198, for example). Use err(1,"foo") rather than perror + exit while I'm here. Notes: svn path=/head/; revision=81028
* Have pccardd always ask the kernel for the IRQ to use. The kernelWarner Losh2001-07-312-38/+47
| | | | | | | | | | | | | will soon return the irq from the pcic bridge in cases where't that's appropriate. Note: I've had to disbale -I option for the moment. I've made it easy to reenable it for people that need it. MFC After: soon! Notes: svn path=/head/; revision=80710