Index:
a.out(5)acct(5)
adduser.conf(5)
aliases(5)
amd.conf(5)
auth.conf(5)
big5(5)
bluetooth.hosts(5)
bluetooth.protocols(5)
bootparams(5)
bootptab(5)
config(5)
core(5)
crontab(5)
ctm(5)
cvs(5)
devd.conf(5)
devfs(5)
device.hints(5)
dhclient.conf(5)
dhclient.leases(5)
dhcp-eval(5)
dhcp-options(5)
dir(5)
dirent(5)
disktab(5)
editrc(5)
elf(5)
ethers(5)
euc(5)
eui64(5)
exports(5)
fbtab(5)
fdescfs(5)
finger.conf(5)
forward(5)
fs(5)
fstab(5)
ftpchroot(5)
gb18030(5)
gb2312(5)
gbk(5)
gettytab(5)
groff_font(5)
groff_out(5)
groff_tmac(5)
group(5)
hcsecd.conf(5)
hesiod.conf(5)
hosts(5)
hosts.equiv(5)
hosts.lpd(5)
hosts_access(5)
hosts_options(5)
inetd.conf(5)
info(5)
inode(5)
intro(5)
ipf(5)
ipnat(5)
ipnat.conf(5)
ipsend(5)
isdnd.acct(5)
isdnd.rates(5)
isdnd.rc(5)
kbdmap(5)
keycap(5)
keymap(5)
krb5.conf(5)
lastlog(5)
libarchive-formats(5)
libmap.conf(5)
link(5)
linprocfs(5)
loader.conf(5)
login.access(5)
login.conf(5)
mac.conf(5)
magic(5)
mailer.conf(5)
make.conf(5)
malloc.conf(5)
master.passwd(5)
moduli(5)
motd(5)
msdos(5)
msdosfs(5)
mskanji(5)
named.conf(5)
netconfig(5)
netgroup(5)
netid(5)
networks(5)
newsyslog.conf(5)
nologin(5)
nsmb.conf(5)
nsswitch.conf(5)
ntp.conf(5)
ntp.keys(5)
opieaccess(5)
opiekeys(5)
passwd(5)
pbm(5)
pccard.conf(5)
periodic.conf(5)
pf.conf(5)
pf.os(5)
phones(5)
printcap(5)
procfs(5)
protocols(5)
publickey(5)
pw.conf(5)
quota.group(5)
quota.user(5)
radius.conf(5)
rc.conf(5)
rcsfile(5)
remote(5)
resolv.conf(5)
resolver(5)
rhosts(5)
rndc.conf(5)
rpc(5)
rrenumd.conf(5)
rtadvd.conf(5)
services(5)
shells(5)
ssh_config(5)
sshd_config(5)
stab(5)
style.Makefile(5)
sysctl.conf(5)
syslog.conf(5)
tacplus.conf(5)
tar(5)
term(5)
termcap(5)
terminfo(5)
texinfo(5)
tmac(5)
ttys(5)
tzfile(5)
usbd.conf(5)
utf2(5)
utf8(5)
utmp(5)
uuencode(5)
uuencode.format(5)
vgrindefs(5)
wtmp(5)
pccard.conf(5)
NAME
pccard.conf -- pccardd(8) configuration file
DESCRIPTION
The pccard.conf file is the configuration file for the pccardd(8) PC-CARD slot management daemon. It provides information to allow card identifi- cation, and the matching of drivers (along with driver resources) to the PC-CARD cards. There are four basic elements within the configuration file; An optional resource pool preceding the other sections, and one or more card identifiers, and device instances. The latter two may appear in any order, and may be interspersed as desired. The /etc/pccard.conf file is included from the file /etc/defaults/pccard.conf, which contains the default resource pool set- tings and pccard identifiers database. The user specific configuration can be specified in /etc/pccard.conf when the user wishes to override these defaults and/or add additional entries. Each PC-CARD card contains configuration tuples that provide the manufac- turer and card version; these are used to identify the card specification in the configuration file, and from this find a driver that can be used to interface to the particular card. There is a many-to-one mapping between cards to drivers i.e a single driver may interface to multiple types of cards. To aid this, card parameters may be specified separately from the driver to initialize the card or extract (in the case of a net- work card) an Ethernet address. Once a driver is allocated to a card, it stays allocated to that particu- lar card. However, multiple instances of the same type of driver can be configured, so that if two cards are plugged in that map to a similar type of driver, other driver instances of the same name can be config- ured. The insert and remove commands allow a shell command line to be executed. The command to be executed is the rest of the line after the keyword. The line can be continued using a backslash. A simple macro substitution allows the current kernel device name ($device) and network card Ethernet address ($ether) to be inserted into the command line. pccardd(8) uses the system(3) subroutine to execute the command line. pccardd(8) will use syslog to announce the insertion and removal of cards. It uses either the string set by the logstr command, or the manu- facturer and card version strings if none has been set. Numeric values may be expressed as octal, hex or decimal. If a decimal number has k or K appended to it, the value is multiplied by 1024. Names may be quoted using double quotes if spaces are required. A hash charac- ter comments out the rest of the line. Resource pool The (optional) section specifies a pool of system resources such as ISA bus memory address space, Input/Output ports and interrupt request num- bers. This resource pool is used to allocate address space and interrupt numbers dynamically according to the requirements specified in each driver description. to allocate to drivers when they are initialized. The syntax of the debuglevel parameter: debuglevel level Multiple lines of any of the above statements may be present to allow separate blocks of each resource to be defined. Card Identifiers The syntax for card identifiers is: card manufacturer version [add_info1 [add_info2 ]] config index driver interrupt [flags] ether offset reset time iosize size memsize size insert command remove command logstr string The first line is mandatory; the latter statements are optional and can appear in any order. There may be multiple config lines. The card parameters are the Manufacturer name, card version and additional infor- mation add_info1, add_info2 that is used to match the values from the card's CIS memory. These parameters can be described in extended regular expression regex(3) if the string is enclosed by '/' like "/.*/". Each of the expressions is evaluated with a character '^' at top. The config parameters select the particular card's configuration index from the range available in the card's CIS, the driver that is to be associated with this configuration, and the interrupt level (if any) to be assigned. An optional set of flags may be assigned. In index, spec- ify either ``auto'' or ``default'' or the range available in the card's CIS. ``auto'' allows to allocate resources automatically with informa- tion from the CIS and status of using I/O resources. The optional ether keyword is used when network cards have their physical Ethernet address located within the attribute memory of the card. The parameter of this statement indicates the offset within the attribute memory of the Ethernet address. This value can be used within insert/remove commands using the $ether macro. The optional reset keyword specifies reset duration at a card insertion in time milliseconds. Default is 100msec. iosize and memsize keywords are used with cards whose resources such as I/O ports and shared memory block are not specified in the CIS tuple. The insert and remove sections allow shell commands to be specified that are executed when the card is inserted or removed. Multiple insert and remove commands are allowed, and they are executed in the order they are listed. The logstr command allows the user to set the string to be logged when this card is inserted or removed. If logstr isn't specified, then the manufacturer and card version strings from the CIS are used to synthesize The keyword serial matches ``Functional ID: Serial port/modem'' and fixed_disk matches ``Fixed disk card''. The syntax is the same as for card identifiers but uses ``generic'' instead of ``card'' in the first line. These are defined at the bottom of pccard.conf so unmatched cards use the generic entries. The alias ``function'' can be used instead of ``generic'', this is supported due to historical reasons.
EXAMPLES
A typical configuration file may look like this: # # Sample configuration file. # # Pool parameters. # io 0x280 - 0x2F0 0x300 - 0x360 irq 5 6 8 9 10 15 memory 0xd4000 96k memory 0xc4000 32k # # Card database. # card "RPTI LTD." "EP400" # NE2000 clone ether 0x110 config 0x21 "ed0" 5 insert ifconfig $device physical $ether insert ifconfig $device bean remove ifconfig $device down card "XYZZY" "FAX/1.0" config 0x30 "sio1" 11 insert echo start getty remove echo stop getty
FILES
/etc/defaults/pccard.conf The pccardd(8) default configuration file. /etc/pccard.conf The user configuration file.
SEE ALSO
pccardd(8) FreeBSD 5.4 November 2, 1994 FreeBSD 5.4
SPONSORED LINKS
Man(1) output converted with man2html , sed , awk