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 $
36 .Nd PC-CARD (PCMCIA) management and monitoring tool
43 controls PC-CARD slots and configures and displays information about PCMCIA cards.
45 understands the following subcommands:
47 .Bl -tag -width pccardmem -compact
57 Allocate memory for pccard driver
67 Write byte to attribute memory
75 Specifies the sound made upon card insertion or removal.
76 This subcommand corresponds to
84 .Bl -tag -width Ds -compact
98 (Card Information Structure) tuple in EEPROM of a PC-CARD card.
100 specifies which slot to read.
101 When no option is supplied, it displays
102 the CIS of all of the available cards.
104 .Ic enabler Ar slot driver
105 .Op Fl m Ar card addr size
109 This is a "point enabler" which can be used to set
110 parameters manually to enable a card when
112 cannot allocate drivers to a PC-CARD card properly.
113 Specify a PC-CARD slot in
115 and a device name (such as "ed0" or "sio2") in
117 along with some or all of the following options:
119 .It Fl m Ar card addr size
120 maps the shared-memory window of the card to host address.
122 is the starting address of shared-memory (hex) in the card's address space,
124 is the address (hex) to map the memory to in the computer's address space, and
126 is the size of memory window (kb).
129 specifies the port a number to be mapped to the I/O window (hex)
132 specifies the IRQ (decimal from 1 to 15) the card will use for interrupts.
137 enabler 0 ed0 -m 2000 d4000 16 -a 300 -i 3
140 assigns the card in slot zero to the first NE2000 ethernet card driver at
141 port 0x300 and IRQ 3,
142 mapping the 16KB memory region at 0x2000 in the card to 0xd4000.
144 This allows use of some unrecognized cards with broken CIS tuples,
145 and is also useful for testing a card that has not yet reported.
146 However, beware that it frequently cannot recognize new cards properly.
153 .Ic pccardmem Ar addr
155 Specifies the host address using PC-CARD controller(PCIC)
156 will use to map cards to.
157 Because the PCIC needs a contiguous 16KB memory,
158 you can only use the following four addresses:
160 .Bl -tag -width 0xd0000 -compact
162 0xd0000-0xd3fff (default)
171 You can use "DEFAULT" instead of 0xd0000.
172 This subcommand corresponds to
177 .Ic power Ar slot power_mode
179 Changes the state of the power supply of the card in the specified
184 Turn off a power supply.
185 If a card becomes unstable when it is removed at
187 this can force it into inactive state first and remove it safely.
189 Turn on a power supply and set it into active state
190 (similar to a card insertion).
194 .Ic rdattr Ar slot offs length
198 bytes long of the EEPROM of the card in slot
202 All parameters are in hex.
207 Displays where the four memory windows and two I/O windows of a PC-CARD slot
208 are mapped to on the host.
211 is not supplied, it displays the information for all of slots in the system.
216 Displays the 64 registers of the card in
218 (all slots by default).
220 .Ic wrattr Ar slot offs value
222 Writes a single byte to the card's EEPROM at
223 an offset address from the top specified in
226 with a value specified in
229 This is preserved after the card is removed.
231 .Ic wrreg Ar slot reg value
233 Writes a register of a PC-CARD.
234 Specify a PC-CARD slot number in
244 .Bl -tag -width /etc/rc.conf -compact
253 The original version was written by
254 .An Andrew McRae Aq andrew@mega.com.au .
255 .An Tatsumi Hosokawa Aq hosokawa@mt.cs.keio.ac.jp
256 fixed bugs and added some features.
257 This man page was written by
258 .An Toshihiko ARAI Aq toshi@jp.FreeBSD.org .
260 Be careful when using
264 Misuse can make the system unstable or damage the card.