2 .\" Copyright (c) 1994 Andrew McRae. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. The name of the author may not be used to endorse or promote products
13 .\" derived from this software without specific prior written permission.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 .\" $FreeBSD: src/usr.sbin/pccard/pccardd/pccardd.8,v 1.17.2.7 2001/08/16 15:56:12 ru Exp $
27 .\" $DragonFly: src/usr.sbin/pccard/pccardd/Attic/pccardd.8,v 1.2 2003/06/17 04:29:59 dillon Exp $
34 .Nd PC-CARD (PCMCIA) management daemon
42 .Op Fl f Ar configfile
45 is normally started at boot time, and manages the insertion
46 and removal of PC-CARD cards.
50 will read the configuration file (default name
51 .Pa /etc/defaults/pccard.conf
54 as the user configuration file)
55 and scans the available PC-CARD slots for cards.
59 such as the insertion of a new card or the removal
62 When a card is inserted, the following
66 The kernel driver detects the card insertion and applies
72 data from the attribute memory of the card, and uses
73 the manufacturer name and card version to match
74 the card description in the configuration file.
76 Once matched, a driver is allocated.
78 Once a free driver and device instance is located,
80 will (if required) allocate resources such as an ISA memory
81 block and Input/Output ports from a common pool.
83 The PC-CARD slot is configured with the I/O and memory
84 contexts allocated, and the kernel driver is attached to
87 If the attach succeeds, then specific shell commands
88 may be executed to configure the device, such as
90 to set up a network interface.
91 Separate commands may be specified
92 for each card, driver or device, and are executed in that order.
97 detects that a card has been removed, the following sequence occurs:
100 The shell commands associated with card removal are executed.
102 are intended to reset any device associated with the removed card.
103 Separate commands may exist for card, driver and device instances.
105 The PC-CARD slot resources are freed.
108 Once a card/driver instance is configured, the resources
109 bound to that instance are remembered, and if the card is removed
110 and reinserted, the same driver is allocated.
112 is that once a driver is associated with a card, the
115 routine has been called, and this usually causes driver specific
116 data areas to be initialized with the I/O ports or memory resources
117 allocated to the card.
118 Most drivers are not designed to be
119 disassociated from the hardware and then reassociated with different
121 This will change significantly when loadable kernel
122 modules are supported.
126 to reload the configuration files.
128 The start options understood by
133 Do not run as a daemon, but run in the foreground and
134 display error messages.
136 After reading the configuration file, print out a summary
139 Delays running as a daemon until after the cards have been probed and attached.
141 Don't get a list of free IRQs from kernel.
143 Configures an available IRQ. It overrides the "irq" line in
144 .Pa /etc/defaults/pccard.conf
146 .Pa /etc/pccard.conf .
147 .It Fl f Ar configfile
148 Specifies a different configuration file to be used
149 in placed of the default file
150 .Pa /etc/defaults/pccard.conf .
151 The file format is detailed in
153 and lists the PC-CARD cards recognized by
155 and the kernel drivers and devices that are used to
156 interface to the card.
159 .Bl -tag -width /etc/defaults/pccard.conf -compact
160 .It Pa /etc/defaults/pccard.conf
161 default configuration file
162 .It Pa /etc/pccard.conf
163 user configuration file
164 .It Pa /var/run/pccardd.pid
165 process id of the currently running
173 .An Andrew McRae Aq andrew@mega.com.au .
176 can set up card parameters, but cannot guarantee that
177 particular drivers can work with the card.
179 Removing cards may cause problems if system resources
180 have been associated with the card, such as network