From 47b43a1f414c5b3eb9eb7502d0b0be0d134259ba Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 18 Mar 2013 17:36:02 +0100 Subject: hw: move private headers to hw/ subdirectories. Many headers are used only in a single directory. These can be kept in hw/. Signed-off-by: Paolo Bonzini --- hw/i2c/bitbang_i2c.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hw/i2c/bitbang_i2c.h (limited to 'hw/i2c/bitbang_i2c.h') diff --git a/hw/i2c/bitbang_i2c.h b/hw/i2c/bitbang_i2c.h new file mode 100644 index 0000000000..2866ac351b --- /dev/null +++ b/hw/i2c/bitbang_i2c.h @@ -0,0 +1,14 @@ +#ifndef BITBANG_I2C_H +#define BITBANG_I2C_H + +#include "hw/i2c/i2c.h" + +typedef struct bitbang_i2c_interface bitbang_i2c_interface; + +#define BITBANG_I2C_SDA 0 +#define BITBANG_I2C_SCL 1 + +bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus); +int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level); + +#endif -- cgit v1.2.3