summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard
Commit message (Collapse)AuthorAgeFilesLines
* add PC-Card melody beep(PC Card bus, kludge version)sanpei2000-10-281-0/+2
| | | | Original idea from: PAO3
* add -I option, ``Don't get and use a list of freesanpei2000-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.
* cosmetic: resource -> ressanpei2000-10-131-14/+14
|
* print out error reason if it was failed in assign_iosanpei2000-10-101-3/+23
| | | | Obtained from: PAO3
* Fix abuse of the Pa, Nm and Ar macros. This necessitated a rewordingsheldonh2000-10-051-35/+39
| | | | | | of the description for the "power" internal command. Reviewed by: sanpei
* check {IO,IRQ}_ASSIGNED flags beforesanpei2000-10-041-3/+8
| | | | | | | | release {io,irq} resources. fix multi io window in release io routine PR: 20454
* fix some minor problem in PIOCSRESOURCE ioctl.sanpei2000-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>
* add ``check free resource rage code''sanpei2000-09-213-10/+32
| | | | for PC-Card which has no address in cis.
* fix previous PIOCSRESOURCE code in assign_card_indexsanpei2000-09-201-7/+10
|
* pccard_beep parameter was already supported by rc.conf.sanpei2000-09-171-0/+4
| | | | (removed in Rev.1.3)(A(B
* add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)sanpei2000-09-171-5/+36
| | | | | | | Now /usr/sbin/pccardd read free resource(io,irq) range with this ioctl. Original Idea from: PAO3
* Fix typo (rc.conf -> pccard.conf).iwasaki2000-09-151-1/+1
| | | | Submitted by: OKAZAKI Tetsurou <okazaki@be.to>
* fix multi io window patch(Rev. 1.48)sanpei2000-09-011-1/+1
| | | | | Submitted by: iwasaki Obtained from: PAO3
* Add UNIX domain socket feature to pccardd. This makes pccardume2000-08-205-11/+265
| | | | | | | related PAO3/ports such as gxcardmon work. Reviewed by: imp Obtained from: PAO3
* Add documentation on the new logstr command.imp2000-07-141-0/+17
|
* Add new keyword "logstr". By default, we now use syslog outselves toimp2000-07-143-9/+21
| | | | | | | | | | | | | | | | log insert/remove events using the logstr, if specified for that card, or the manufacturer + version strings from the cis if not. This eliminates the need to have logger in the pccard.conf file which makes it easier to move pcardd to /sbin later if we need to. This also reduces the pccard.conf file size from 53k to 28k, which will help the install disk a little. Also, minor cleanup of free usage (if (x != NULL) free(x); is identical to free(x); for all versions of C that we care about). Reviewed by: iwasaki (who proposed the logstr keyword). Documentation and fixes to pccard.conf to follow.
* Don't call syslog() without a format string.kris2000-07-121-1/+1
|
* MFPAO vis Iwasaki-san on the train from Tokyo to Osaka.imp2000-06-241-0/+16
| | | | | | | Document "reset", "iosize" and "memsize". The code for these was merged in some time ago. Reviewed by: iwasaki-san
* Fix building with -DDEBUG.roberto2000-06-183-3/+5
|
* Add regex(3) matching feature for card line strings.iwasaki2000-05-304-12/+82
| | | | | | | | | | | | | | - This feature will be enabled only if the string is enclosed by '/' something like; card "SunDisk" "/.*/" - Also added matching additional information strings followed by version string. This is for the card which is difficult to idendentify by only the manufacturer and card version strings matching. card "MACNICA" "MIRACLE SCSI" "mPS100" "D.0" Reviewed by: imp Obtained from: PAO
* Add CIS string comparison function.iwasaki2000-05-171-2/+17
| | | | | | | | | This should solve tentatively the pccardd core dump problem when there's no CIS (likely CardBus cards). Later, this function will have regex CIS string comparison capability too. Obtained from: PAO
* When setting up an iomem resources, remember to set the MEM_ASSIGNED bitwpaul2000-05-091-0/+1
| | | | so that pccardd actually does something to set up the memory range.
* Add ioctl() in read_ether() so that pccardd ensure reading its etheriwasaki2000-05-041-0/+2
| | | | address from the attribute memory area.
* MFPAO3. Improvement of of pccard cis tuple parsing capability.iwasaki2000-04-264-523/+1070
| | | | | | | | | - 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
* MFPAO3. Add support multi io window. This code support following cards;iwasaki2000-04-263-59/+97
| | | | | | | | | | | | Accton UE2212 PLANET-SMART-COM-CREDITCARD-2000 Melco LPC-T ME-3000II Laneed LD-CDY Melco LPC3-TX Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org> Obtained from: PAO3
* Fix minor bugs.iwasaki2000-04-142-1/+10
| | | | | - reset line number when new file is included. - activate `-i' command lline option (specify available IRQ) again.
* Add restart capability by SIGHUP. On restart, working configurationiwasaki2000-04-084-6/+255
| | | | | | | | | | (resource and card configuration being used) is to be maintained for consistency. Part of resource pool re-initialization would be rewrite later using on Warner-san's hints driver API :-) Reviewed by: nate, imp and -nomads ML in Japan. Obtained from: http://www.freebsd.org/~iwasaki/pccard/pccardd-signal.diff Commited at: BSD HANAMI Party 2000 in Japan
* MFPAO: support wildcard entry for generic serial and fixediwasaki2000-04-056-11/+133
| | | | | | | | | disk as fallthrough entry. Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>, iwasaki Reviewed by: imp, -mobile ML and nomads ML in Japan Obtained from: http://www.freebsd.org/~iwasaki/pccard/pccardd-generic.diff http://home.jp.freebsd.org/~sanpei/4-current/usr.sbin-pccard-pccardd.diff
* - default config file changed from /etc/pccard.conf toiwasaki2000-03-305-47/+145
| | | | | | | | | | | | | | | | /etc/defaults/pccard.conf in pccardd. But system default pccardd config file is still /etc/pccard.conf.sample specified in /etc/rc.conf for the testing this changes. - improved `include' keyword function for error handling. - now that resource pool (io, irq, mem) can be overridden. - pccard config entries is searched following the first match rule if there are more than two entries which have the same card identifier. Note that the /etc/defaults/pccard.conf related files is not committed at this time, will come a week later. I'll prepare the test version of /etc/defaults/pccard.conf, /etc/pccard.conf and other files soon. Reviewed by: imp and nomads in Japan.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-013-16/+32
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* 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
|
OpenPOWER on IntegriCloud