diff options
Diffstat (limited to 'sys/dev/pccard/card_if.m')
-rw-r--r-- | sys/dev/pccard/card_if.m | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m index 51977cc..434389e 100644 --- a/sys/dev/pccard/card_if.m +++ b/sys/dev/pccard/card_if.m @@ -175,6 +175,47 @@ METHOD int compat_match { # METHOD int cis_scan { device_t bus; + device_t dev; pccard_scan_t fnp; void *argp; }; + +# +# Convenience function to read attribute memory. +# +METHOD int attr_read { + device_t bus; + device_t dev; + uint32_t offset; + uint8_t *val; +} + +# +# Convenience function to write attribute memory. +# +METHOD int attr_write { + device_t bus; + device_t dev; + uint32_t offset; + uint8_t val; +} + +# +# Read the CCR register +# +METHOD int ccr_read { + device_t bus; + device_t dev; + uint32_t offset; + uint8_t *val; +} + +# +# Write the CCR register +# +METHOD int ccr_write { + device_t bus; + device_t dev; + uint32_t offset; + uint8_t val; +} |