sed1356var.h revision 1.3.62.1 1 1.3.62.1 yamt /* $NetBSD: sed1356var.h,v 1.3.62.1 2009/06/20 07:20:04 yamt Exp $ */
2 1.1 toshii
3 1.1 toshii /*-
4 1.1 toshii * Copyright (c) 1999-2001
5 1.1 toshii * Shin Takemura and PocketBSD Project. All rights reserved.
6 1.1 toshii *
7 1.1 toshii * Redistribution and use in source and binary forms, with or without
8 1.1 toshii * modification, are permitted provided that the following conditions
9 1.1 toshii * are met:
10 1.1 toshii * 1. Redistributions of source code must retain the above copyright
11 1.1 toshii * notice, this list of conditions and the following disclaimer.
12 1.1 toshii * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 toshii * notice, this list of conditions and the following disclaimer in the
14 1.1 toshii * documentation and/or other materials provided with the distribution.
15 1.1 toshii * 3. All advertising materials mentioning features or use of this software
16 1.1 toshii * must display the following acknowledgement:
17 1.1 toshii * This product includes software developed by the PocketBSD project
18 1.1 toshii * and its contributors.
19 1.1 toshii * 4. Neither the name of the project nor the names of its contributors
20 1.1 toshii * may be used to endorse or promote products derived from this software
21 1.1 toshii * without specific prior written permission.
22 1.1 toshii *
23 1.3 peter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24 1.1 toshii * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.1 toshii * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.3 peter * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27 1.1 toshii * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.1 toshii * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.1 toshii * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.1 toshii * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.1 toshii * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.1 toshii * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.1 toshii * SUCH DAMAGE.
34 1.1 toshii */
35 1.1 toshii
36 1.1 toshii #include <dev/hpc/hpcfbio.h>
37 1.1 toshii
38 1.1 toshii struct sed1356_softc {
39 1.3.62.1 yamt device_t sc_dev;
40 1.1 toshii bus_space_tag_t sc_iot;
41 1.1 toshii bus_space_handle_t sc_regh;
42 1.1 toshii struct sa11x0_softc *sc_parent;
43 1.1 toshii
44 1.1 toshii struct hpcfb_fbconf sc_fbconf;
45 1.1 toshii struct hpcfb_dspconf sc_dspconf;
46 1.1 toshii
47 1.1 toshii void *sc_powerhook; /* power management hook */
48 1.1 toshii int sc_powerstate;
49 1.1 toshii #define PWRSTAT_SUSPEND (1<<0)
50 1.1 toshii #define PWRSTAT_VIDEOOFF (1<<1)
51 1.1 toshii #define PWRSTAT_LCD (1<<2)
52 1.1 toshii #define PWRSTAT_BACKLIGHT (1<<3)
53 1.1 toshii #define PWRSTAT_ALL (0xffffffff)
54 1.1 toshii int sc_lcd_inited;
55 1.1 toshii #define BACKLIGHT_INITED (1<<0)
56 1.1 toshii #define BRIGHTNESS_INITED (1<<1)
57 1.1 toshii #define CONTRAST_INITED (1<<2)
58 1.1 toshii int sc_brightness;
59 1.1 toshii int sc_brightness_save;
60 1.1 toshii int sc_max_brightness;
61 1.1 toshii int sc_contrast;
62 1.1 toshii int sc_max_contrast;
63 1.1 toshii
64 1.1 toshii };
65 1.1 toshii
66 1.1 toshii void sed1356_init_brightness(struct sed1356_softc *, int);
67 1.1 toshii void sed1356_init_contrast(struct sed1356_softc *, int);
68 1.2 peter void sed1356_toggle_lcdlight(void);
69