summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard
Commit message (Collapse)AuthorAgeFilesLines
* Merge from PAO; Add new keywords for pccard.conf, auto and default.iwasaki2000-01-264-7/+92
| | | | | This will help importing pccard entries (and users :) from PAO into -CURRENT.
* Merge from PAO3 -- Quick fix a bug which assign_driver() checks wrongiwasaki2000-01-241-3/+3
| | | | | | | | | | | | | | | | | member variable to find the configuration on new driver allocation. Correct condition is that card_config and driver are not in use. Both of them are cleared in card_removed() (conf->driver->card never be cleared). This fix problems `No free configuration for card' on insertion, and pccardd core dump on removal in condition of the same driver but different card. Also this might be emergency measures, complete solution would be made after Hosokawa-san come back. Consulted with: imp Waiting for: hosokawa
* Added "attr2" MAC address encoding (used by Megahertz Ethernet Card)hosokawa2000-01-213-9/+80
| | | | | | | support. Reviewed by: Warner Losh <imp@village.org> Obtained from: PAO
* This fixes a bug that /etc/pccard_ether did not work without DHCP.hosokawa2000-01-161-1/+12
| | | | | | | | | | | | | | | | | | For example, when /etc/pccard.conf had ed0 in config line, but kernel refused this name and said devclass_alloc_unit: ed0 already exists, using next availale unit number Kernel used ed1 as device name and it did not match with config and insert/remove lines. Fortunately, dhclient was called without args, and it works, but if we wanted to use static IP address for PC-card, it did not work. This modification makes pccardd to execute insert/remove lines with the true device name that returns from kernel. (Last change to etc/pccard.conf.sample eliminated all hardwired device name from insert/remove lines in /etc/pccard.conf)
* Remove -g compiler flag.marcel2000-01-031-1/+3
|
* Version 1.16 was a bad change, so revert it.imp1999-12-081-16/+3
|
* If last state was supended, remove the card. This is a kludge, thereimp1999-12-081-0/+3
| | | | | | | is a race here that the old code didn't deal with, and I'm not completely sure this is the right way to solve it, but it works here. Should get rid of the dreaded "No free configuration for card" message.
* Bump CIS_MAXSTR from 30 to 254. pccard appears to define the entireimp1999-12-072-4/+17
| | | | | | | | | | | | section we take them from to be up to 255 bytes long, so that's the max size for the string. They can't all be this big, but I don't have a better number and better to be a little long than a little short. Also only consume len characters of the cis buffer so we don't run off the end into the next buffer and get garbage. This second patch shouldn't impact anything, but I'll hold off back porting this to -stable until I get more reports on the stability before/after this fix.
* Fix typo from last commit.imp1999-12-021-1/+1
| | | | Noticed by: Maxim Sobolev <sobomax@altavista.net>
* Forgotten part of pccardc power commandimp1999-12-021-0/+82
|
* Implement pccardc power command. This allows one to power offimp1999-12-023-1/+20
| | | | | | | | individual slots at one's whim. Useful for turning the slots into card carrying cases, etc. Patch was originally from mihira-san in message to freebsd-mobile. He ported the code originally from PAO. Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
* $Id$ -> $FreeBSD$peter1999-08-2822-22/+22
|
* Added "include" feature to pccard.conf to put the default pccard.confhosokawa1999-08-172-9/+59
| | | | entries in /etc/defaults/.
* o Add "debuglevel" keyword to config file.imp1999-08-016-35/+78
| | | | | | | | | | | | | | | | | | | o Document debug level keyword o Implement debug level: o For most of the diagnostic messages, change them from #ifdef DEBUG to if (debuglevel > 0). o Add a couple more diagnostic messages that weren't present before o Fix a couple of excessively long lines. Reviewed by: hosokawa-san o Start to implement the stopgap kludge for -current's pccard code by passing the length of the i/o range. If DEV_DESC_HAS_SIZE is defined, we'll set the size. This is done as an ifdef so that I can generate patches against the kernel more easily. o Add preliminary support for tweaking sleep times, but leave it disabled until a good range of values can be established. Didn't fix: logmsg problem noted by Nate.
* Set correct "flags" value when pccardd allocates/initializes driver.hosokawa1999-07-231-1/+2
|
* Removed a very very old hack (I disabled it in PAO long time ago)hosokawa1999-07-231-2/+1
| | | | | that existed in original PC-card driver for FreeBSD 2.0 (maybe). This prevents from utilizing flags for drivers.
* Sorry, I forgot to test "iosize auto" before merging "iosize" patch.hosokawa1999-07-231-0/+9
|
* Inappropriate commment for -i option.hosokawa1999-07-231-2/+2
|
* Added "iosize" directive in /etc/pccard.confhosokawa1999-07-233-14/+76
| | | | | | | | | | | | | | | | | | Allocate free I/O window with given size to card. (example) # IBM PCMCIA Ethernet I/II card "IBM Corp." "Ethernet" config 0x1 "ed0" ? iosize 32 ether 0xff0 (it's currently only useful for externalizing hacks for broken CIS cards, but it will play an important role with "function" directive I'm planninng to merge) Reviewed by: freebsd-mobile list Obtained from: PAO3's "cardio" directive
* Release IRQ allocated dynamically.hosokawa1999-07-231-1/+4
|
* Fix a dangling else warning from new egcs.imp1999-07-151-2/+3
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+2
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* pccard_beep parameter is not supported by rc.conf and rc.pccard of -current.hosokawa1999-06-301-3/+1
| | | | (I'll port it later...)
* Added -z and -i option.hosokawa1999-06-301-1/+8
|
* FreeBSD does supports LKM now.hosokawa1999-06-291-9/+1
| | | | | | PR: doc/10331 Reviewed by: mpp@freebsd.org Submitted by: Andreas Gustafsson <gson@araneus.fi>
* Minor mdoc fix.mpp1999-06-261-2/+2
|
* More uncontroversial PAO updates. Make the IRQ wildcarding work a lot better,markm1999-06-172-5/+28
| | | | | | and improve the daemonizing code. Submitted by: Tatsumi HOSOKAWA
* Fix typo.kuriyama1999-05-101-3/+3
| | | | Submitted by: Hiroki Sato <hrs@geocities.co.jp>
* Activate pccardc.8.kuriyama1999-05-031-2/+2
|
* New translation of pccardc.8.kuriyama1999-05-021-0/+237
| | | | | | | | | Obtained from: PAO (written in Japanese) Reviewed by: bsd-nomads@clave.gr.jp freebsd-mobile@freebsd.org Randy Bush <randy@psg.com> Bill Trost <trost@grey.cloud.rain.com> Bruce Campbell <bc@apnic.net>
* When printing out V1 info, make sure that there is additional infoimp1999-03-131-2/+8
| | | | | | | | | | | before printing it. Terminate when we come to a 0xff byte. This allows there to be zero or more additional info fields printed correctly. Before, the old code would print bogons or dump core when presented with this case. I don't know what the spec says about this, exactly, but this allows me to do a dumpcis of my non-ATA AMP 4M FLASH cards w/o pccardc dumping core.
* Cleanup usage of err() and warn().kuriyama1999-02-278-45/+50
| | | | | | | Add error handling for ioctl(). Reviewed by: -current Obtained from: PAO
* Add "beep" subcommand.kuriyama1999-02-133-3/+82
| | | | | Obtained from: PAO3 Reviewed by: -current list
* Use O_RDONLY and O_RDWR for open() instead of number.kuriyama1999-02-058-16/+16
| | | | Encouraged by: Nate
* s/card.conf/pccard.conf/kuriyama1999-02-051-2/+2
|
* When resuming with 2 identical cards in 2 slots, the initialisationguido1999-01-101-2/+5
| | | | of the second card fails. This fixes that.
* Fix typo.kuriyama1998-12-101-2/+2
|
* Keywords "iosize" and "memsize" are unused since 1.5. Removed.hosokawa1998-04-251-5/+1
|
* #define'd KWD_XXX for keywords.hosokawa1998-04-251-11/+25
|
* - Argh, fix stupid logic error in the laststate/state fix previously. That'snate1998-04-201-10/+3
| | | | what I get for trying to do too many things at once.
* - Don't try and keep track of the previous state, since the kernel maynate1998-04-201-19/+7
| | | | | | change it w/out informing the program. Instead, use the (now available) previous state returned by the kernel to make intelligent card removal/insertion decisions.
* MF22: Finish fixing 'looping' bug.nate1998-04-201-5/+1
|
* - If we see a tuple we don't expect, don't spin forever. Withouth this fix,nate1998-04-191-2/+3
| | | | | | I can't run pccardc dumpcis on my Wavelan card. :( Obtained from: PAO
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+2
|
* Some parameter was left uninitialized when the card with incompletehosokawa1998-03-201-1/+6
| | | | "Version 1" CIS tupple is plugged after normal card.
* Reviewed by: mike@smith.net.auhosokawa1998-03-095-61/+54
| | | | | Submitted by: nate@mt.sri.com Removed global variables. (and style(9) fix.)
* bit_nset was not correctly used.guido1998-03-021-2/+2
|
* Fix use of bit_nclear. Amazing that we didn't get more complaintsguido1998-03-021-2/+3
| | | | about inserting 2 pcmcia cards.
* Removed a confusing "#if 0 ... #endif".hosokawa1998-02-271-27/+1
|
* Removed "#define EXTERN" because this file doesn't have main().hosokawa1998-02-271-2/+1
|
OpenPOWER on IntegriCloud