aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pccard
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Improve wording for pccard memory assignement.Warner Losh2001-07-271-4/+11
| | | | | | | | Document intended correct behavior for pccardc power and how it interacts with suspend/resume. Notes: svn path=/head/; revision=80436
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-203-9/+9
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove GCC'isms in CFLAGS.David E. O'Brien2001-07-201-1/+0
| | | | Notes: svn path=/head/; revision=80022
* Remove whitespace at EOL.Dima Dorfman2001-07-153-7/+7
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-103-3/+3
| | | | Notes: svn path=/head/; revision=79537
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-092-2/+0
| | | | Notes: svn path=/head/; revision=79454
* Remove duplicate words.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78686
* Resetting using COR bit 7 appears to be bad on pci based systems.Warner Losh2001-06-041-0/+2
| | | | | | | #ifdef it out for now. Notes: svn path=/head/; revision=77683
* Add suggested parens around truth value.Warner Losh2001-05-311-1/+1
| | | | Notes: svn path=/head/; revision=77512
* From the PR:Warner Losh2001-05-301-4/+2
| | | | | | | | | | | | | | | | The PCCard daemon can hang indefinately while reading its configuration file. If the last line of the file is a comment line that does not end in a newline, the program goes into an infinite loop searching for the non-existent newline. This fix, provided by the PR, will allow files ending without a newline to be read without hanging. Submitted by: Crist J. Clark <cjclark@alum.mit.edu> PR: bin/25791 Notes: svn path=/head/; revision=77501
* Use constants in <pccard/cis.h> for scannign the memory window with.Duncan Barclay2001-05-071-4/+4
| | | | | | | Approved by: imp Notes: svn path=/head/; revision=76343
* Ensure that pccardd sets up memory windows correctly for drivers otherDuncan Barclay2001-05-071-8/+36
| | | | | | | | | | than if_ed. The code for if_ed to set the offset and memory width remains. Approved by: imp Notes: svn path=/head/; revision=76342
* Fix a minor printing bug that prints incorrect information for memoryDuncan Barclay2001-05-071-1/+1
| | | | | | | | | | | | | block sizes. This orginally worked in PAO-3 and worked on their r330 branch but got broken in PAO-3 around December 1998! Approved by: imp Obtained from: PAO-3 Notes: svn path=/head/; revision=76341
* Backout revision 1.6 (removed the NOSHARED bit.)Ruslan Ermilov2001-04-021-0/+1
| | | | | | | | | | These must be compiled static so that it is possible to use them early in the boot process. Requested by: imp Notes: svn path=/head/; revision=75081
* Removed the NOSHARED bit.Ruslan Ermilov2001-04-021-1/+0
| | | | Notes: svn path=/head/; revision=75080
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-262-2/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-202-3/+4
| | | | Notes: svn path=/head/; revision=74532
* Use vsnprintf in logmsg() to avoid overflowing the array on the stack.Gary Jennejohn2001-02-251-1/+1
| | | | | | | | The problem was noted with an older model 3Com 3C589 which seems to return more than 256 bytes of data. Notes: svn path=/head/; revision=73037
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-1/+1
| | | | Notes: svn path=/head/; revision=70403
* Fix output of -v option.Toshihiko ARAI2000-12-241-0/+1
| | | | Notes: svn path=/head/; revision=70335
* mdoc(7) police: do not split author names in the AUTHORS section.Ruslan Ermilov2000-11-221-0/+1
| | | | Notes: svn path=/head/; revision=69027
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-4/+5
| | | | Notes: svn path=/head/; revision=68965
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-1/+1
| | | | Notes: svn path=/head/; revision=68854
* add PC-Card melody beep(PC Card bus, kludge version)MIHIRA Sanpei Yoshiro2000-10-281-0/+2
| | | | | | | Original idea from: PAO3 Notes: svn path=/head/; revision=67793
* add -I option, ``Don't get and use a list of freeMIHIRA Sanpei Yoshiro2000-10-204-2/+11
| | | | | | | | | | | | IRQs from kernel.''.. With IBM ThinkPad600. ``sio1'' was disabled in BIOS and irq 3 was free (also not listed in dmesg), I think. But I could not use irq 3 for PC-Card with new(PIOCSRESOURCE ioctl enabled) pccardd. Notes: svn path=/head/; revision=67374
* cosmetic: resource -> resMIHIRA Sanpei Yoshiro2000-10-131-14/+14
| | | | Notes: svn path=/head/; revision=67077
* print out error reason if it was failed in assign_ioMIHIRA Sanpei Yoshiro2000-10-101-3/+23
| | | | | | | Obtained from: PAO3 Notes: svn path=/head/; revision=66925
* Fix abuse of the Pa, Nm and Ar macros. This necessitated a rewordingSheldon Hearn2000-10-051-35/+39
| | | | | | | | | of the description for the "power" internal command. Reviewed by: sanpei Notes: svn path=/head/; revision=66666
* check {IO,IRQ}_ASSIGNED flags beforeMIHIRA Sanpei Yoshiro2000-10-041-3/+8
| | | | | | | | | | | release {io,irq} resources. fix multi io window in release io routine PR: 20454 Notes: svn path=/head/; revision=66629
* fix some minor problem in PIOCSRESOURCE ioctl.MIHIRA Sanpei Yoshiro2000-10-011-2/+2
| | | | | | | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=66505
* add ``check free resource rage code''MIHIRA Sanpei Yoshiro2000-09-213-10/+32
| | | | | | | for PC-Card which has no address in cis. Notes: svn path=/head/; revision=66167
* fix previous PIOCSRESOURCE code in assign_card_indexMIHIRA Sanpei Yoshiro2000-09-201-7/+10
| | | | Notes: svn path=/head/; revision=66123
* pccard_beep parameter was already supported by rc.conf.MIHIRA Sanpei Yoshiro2000-09-171-0/+4
| | | | | | | (removed in Rev.1.3)(A(B Notes: svn path=/head/; revision=65993
* add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)MIHIRA Sanpei Yoshiro2000-09-171-5/+36
| | | | | | | | | | Now /usr/sbin/pccardd read free resource(io,irq) range with this ioctl. Original Idea from: PAO3 Notes: svn path=/head/; revision=65991
* Fix typo (rc.conf -> pccard.conf).Mitsuru IWASAKI2000-09-151-1/+1
| | | | | | | Submitted by: OKAZAKI Tetsurou <okazaki@be.to> Notes: svn path=/head/; revision=65897
* fix multi io window patch(Rev. 1.48)MIHIRA Sanpei Yoshiro2000-09-011-1/+1
| | | | | | | | Submitted by: iwasaki Obtained from: PAO3 Notes: svn path=/head/; revision=65315