2 .\" Copyright (c) 1998 Toshihiko ARAI <toshi@jp.FreeBSD.org>
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote products
14 .\" derived from this software without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 .\" Translated to English by Hiroki Sato <hrs@geocities.co.jp>
29 .\" $FreeBSD: src/usr.sbin/pccard/pccardc/pccardc.8,v 1.7.2.6 2001/08/16 15:56:12 ru Exp $
30 .\" $DragonFly: src/usr.sbin/pccard/pccardc/Attic/pccardc.8,v 1.2 2003/06/17 04:29:59 dillon Exp $
37 .Nd PC-CARD (PCMCIA) management and monitoring tool
44 controls PC-CARD slots and configures and displays information about PCMCIA cards.
46 understands the following subcommands:
48 .Bl -tag -width pccardmem -compact
58 Allocate memory for pccard driver
68 Write byte to attribute memory
76 Specifies the sound made upon card insertion or removal.
77 This subcommand corresponds to
85 .Bl -tag -width Ds -compact
99 (Card Information Structure) tuple in EEPROM of a PC-CARD card.
101 specifies which slot to read.
102 When no option is supplied, it displays
103 the CIS of all of the available cards.
105 .Ic enabler Ar slot driver
106 .Op Fl m Ar card addr size
110 This is a "point enabler" which can be used to set
111 parameters manually to enable a card when
113 cannot allocate drivers to a PC-CARD card properly.
114 Specify a PC-CARD slot in
116 and a device name (such as "ed0" or "sio2") in
118 along with some or all of the following options:
120 .It Fl m Ar card addr size
121 maps the shared-memory window of the card to host address.
123 is the starting address of shared-memory (hex) in the card's address space,
125 is the address (hex) to map the memory to in the computer's address space, and
127 is the size of memory window (kb).
130 specifies the port a number to be mapped to the I/O window (hex)
133 specifies the IRQ (decimal from 1 to 15) the card will use for interrupts.
138 enabler 0 ed0 -m 2000 d4000 16 -a 300 -i 3
141 assigns the card in slot zero to the first NE2000 ethernet card driver at
142 port 0x300 and IRQ 3,
143 mapping the 16KB memory region at 0x2000 in the card to 0xd4000.
145 This allows use of some unrecognized cards with broken CIS tuples,
146 and is also useful for testing a card that has not yet reported.
147 However, beware that it frequently cannot recognize new cards properly.
154 .Ic pccardmem Ar addr
156 Specifies the host address using PC-CARD controller(PCIC)
157 will use to map cards to.
158 Because the PCIC needs a contiguous 16KB memory,
159 you can only use the following four addresses:
161 .Bl -tag -width 0xd0000 -compact
163 0xd0000-0xd3fff (default)
172 You can use "DEFAULT" instead of 0xd0000.
173 This subcommand corresponds to
178 .Ic power Ar slot power_mode
180 Changes the state of the power supply of the card in the specified
185 Turn off a power supply.
186 If a card becomes unstable when it is removed at
188 this can force it into inactive state first and remove it safely.
190 Turn on a power supply and set it into active state
191 (similar to a card insertion).
195 .Ic rdattr Ar slot offs length
199 bytes long of the EEPROM of the card in slot
203 All parameters are in hex.
208 Displays where the four memory windows and two I/O windows of a PC-CARD slot
209 are mapped to on the host.
212 is not supplied, it displays the information for all of slots in the system.
217 Displays the 64 registers of the card in
219 (all slots by default).
221 .Ic wrattr Ar slot offs value
223 Writes a single byte to the card's EEPROM at
224 an offset address from the top specified in
227 with a value specified in
230 This is preserved after the card is removed.
232 .Ic wrreg Ar slot reg value
234 Writes a register of a PC-CARD.
235 Specify a PC-CARD slot number in
245 .Bl -tag -width /etc/rc.conf -compact
254 The original version was written by
255 .An Andrew McRae Aq andrew@mega.com.au .
256 .An Tatsumi Hosokawa Aq hosokawa@mt.cs.keio.ac.jp
257 fixed bugs and added some features.
258 This man page was written by
259 .An Toshihiko ARAI Aq toshi@jp.FreeBSD.org .
261 Be careful when using
265 Misuse can make the system unstable or damage the card.