1996-04-18 04:25:17 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1994 Andrew McRae. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1995-08-24 09:03:04 +00:00
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1996-09-23 22:24:39 +00:00
|
|
|
.\"
|
1995-08-24 09:03:04 +00:00
|
|
|
.Dd November 1, 1994
|
1999-06-26 23:16:40 +00:00
|
|
|
.Dt PCCARDD 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
1995-08-24 09:03:04 +00:00
|
|
|
.Sh NAME
|
1996-04-07 09:14:46 +00:00
|
|
|
.Nm pccardd
|
1995-08-24 09:03:04 +00:00
|
|
|
.Nd PC-CARD (PCMCIA) management daemon
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
.Op Fl d
|
|
|
|
.Op Fl v
|
1999-06-30 03:49:30 +00:00
|
|
|
.Op Fl z
|
|
|
|
.Op Fl i Ar IRQ
|
2001-07-15 08:06:20 +00:00
|
|
|
.Op Fl I
|
1995-08-24 09:03:04 +00:00
|
|
|
.Op Fl f Ar configfile
|
|
|
|
.Sh DESCRIPTION
|
1996-04-07 09:14:46 +00:00
|
|
|
.Nm Pccardd
|
1995-08-24 09:03:04 +00:00
|
|
|
is normally started at boot time, and manages the insertion
|
|
|
|
and removal of PC-CARD cards.
|
|
|
|
.Pp
|
|
|
|
When started,
|
1997-10-06 11:36:08 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
will read the configuration file (default name
|
2000-03-30 16:01:37 +00:00
|
|
|
.Pa /etc/defaults/pccard.conf
|
|
|
|
which includes
|
|
|
|
.Pa /etc/pccard.conf
|
|
|
|
as the user configuration file)
|
1995-08-24 09:03:04 +00:00
|
|
|
and scans the available PC-CARD slots for cards.
|
1996-04-07 09:14:46 +00:00
|
|
|
.Nm Pccardd
|
1995-08-24 09:03:04 +00:00
|
|
|
then waits for
|
|
|
|
.Em "card events" ,
|
|
|
|
such as the insertion of a new card or the removal
|
|
|
|
of a card.
|
|
|
|
.Pp
|
|
|
|
When a card is inserted, the following
|
|
|
|
actions are taken:
|
|
|
|
.Bl -enum
|
|
|
|
.It
|
|
|
|
The kernel driver detects the card insertion and applies
|
|
|
|
power to the card.
|
|
|
|
.It
|
1996-04-07 09:14:46 +00:00
|
|
|
.Nm Pccardd
|
1995-08-24 09:03:04 +00:00
|
|
|
reads the
|
|
|
|
.Em CIS
|
|
|
|
data from the attribute memory of the card, and uses
|
|
|
|
the manufacturer name and card version to match
|
|
|
|
the card description in the configuration file.
|
|
|
|
.It
|
|
|
|
Once matched, a driver is allocated.
|
|
|
|
.It
|
|
|
|
Once a free driver and device instance is located,
|
1997-10-06 11:36:08 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
will (if required) allocate resources such as an ISA memory
|
|
|
|
block and Input/Output ports from a common pool.
|
|
|
|
.It
|
|
|
|
The PC-CARD slot is configured with the I/O and memory
|
|
|
|
contexts allocated, and the kernel driver is attached to
|
|
|
|
this card.
|
|
|
|
.It
|
|
|
|
If the attach succeeds, then specific shell commands
|
|
|
|
may be executed to configure the device, such as
|
|
|
|
.Xr ifconfig 8
|
2000-03-01 14:09:25 +00:00
|
|
|
to set up a network interface.
|
|
|
|
Separate commands may be specified
|
1995-08-24 09:03:04 +00:00
|
|
|
for each card, driver or device, and are executed in that order.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
When
|
1997-10-06 11:36:08 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
detects that a card has been removed, the following sequence occurs:
|
|
|
|
.Bl -enum
|
|
|
|
.It
|
2000-03-01 14:09:25 +00:00
|
|
|
The shell commands associated with card removal are executed.
|
|
|
|
These
|
1995-08-24 09:03:04 +00:00
|
|
|
are intended to reset any device associated with the removed card.
|
|
|
|
Separate commands may exist for card, driver and device instances.
|
|
|
|
.It
|
|
|
|
The PC-CARD slot resources are freed.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Once a card/driver instance is configured, the resources
|
|
|
|
bound to that instance are remembered, and if the card is removed
|
2000-03-01 14:09:25 +00:00
|
|
|
and reinserted, the same driver is allocated.
|
|
|
|
The primary reason
|
1995-08-24 09:03:04 +00:00
|
|
|
is that once a driver is associated with a card, the
|
|
|
|
driver's
|
|
|
|
.Fn probe
|
|
|
|
routine has been called, and this usually causes driver specific
|
1997-12-25 09:36:42 +00:00
|
|
|
data areas to be initialized with the I/O ports or memory resources
|
2000-03-01 14:09:25 +00:00
|
|
|
allocated to the card.
|
|
|
|
Most drivers are not designed to be
|
1995-08-24 09:03:04 +00:00
|
|
|
disassociated from the hardware and then reassociated with different
|
2000-03-01 14:09:25 +00:00
|
|
|
parameters.
|
|
|
|
This will change significantly when loadable kernel
|
1995-08-24 09:03:04 +00:00
|
|
|
modules are supported.
|
|
|
|
.Pp
|
2000-04-08 05:19:44 +00:00
|
|
|
SIGHUP causes
|
|
|
|
.Nm
|
|
|
|
to reload the configuration files.
|
|
|
|
.Pp
|
1995-08-24 09:03:04 +00:00
|
|
|
The start options understood by
|
1997-10-06 11:36:08 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
are:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl d
|
|
|
|
Do not run as a daemon, but run in the foreground and
|
|
|
|
display error messages.
|
|
|
|
.It Fl v
|
|
|
|
After reading the configuration file, print out a summary
|
|
|
|
of it.
|
1999-06-30 03:49:30 +00:00
|
|
|
.It Fl z
|
1999-08-01 18:04:26 +00:00
|
|
|
Delays running as a daemon until after the cards have been probed and attached.
|
2000-10-20 13:08:18 +00:00
|
|
|
.It Fl I
|
|
|
|
Don't get a list of free IRQs from kernel.
|
1999-06-30 03:49:30 +00:00
|
|
|
.It Fl i Ar IRQ
|
|
|
|
Configures an available IRQ. It overrides the "irq" line in
|
2000-03-30 16:01:37 +00:00
|
|
|
.Pa /etc/defaults/pccard.conf
|
|
|
|
and
|
1999-06-30 03:49:30 +00:00
|
|
|
.Pa /etc/pccard.conf .
|
1995-08-24 09:03:04 +00:00
|
|
|
.It Fl f Ar configfile
|
|
|
|
Specifies a different configuration file to be used
|
|
|
|
in placed of the default file
|
2000-03-30 16:01:37 +00:00
|
|
|
.Pa /etc/defaults/pccard.conf .
|
1995-08-24 09:03:04 +00:00
|
|
|
The file format is detailed in
|
1999-02-05 15:59:57 +00:00
|
|
|
.Xr pccard.conf 5 ,
|
1995-08-24 09:03:04 +00:00
|
|
|
and lists the PC-CARD cards recognized by
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm ,
|
1995-08-24 09:03:04 +00:00
|
|
|
and the kernel drivers and devices that are used to
|
|
|
|
interface to the card.
|
2000-12-27 15:30:30 +00:00
|
|
|
.El
|
1995-08-24 09:03:04 +00:00
|
|
|
.Sh FILES
|
2000-03-30 16:01:37 +00:00
|
|
|
.Bl -tag -width /etc/defaults/pccard.conf -compact
|
|
|
|
.It Pa /etc/defaults/pccard.conf
|
2000-04-08 05:19:44 +00:00
|
|
|
default configuration file
|
1996-04-07 09:14:46 +00:00
|
|
|
.It Pa /etc/pccard.conf
|
2000-04-08 05:19:44 +00:00
|
|
|
user configuration file
|
|
|
|
.It Pa /var/run/pccardd.pid
|
2001-06-24 01:34:38 +00:00
|
|
|
process id of the currently running
|
2000-04-08 05:19:44 +00:00
|
|
|
.Nm
|
1995-08-24 09:03:04 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1997-02-09 20:39:00 +00:00
|
|
|
.Xr pccard.conf 5 ,
|
1995-08-24 09:03:04 +00:00
|
|
|
.Xr ifconfig 8
|
1998-03-23 08:31:20 +00:00
|
|
|
.Sh AUTHORS
|
1997-10-06 11:36:08 +00:00
|
|
|
Developed by
|
|
|
|
.An Andrew McRae Aq andrew@mega.com.au .
|
1995-08-24 09:03:04 +00:00
|
|
|
.Sh BUGS
|
1996-04-07 09:14:46 +00:00
|
|
|
.Nm Pccardd
|
1995-08-24 09:03:04 +00:00
|
|
|
can set up card parameters, but cannot guarantee that
|
|
|
|
particular drivers can work with the card.
|
|
|
|
.Pp
|
|
|
|
Removing cards may cause problems if system resources
|
|
|
|
have been associated with the card, such as network
|
|
|
|
mounted filesystems.
|