linux/drivers/video/fbdev/riva/rivafb.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __RIVAFB_H
#define __RIVAFB_H

#include <linux/fb.h>
#include <video/vga.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>

#include "riva_hw.h"

/* GGI compatibility macros */
#define NUM_SEQ_REGS
#define NUM_CRT_REGS
#define NUM_GRC_REGS
#define NUM_ATC_REGS

/* I2C */
#define DDC_SCL_READ_MASK
#define DDC_SCL_WRITE_MASK
#define DDC_SDA_READ_MASK
#define DDC_SDA_WRITE_MASK

/* holds the state of the VGA core and extended Riva hw state from riva_hw.c.
 * From KGI originally. */
struct riva_regs {};

struct riva_par;

struct riva_i2c_chan {};

struct riva_par {};

void riva_common_setup(struct riva_par *);
unsigned long riva_get_memlen(struct riva_par *);
unsigned long riva_get_maxdclk(struct riva_par *);
void riva_delete_i2c_busses(struct riva_par *par);
void riva_create_i2c_busses(struct riva_par *par);
int riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid);

#endif /* __RIVAFB_H */