blob: 6c5fee072bf38afc265caebecc08f1972f5df42e [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
Ajay Dudanib01e5062011-12-03 23:23:42 -080034struct __attribute__ ((packed)) mddi_client_caps {
35 unsigned short length;
36 unsigned short type;
37 unsigned short client_id;
Dima Zavin36785e32009-01-28 17:26:43 -080038
Ajay Dudanib01e5062011-12-03 23:23:42 -080039 unsigned short protocol_ver;
40 unsigned short min_protocol_ver;
41 unsigned short data_rate_cap;
42 unsigned char interface_type_cap;
43 unsigned char num_alt_displays;
44 unsigned short postcal_data_rate;
45 unsigned short bitmap_width;
46 unsigned short bitmap_height;
47 unsigned short display_window_width;
48 unsigned short display_window_height;
49 unsigned cmap_size;
50 unsigned short cmap_rgb_width;
51 unsigned short rgb_cap;
52 unsigned char mono_cap;
53 unsigned char reserved1;
54 unsigned short ycbcr_cap;
55 unsigned short bayer_cap;
56 unsigned short alpha_cursor_planes;
57 unsigned client_feature_cap;
58 unsigned char max_video_frame_rate_cap;
59 unsigned char min_video_frame_rate_cap;
60 unsigned short min_sub_frame_rate;
61 unsigned short audio_buf_depth;
62 unsigned short audio_channel_cap;
63 unsigned short audio_sampe_rate_rap;
64 unsigned char audio_sample_res;
65 unsigned char mic_audio_sample_res;
66 unsigned short mic_sample_rate_cap;
67 unsigned char keyboard_data_fmt;
68 unsigned char pointing_device_data_fmt;
69 unsigned short content_protection_type;
70 unsigned short manufacturer_name;
71 unsigned short product_code;
72 unsigned short reserved3;
73 unsigned serial_no;
74 unsigned char week_of_manufacture;
75 unsigned char year_of_manufacture;
Dima Zavin36785e32009-01-28 17:26:43 -080076
Ajay Dudanib01e5062011-12-03 23:23:42 -080077 unsigned short crc;
Dima Zavin36785e32009-01-28 17:26:43 -080078};
79
80void mddi_remote_write(unsigned val, unsigned reg);
81struct fbcon_config *mddi_init(void);
82
Ajay Dudanib01e5062011-12-03 23:23:42 -080083#endif /* __PLATFORM_MDDI_H */