60-pcmcia.rules 1.0 KB

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