Revision 9e315fa9
b/hw/ide.c | ||
---|---|---|
3071 | 3071 |
ide_reset(s->ide); |
3072 | 3072 |
} |
3073 | 3073 |
|
3074 |
static uint8_t md_attr_read(void *opaque, uint16_t at)
|
|
3074 |
static uint8_t md_attr_read(void *opaque, uint32_t at)
|
|
3075 | 3075 |
{ |
3076 | 3076 |
struct md_s *s = (struct md_s *) opaque; |
3077 | 3077 |
if (at < s->attr_base) { |
... | ... | |
3104 | 3104 |
return 0; |
3105 | 3105 |
} |
3106 | 3106 |
|
3107 |
static void md_attr_write(void *opaque, uint16_t at, uint8_t value)
|
|
3107 |
static void md_attr_write(void *opaque, uint32_t at, uint8_t value)
|
|
3108 | 3108 |
{ |
3109 | 3109 |
struct md_s *s = (struct md_s *) opaque; |
3110 | 3110 |
at -= s->attr_base; |
... | ... | |
3135 | 3135 |
} |
3136 | 3136 |
} |
3137 | 3137 |
|
3138 |
static uint16_t md_common_read(void *opaque, uint16_t at)
|
|
3138 |
static uint16_t md_common_read(void *opaque, uint32_t at)
|
|
3139 | 3139 |
{ |
3140 | 3140 |
struct md_s *s = (struct md_s *) opaque; |
3141 | 3141 |
uint16_t ret; |
... | ... | |
3194 | 3194 |
return 0; |
3195 | 3195 |
} |
3196 | 3196 |
|
3197 |
static void md_common_write(void *opaque, uint16_t at, uint16_t value)
|
|
3197 |
static void md_common_write(void *opaque, uint32_t at, uint16_t value)
|
|
3198 | 3198 |
{ |
3199 | 3199 |
struct md_s *s = (struct md_s *) opaque; |
3200 | 3200 |
at -= s->io_base; |
b/vl.h | ||
---|---|---|
1552 | 1552 |
int cis_len; |
1553 | 1553 |
|
1554 | 1554 |
/* Only valid if attached */ |
1555 |
uint8_t (*attr_read)(void *state, uint16_t address);
|
|
1556 |
void (*attr_write)(void *state, uint16_t address, uint8_t value);
|
|
1557 |
uint16_t (*common_read)(void *state, uint16_t address);
|
|
1558 |
void (*common_write)(void *state, uint16_t address, uint16_t value);
|
|
1559 |
uint16_t (*io_read)(void *state, uint16_t address);
|
|
1560 |
void (*io_write)(void *state, uint16_t address, uint16_t value);
|
|
1555 |
uint8_t (*attr_read)(void *state, uint32_t address);
|
|
1556 |
void (*attr_write)(void *state, uint32_t address, uint8_t value);
|
|
1557 |
uint16_t (*common_read)(void *state, uint32_t address);
|
|
1558 |
void (*common_write)(void *state, uint32_t address, uint16_t value);
|
|
1559 |
uint16_t (*io_read)(void *state, uint32_t address);
|
|
1560 |
void (*io_write)(void *state, uint32_t address, uint16_t value);
|
|
1561 | 1561 |
}; |
1562 | 1562 |
|
1563 | 1563 |
#define CISTPL_DEVICE 0x01 /* 5V Device Information Tuple */ |
Also available in: Unified diff