efb_edid.h revision 1450
32N/A/*
32N/A */
32N/A
32N/A/*
32N/A * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
32N/A */
32N/A
32N/A#ifndef EFB_EDID_H
32N/A#define EFB_EDID_H
32N/A
32N/A#include <sys/types.h>
32N/A
32N/A#include "efb_i2c.h"
32N/A
32N/A
32N/A/*
32N/A * Functions used for extracting EDID information from a monitor. These
32N/A * functions could easily be modified or made more generic.
32N/A *
32N/A * Caller should provide a vector of function calls which can
32N/A * be called to perform the following low-level functions. See i2c.h
32N/A * for details.
32N/A *
32N/A *
32N/A * The function efb_read_edid() will return the edid data as retrieved from
32N/A * the monitor. This function will return I2C_OK on success.
32N/A *
32N/A * Caller should use mutex locking to ensure that two threads do not
32N/A * attempt to simultaneously access the monitor. The regular device
32N/A * mutex should usually not be used for this purpose if avoidable, as this
32N/A * protocol can take a considerable amount of time to execute.
32N/A *
32N/A * This call will fail on some monitors if sync is not active. In these
32N/A * cases, the caller should activate sync and try again.
32N/A *
32N/A */
32N/A
32N/Aextern int efb_read_edid(efb_private_t *efb_priv, int port, uint8_t *data,
32N/A uint_t *len);
32N/A
32N/A
32N/A#endif /* EFB_EDID_H */
32N/A