12 #define _GET_INDEX_REG(x) ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb7, (x))
30 }
while ((pass < 5) && (
count++ < 0x10000));
32 return val & 1 ? 1 : 0;
50 }
while ((pass < 5) && (
count++ < 0x10000));
52 return val & 1 ? 1 : 0;
60 for (i = 0; i < 0x10000; i++) {
61 ujcrb7 = ((clock & 0x01) ? 0 : 1);
74 for (i = 0; i < 0x10000; i++) {
75 ujcrb7 = ((data & 0x01) ? 0 : 1) << 2;
uint8_t ast_get_index_reg_mask(struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask)
void ast_set_index_reg_mask(struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask, uint8_t val)
static struct ast_private * ast
static int get_data(unsigned int bus)
static void set_data(unsigned int bus, int data)
int ast_software_i2c_read(struct ast_private *ast_priv, uint8_t edid[128])
static struct software_i2c_ops ast_ops
static int get_clock(unsigned int bus)
static void set_clock(unsigned int bus, int clock)
#define _GET_INDEX_REG(x)
struct software_i2c_ops * software_i2c[SOFTWARE_I2C_MAX_BUS]
static int i2c_read_bytes(unsigned int bus, uint8_t slave, uint8_t reg, uint8_t *data, int len)
Read multi-bytes with two segments in one frame.
void(* set_sda)(unsigned int bus, int high)