bitbang_i2c.c (4dad0a9aa818698e0735c8352bf7925a1660df6f) | bitbang_i2c.c (da8df26d2ea7eb1bfd6cc7fec37aabf6137f385d) |
---|---|
1/* 2 * Bit-Bang i2c emulation extracted from 3 * Marvell MV88W8618 / Freecom MusicPal emulation. 4 * 5 * Copyright (c) 2008 Jan Kiszka 6 * 7 * This code is licensed under the GNU GPL v2. 8 * --- 148 unchanged lines hidden (view full) --- 157 s->bus = bus; 158 s->last_data = 1; 159 s->last_clock = 1; 160 s->device_out = 1; 161} 162 163/* GPIO interface. */ 164 | 1/* 2 * Bit-Bang i2c emulation extracted from 3 * Marvell MV88W8618 / Freecom MusicPal emulation. 4 * 5 * Copyright (c) 2008 Jan Kiszka 6 * 7 * This code is licensed under the GNU GPL v2. 8 * --- 148 unchanged lines hidden (view full) --- 157 s->bus = bus; 158 s->last_data = 1; 159 s->last_clock = 1; 160 s->device_out = 1; 161} 162 163/* GPIO interface. */ 164 |
165#define TYPE_GPIO_I2C "gpio_i2c" | |
166OBJECT_DECLARE_SIMPLE_TYPE(GPIOI2CState, GPIO_I2C) 167 168struct GPIOI2CState { 169 SysBusDevice parent_obj; 170 171 MemoryRegion dummy_iomem; 172 bitbang_i2c_interface bitbang; 173 int last_level; --- 53 unchanged lines hidden --- | 165OBJECT_DECLARE_SIMPLE_TYPE(GPIOI2CState, GPIO_I2C) 166 167struct GPIOI2CState { 168 SysBusDevice parent_obj; 169 170 MemoryRegion dummy_iomem; 171 bitbang_i2c_interface bitbang; 172 int last_level; --- 53 unchanged lines hidden --- |