mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 06:39:59 +08:00
TDA19988: Port to RTEMS
This commit is contained in:

committed by
Christian Mauderer

parent
b7458b0915
commit
2cf7b6b3e4
92
rtemsbsd/include/rtems/bsd/local/clknode_if.h
Normal file
92
rtemsbsd/include/rtems/bsd/local/clknode_if.h
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* This file is @generated automatically.
|
||||
* Do not modify anything in here by hand.
|
||||
*
|
||||
* Created from source file
|
||||
* freebsd-org/sys/dev/extres/clk/clknode_if.m
|
||||
* with
|
||||
* makeobjops.awk
|
||||
*
|
||||
* See the source file for legal information
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _clknode_if_h_
|
||||
#define _clknode_if_h_
|
||||
|
||||
|
||||
struct clknode;
|
||||
|
||||
/** @brief Unique descriptor for the CLKNODE_INIT() method */
|
||||
extern struct kobjop_desc clknode_init_desc;
|
||||
/** @brief A function implementing the CLKNODE_INIT() method */
|
||||
typedef int clknode_init_t(struct clknode *clk, device_t dev);
|
||||
|
||||
static __inline int CLKNODE_INIT(struct clknode *clk, device_t dev)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)clk)->ops,clknode_init);
|
||||
rc = ((clknode_init_t *) _m)(clk, dev);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the CLKNODE_RECALC_FREQ() method */
|
||||
extern struct kobjop_desc clknode_recalc_freq_desc;
|
||||
/** @brief A function implementing the CLKNODE_RECALC_FREQ() method */
|
||||
typedef int clknode_recalc_freq_t(struct clknode *clk, uint64_t *freq);
|
||||
|
||||
static __inline int CLKNODE_RECALC_FREQ(struct clknode *clk, uint64_t *freq)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)clk)->ops,clknode_recalc_freq);
|
||||
rc = ((clknode_recalc_freq_t *) _m)(clk, freq);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the CLKNODE_SET_FREQ() method */
|
||||
extern struct kobjop_desc clknode_set_freq_desc;
|
||||
/** @brief A function implementing the CLKNODE_SET_FREQ() method */
|
||||
typedef int clknode_set_freq_t(struct clknode *clk, uint64_t fin,
|
||||
uint64_t *fout, int flags, int *done);
|
||||
|
||||
static __inline int CLKNODE_SET_FREQ(struct clknode *clk, uint64_t fin,
|
||||
uint64_t *fout, int flags, int *done)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)clk)->ops,clknode_set_freq);
|
||||
rc = ((clknode_set_freq_t *) _m)(clk, fin, fout, flags, done);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the CLKNODE_SET_GATE() method */
|
||||
extern struct kobjop_desc clknode_set_gate_desc;
|
||||
/** @brief A function implementing the CLKNODE_SET_GATE() method */
|
||||
typedef int clknode_set_gate_t(struct clknode *clk, bool enable);
|
||||
|
||||
static __inline int CLKNODE_SET_GATE(struct clknode *clk, bool enable)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)clk)->ops,clknode_set_gate);
|
||||
rc = ((clknode_set_gate_t *) _m)(clk, enable);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the CLKNODE_SET_MUX() method */
|
||||
extern struct kobjop_desc clknode_set_mux_desc;
|
||||
/** @brief A function implementing the CLKNODE_SET_MUX() method */
|
||||
typedef int clknode_set_mux_t(struct clknode *clk, int idx);
|
||||
|
||||
static __inline int CLKNODE_SET_MUX(struct clknode *clk, int idx)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)clk)->ops,clknode_set_mux);
|
||||
rc = ((clknode_set_mux_t *) _m)(clk, idx);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
#endif /* _clknode_if_h_ */
|
71
rtemsbsd/include/rtems/bsd/local/hdmi_if.h
Normal file
71
rtemsbsd/include/rtems/bsd/local/hdmi_if.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* This file is @generated automatically.
|
||||
* Do not modify anything in here by hand.
|
||||
*
|
||||
* Created from source file
|
||||
* freebsd-org/sys/dev/hdmi/hdmi_if.m
|
||||
* with
|
||||
* makeobjops.awk
|
||||
*
|
||||
* See the source file for legal information
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _hdmi_if_h_
|
||||
#define _hdmi_if_h_
|
||||
|
||||
|
||||
#include <sys/eventhandler.h>
|
||||
|
||||
typedef void (*hdmi_event_hook)(void *, device_t, int);
|
||||
EVENTHANDLER_DECLARE(hdmi_event, hdmi_event_hook);
|
||||
|
||||
#define HDMI_EVENT_CONNECTED 0
|
||||
|
||||
/** @brief Unique descriptor for the HDMI_GET_EDID() method */
|
||||
extern struct kobjop_desc hdmi_get_edid_desc;
|
||||
/** @brief A function implementing the HDMI_GET_EDID() method */
|
||||
typedef int hdmi_get_edid_t(device_t dev, uint8_t **edid,
|
||||
uint32_t *edid_length);
|
||||
|
||||
static __inline int HDMI_GET_EDID(device_t dev, uint8_t **edid,
|
||||
uint32_t *edid_length)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)dev)->ops,hdmi_get_edid);
|
||||
rc = ((hdmi_get_edid_t *) _m)(dev, edid, edid_length);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the HDMI_SET_VIDEOMODE() method */
|
||||
extern struct kobjop_desc hdmi_set_videomode_desc;
|
||||
/** @brief A function implementing the HDMI_SET_VIDEOMODE() method */
|
||||
typedef int hdmi_set_videomode_t(device_t dev,
|
||||
const struct videomode *videomode);
|
||||
|
||||
static __inline int HDMI_SET_VIDEOMODE(device_t dev,
|
||||
const struct videomode *videomode)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)dev)->ops,hdmi_set_videomode);
|
||||
rc = ((hdmi_set_videomode_t *) _m)(dev, videomode);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/** @brief Unique descriptor for the HDMI_ENABLE() method */
|
||||
extern struct kobjop_desc hdmi_enable_desc;
|
||||
/** @brief A function implementing the HDMI_ENABLE() method */
|
||||
typedef int hdmi_enable_t(device_t dev, int onoff);
|
||||
|
||||
static __inline int HDMI_ENABLE(device_t dev, int onoff)
|
||||
{
|
||||
kobjop_t _m;
|
||||
int rc;
|
||||
KOBJOPLOOKUP(((kobj_t)dev)->ops,hdmi_enable);
|
||||
rc = ((hdmi_enable_t *) _m)(dev, onoff);
|
||||
return (rc);
|
||||
}
|
||||
|
||||
#endif /* _hdmi_if_h_ */
|
0
rtemsbsd/include/rtems/bsd/local/opt_videomode.h
Normal file
0
rtemsbsd/include/rtems/bsd/local/opt_videomode.h
Normal file
Reference in New Issue
Block a user