summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/fb_if.h
blob: 29d2b66ae071dbc72327ad03988757b512dbf81b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from source file
 *   freebsd-org/sys/dev/fb/fb_if.m
 * with
 *   makeobjops.awk
 *
 * See the source file for legal information
 */


#ifndef _fb_if_h_
#define _fb_if_h_

/** @brief Unique descriptor for the FB_PIN_MAX() method */
extern struct kobjop_desc fb_pin_max_desc;
/** @brief A function implementing the FB_PIN_MAX() method */
typedef int fb_pin_max_t(device_t dev, int *npins);

static __inline int FB_PIN_MAX(device_t dev, int *npins)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,fb_pin_max);
	rc = ((fb_pin_max_t *) _m)(dev, npins);
	return (rc);
}

/** @brief Unique descriptor for the FB_GETINFO() method */
extern struct kobjop_desc fb_getinfo_desc;
/** @brief A function implementing the FB_GETINFO() method */
typedef struct fb_info * fb_getinfo_t(device_t dev);

static __inline struct fb_info * FB_GETINFO(device_t dev)
{
	kobjop_t _m;
	struct fb_info * rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,fb_getinfo);
	rc = ((fb_getinfo_t *) _m)(dev);
	return (rc);
}

#endif /* _fb_if_h_ */