mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
vga: virtio fixes, bitbang i2c asan fix, install ati vgabios.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJdHG0YAAoJEEy22O7T6HE46qAP/1JrYFrl6TolodRhgijmwLsD +7NCxEnYdSQYZUT/GkYIrT3/uHlCrM5UcV/fuTcKULJxGVoEK2bjxG+5dxmy9Cnf j6Urs7Trnb8Ygl2Wx6HYMEwNkkUxmgdyxbmWhElBjVMdOhrGaykKgLRoGITebcGH pDlFhU0J/XwBa6PL4itCeMwRM9ITPYKQ/g+x25QfgyvzZESNJ2zc1WA1eRPhvWSz EfrXa+diV2vyrdG3BFl7IJ/uO/xFFccXSoW6NhvKF+R5NZ/2agzpOF1h5LVuQxLI fGGUqsTcJ8r2/VaXMZD9VmzlCo5V92vpy4Cb7mCzSR8xjt04Utv/RORPlIC5Ierl a1pqVdrc7nEAaS/cvDV9ew0/zDtW97ScxnMhTWN1zDAEEdmhg1v5Tj7/F/JYlZ3x MErytHox8pmbpFgLnazqRepp79W9wjAQjKgHZ8UgnFh+M2IbQ6xo/BfIFUVCGtzb d07ooaZkOxC+fXE7bma4rWmsnSNfTRv83zWHjgbUukTAg7EkkiDlLldifqSnez4G Z6583/xR80SQF9IFUJ8INLKIckxOCzcz2CZfuNsW4IhBdzBpny3YOFwLw+EIFNb5 prVi8xmyPP8UbklK51DbZFl8ILncdywUfW8TuO91noELz/GqJH92uNKR/mmFowsq XhkQc2T2xo7trVRWw+vs =Grh1 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/vga-20190703-pull-request' into staging vga: virtio fixes, bitbang i2c asan fix, install ati vgabios. # gpg: Signature made Wed 03 Jul 2019 09:53:44 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/vga-20190703-pull-request: Add ati vgabios to INSTALL_BLOBS. hw/i2c/bitbang_i2c: Use in-place rather than malloc'd bitbang_i2c_interface struct virtio-gpu: check if the resource already exists in virtio_gpu_load() virtio-gpu: fix unmap in error path Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
f0577c616c
9 changed files with 61 additions and 60 deletions
|
@ -8,7 +8,43 @@ typedef struct bitbang_i2c_interface bitbang_i2c_interface;
|
|||
#define BITBANG_I2C_SDA 0
|
||||
#define BITBANG_I2C_SCL 1
|
||||
|
||||
bitbang_i2c_interface *bitbang_i2c_init(I2CBus *bus);
|
||||
typedef enum bitbang_i2c_state {
|
||||
STOPPED = 0,
|
||||
SENDING_BIT7,
|
||||
SENDING_BIT6,
|
||||
SENDING_BIT5,
|
||||
SENDING_BIT4,
|
||||
SENDING_BIT3,
|
||||
SENDING_BIT2,
|
||||
SENDING_BIT1,
|
||||
SENDING_BIT0,
|
||||
WAITING_FOR_ACK,
|
||||
RECEIVING_BIT7,
|
||||
RECEIVING_BIT6,
|
||||
RECEIVING_BIT5,
|
||||
RECEIVING_BIT4,
|
||||
RECEIVING_BIT3,
|
||||
RECEIVING_BIT2,
|
||||
RECEIVING_BIT1,
|
||||
RECEIVING_BIT0,
|
||||
SENDING_ACK,
|
||||
SENT_NACK
|
||||
} bitbang_i2c_state;
|
||||
|
||||
struct bitbang_i2c_interface {
|
||||
I2CBus *bus;
|
||||
bitbang_i2c_state state;
|
||||
int last_data;
|
||||
int last_clock;
|
||||
int device_out;
|
||||
uint8_t buffer;
|
||||
int current_addr;
|
||||
};
|
||||
|
||||
/**
|
||||
* bitbang_i2c_init: in-place initialize the bitbang_i2c_interface struct
|
||||
*/
|
||||
void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus);
|
||||
int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct PPC4xxI2CState {
|
|||
I2CBus *bus;
|
||||
qemu_irq irq;
|
||||
MemoryRegion iomem;
|
||||
bitbang_i2c_interface *bitbang;
|
||||
bitbang_i2c_interface bitbang;
|
||||
int mdidx;
|
||||
uint8_t mdata[4];
|
||||
uint8_t lmadr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue