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>
36 .Nd PC-CARD (PCMCIA) management and monitoring tool
44 utility controls PC-CARD slots and configures and displays information
46 It understands the following subcommands:
48 .Bl -tag -width dumpcisfile -compact
54 Print card CIS(s) from files
60 Allocate memory for pccard driver
62 Power on/off slots and leaves them disabled
70 Write byte to attribute memory
78 Specifies the sound made upon card insertion or removal.
79 This subcommand corresponds to
87 .Bl -tag -width Ds -compact
101 (Card Information Structure) tuple in EEPROM of a PC-CARD card.
103 specifies which slot to read.
104 When no option is supplied, it displays
105 the CIS of all of the available cards.
110 Displays CIS(s) in the same format as
114 as the input CIS data instead of physical PC-CARD cards.
116 .Ic enabler Ar slot driver
117 .Op Fl m Ar card addr size
121 This is a "point enabler" which can be used to set
122 parameters manually to enable a card when
124 cannot allocate drivers to a PC-CARD card properly.
125 Specify a PC-CARD slot in
127 and a device name (such as "ed0" or "sio2") in
129 along with some or all of the following options:
131 .It Fl m Ar card addr size
132 maps the shared-memory window of the card to host address.
134 is the starting address of shared-memory (hex) in the card's address space,
136 is the address (hex) to map the memory to in the computer's address space, and
138 is the size of memory window (kb).
141 specifies the port number to be mapped to the I/O window (hex)
144 specifies the IRQ (decimal from 1 to 15) the card will use for interrupts.
149 enabler 0 ed0 -m 2000 d4000 16 -a 300 -i 3
152 assigns the card in slot zero to the first NE2000 ethernet card driver at
153 port 0x300 and IRQ 3,
154 mapping the 16KB memory region at 0x2000 in the card to 0xd4000.
156 This allows use of some unrecognized cards with broken CIS tuples,
157 and is also useful for testing a card that has not yet reported.
158 However, beware that it frequently cannot recognize new cards properly.
165 .Ic pccardmem Ar addr
167 Specifies the host address range PC-CARD controller(PCIC)
168 will use to map cards to.
169 Because the PCIC needs a contiguous 16KB memory, and most machines
170 have other ROMs or devices at other places in the ISA I/O memory
171 address range, generally you can only use the following four addresses:
173 .Bl -tag -width 0xd0000 -compact
175 0xd0000-0xd3fff (default)
184 You can use "DEFAULT" instead of 0xd0000.
185 This subcommand corresponds to
190 .Ic power Ar slot power_mode
192 Changes the state of the power supply of the card in the specified
197 Turn off a power supply.
198 If a card becomes unstable when it is removed at
200 this can force it into inactive state first and remove it safely.
201 The slot will remain disabled until you eject the card with the system
202 running or reenable the card with another
205 The slot will even remain disabled when you suspend and resume the
208 Turn on a power supply and set it into active state
209 (the system treats the card as if it was just inserted).
213 .Ic rdattr Ar slot offs length
217 bytes long of the EEPROM of the card in slot
221 All parameters are in hex.
226 Displays where the four memory windows and two I/O windows of a PC-CARD slot
227 are mapped to on the host.
230 is not supplied, it displays the information for all of slots in the system.
235 Displays the 64 registers of the card in
237 (all slots by default).
239 .Ic wrattr Ar slot offs value
241 Writes a single byte to the card's EEPROM at
242 an offset address from the top specified in
245 with a value specified in
248 This is preserved after the card is removed.
250 .Ic wrreg Ar slot reg value
252 Writes a register of a PC-CARD.
253 Specify a PC-CARD slot number in
263 .Bl -tag -width /etc/rc.conf -compact
272 The original version was written by
273 .An Andrew McRae Aq andrew@mega.com.au .
274 .An Tatsumi Hosokawa Aq hosokawa@mt.cs.keio.ac.jp
275 fixed bugs and added some features.
276 This man page was written by
277 .An Toshihiko ARAI Aq toshi@jp.FreeBSD.org .
279 Be careful when using
283 Misuse can make the system unstable or damage the card.