diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2017-09-11 23:47:49 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2017-09-11 23:47:49 +0000 |
| commit | 813c1b27fe0b9bf79f2ef61c8c58430cb33fb34a (patch) | |
| tree | f3faa3ff293ce3b43d5c824c65d12c83585c13ba | |
| parent | 21a8b3869820c78c716c170b63839906e74db591 (diff) | |
Notes
| -rw-r--r-- | sys/dev/iicbus/iicbus_if.m | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/dev/iicbus/iicbus_if.m b/sys/dev/iicbus/iicbus_if.m index 3f5816835c54..a52fda838505 100644 --- a/sys/dev/iicbus/iicbus_if.m +++ b/sys/dev/iicbus/iicbus_if.m @@ -32,6 +32,12 @@ INTERFACE iicbus; CODE { + static int iicbus_nosupport(void) + { + + return (ENODEV); + } + static u_int iicbus_default_frequency(device_t bus, u_char speed) { @@ -69,7 +75,7 @@ METHOD int repeated_start { device_t dev; u_char slave; int timeout; -}; +} DEFAULT iicbus_nosupport; # # Send START condition @@ -78,14 +84,14 @@ METHOD int start { device_t dev; u_char slave; int timeout; -}; +} DEFAULT iicbus_nosupport; # # Send STOP condition # METHOD int stop { device_t dev; -}; +} DEFAULT iicbus_nosupport; # # Read from I2C bus @@ -97,7 +103,7 @@ METHOD int read { int *bytes; int last; int delay; -}; +} DEFAULT iicbus_nosupport; # # Write to the I2C bus @@ -108,7 +114,7 @@ METHOD int write { int len; int *bytes; int timeout; -}; +} DEFAULT iicbus_nosupport; # # Reset I2C bus |
