| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* Geode LX framebuffer driver |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2006-2007, Advanced Micro Devices,Inc. |
|---|
| 4 | 5 | * Copyright (c) 2008 Andres Salomon <dilinger@debian.org> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 8 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 9 | | - * option) any later version. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #ifndef _LXFB_H_ |
|---|
| 12 | 8 | #define _LXFB_H_ |
|---|
| .. | .. |
|---|
| 33 | 29 | void __iomem *gp_regs; |
|---|
| 34 | 30 | void __iomem *dc_regs; |
|---|
| 35 | 31 | void __iomem *vp_regs; |
|---|
| 36 | | -#ifdef CONFIG_PM |
|---|
| 37 | 32 | int powered_down; |
|---|
| 38 | 33 | |
|---|
| 39 | 34 | /* register state, for power mgmt functionality */ |
|---|
| .. | .. |
|---|
| 54 | 49 | uint32_t hcoeff[DC_HFILT_COUNT * 2]; |
|---|
| 55 | 50 | uint32_t vcoeff[DC_VFILT_COUNT]; |
|---|
| 56 | 51 | uint32_t vp_coeff[VP_COEFF_SIZE / 4]; |
|---|
| 57 | | -#endif |
|---|
| 58 | 52 | }; |
|---|
| 59 | 53 | |
|---|
| 60 | 54 | static inline unsigned int lx_get_pitch(unsigned int xres, int bpp) |
|---|
| .. | .. |
|---|
| 68 | 62 | void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int, |
|---|
| 69 | 63 | unsigned int, unsigned int); |
|---|
| 70 | 64 | |
|---|
| 71 | | -#ifdef CONFIG_PM |
|---|
| 72 | 65 | int lx_powerdown(struct fb_info *info); |
|---|
| 73 | 66 | int lx_powerup(struct fb_info *info); |
|---|
| 74 | | -#endif |
|---|
| 75 | | - |
|---|
| 76 | 67 | |
|---|
| 77 | 68 | /* Graphics Processor registers (table 6-29 from the data book) */ |
|---|
| 78 | 69 | enum gp_registers { |
|---|