blob: d1d3a772d4c449b1b68af69b6ba4d802a08b5831 [file] [log] [blame]
Dima Zavin36785e32009-01-28 17:26:43 -08001/*
2 * Copyright (c) 2008, Google Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#ifndef __PLATFORM_MDDI_H
30#define __PLATFORM_MDDI_H
31
32struct fbcon_config;
33
34struct __attribute__((packed)) mddi_client_caps
35{
36 unsigned short length;
37 unsigned short type;
38 unsigned short client_id;
39
40 unsigned short protocol_ver;
41 unsigned short min_protocol_ver;
42 unsigned short data_rate_cap;
43 unsigned char interface_type_cap;
44 unsigned char num_alt_displays;
45 unsigned short postcal_data_rate;
46 unsigned short bitmap_width;
47 unsigned short bitmap_height;
48 unsigned short display_window_width;
49 unsigned short display_window_height;
50 unsigned cmap_size;
51 unsigned short cmap_rgb_width;
52 unsigned short rgb_cap;
53 unsigned char mono_cap;
54 unsigned char reserved1;
55 unsigned short ycbcr_cap;
56 unsigned short bayer_cap;
57 unsigned short alpha_cursor_planes;
58 unsigned client_feature_cap;
59 unsigned char max_video_frame_rate_cap;
60 unsigned char min_video_frame_rate_cap;
61 unsigned short min_sub_frame_rate;
62 unsigned short audio_buf_depth;
63 unsigned short audio_channel_cap;
64 unsigned short audio_sampe_rate_rap;
65 unsigned char audio_sample_res;
66 unsigned char mic_audio_sample_res;
67 unsigned short mic_sample_rate_cap;
68 unsigned char keyboard_data_fmt;
69 unsigned char pointing_device_data_fmt;
70 unsigned short content_protection_type;
71 unsigned short manufacturer_name;
72 unsigned short product_code;
73 unsigned short reserved3;
74 unsigned serial_no;
75 unsigned char week_of_manufacture;
76 unsigned char year_of_manufacture;
77
78 unsigned short crc;
79};
80
81void mddi_remote_write(unsigned val, unsigned reg);
82struct fbcon_config *mddi_init(void);
83
84#endif /* __PLATFORM_MDDI_H */