LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Macros | Functions
xenos_edid.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time/time.h>
#include <xenon_smc/xenon_smc.h>
#include <debug.h>
#include "xenos_edid.h"
Include dependency graph for xenos_edid.c:

Go to the source code of this file.

Macros

#define MAX_EDID_EXT_NUM   4
 
#define HDMI_IDENTIFIER   0x000C03
 
#define VENDOR_BLOCK   0x03
 

Functions

int xenos_do_probe_ddc_edid (unsigned char *buf, int len)
 
struct edidxenos_get_edid ()
 
BOOL xenos_detect_hdmi_monitor (struct edid *edid)
 

Macro Definition Documentation

◆ HDMI_IDENTIFIER

#define HDMI_IDENTIFIER   0x000C03

Definition at line 255 of file xenos_edid.c.

◆ MAX_EDID_EXT_NUM

#define MAX_EDID_EXT_NUM   4

Definition at line 41 of file xenos_edid.c.

◆ VENDOR_BLOCK

#define VENDOR_BLOCK   0x03

Definition at line 256 of file xenos_edid.c.

Function Documentation

◆ xenos_detect_hdmi_monitor()

BOOL xenos_detect_hdmi_monitor ( struct edid edid)

drm_detect_hdmi_monitor - detect whether monitor is hdmi. @edid: monitor EDID information

Parse the CEA extension according to CEA-861-B. Return true if HDMI, false if not or unknown.

Definition at line 264 of file xenos_edid.c.

◆ xenos_do_probe_ddc_edid()

int xenos_do_probe_ddc_edid ( unsigned char *  buf,
int  len 
)

Get EDID information via I2C.

Parameters
adapter: i2c device adaptor
buf: EDID data buffer to be filled
len: EDID data buffer length
Returns
0 on success or -1 on failure.

Try to fetch EDID information by calling i2c driver function.

Definition at line 172 of file xenos_edid.c.

◆ xenos_get_edid()

struct edid * xenos_get_edid ( )

drm_get_edid - get EDID data, if available @connector: connector we're probing @adapter: i2c adapter to use for DDC

Poke the given connector's i2c channel to grab EDID data if possible.

Return edid data or NULL if we couldn't find any.

Definition at line 209 of file xenos_edid.c.