4 |
- |
1 |
# PCMCIA devices:
|
|
|
2 |
#
|
|
|
3 |
ACTION!="add", GOTO="pcmciautils_end"
|
|
|
4 |
# modprobe $env{MODALIAS} loads all possibly appropriate modules
|
|
|
5 |
SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
|
|
|
6 |
RUN+="/sbin/modprobe $env{MODALIAS}"
|
|
|
7 |
|
|
|
8 |
# Very few CIS firmware entries (which we use for matching)
|
|
|
9 |
# are so broken that we need to read out random bytes of it
|
|
|
10 |
# instead of the manufactor, card or product ID. Then the
|
|
|
11 |
# matching is done in userspace.
|
|
|
12 |
SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
|
|
|
13 |
RUN+="/lib/udev/pcmcia-check-broken-cis"
|
|
|
14 |
|
|
|
15 |
# However, the "weak" matching by func_id is only allowed _after_ modprobe
|
|
|
16 |
# returns, so that "strong" matches have a higher priority.
|
|
|
17 |
SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", ATTR{allow_func_id_match}="1"
|
|
|
18 |
|
|
|
19 |
# PCMCIA sockets:
|
|
|
20 |
#
|
|
|
21 |
# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
|
|
|
22 |
SUBSYSTEM=="pcmcia_socket", \
|
|
|
23 |
RUN+="/sbin/modprobe -b pcmcia"
|
|
|
24 |
|
|
|
25 |
# if this is a PCMCIA socket which needs a resource database,
|
|
|
26 |
# pcmcia-socket-startup sets it up
|
|
|
27 |
SUBSYSTEM=="pcmcia_socket", \
|
|
|
28 |
RUN+="/lib/udev/pcmcia-socket-startup"
|
|
|
29 |
|
|
|
30 |
LABEL="pcmciautils_end"
|