| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 1998-2009 VIA Technologies, Inc. All Rights Reserved. |
|---|
| 3 | 4 | * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. |
|---|
| 4 | 5 | * Copyright 2009-2010 Jonathan Corbet <corbet@lwn.net> |
|---|
| 5 | 6 | * Copyright 2010 Florian Tobias Schandinat <FlorianSchandinat@gmx.de> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public |
|---|
| 9 | | - * License as published by the Free Software Foundation; |
|---|
| 10 | | - * either version 2, or (at your option) any later version. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 13 | | - * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even |
|---|
| 14 | | - * the implied warranty of MERCHANTABILITY or FITNESS FOR |
|---|
| 15 | | - * A PARTICULAR PURPOSE.See the GNU General Public License |
|---|
| 16 | | - * for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., |
|---|
| 21 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 22 | 7 | */ |
|---|
| 23 | 8 | |
|---|
| 24 | 9 | #ifndef __VIA_CORE_H__ |
|---|
| .. | .. |
|---|
| 62 | 47 | /* |
|---|
| 63 | 48 | * Allow subdevs to register suspend/resume hooks. |
|---|
| 64 | 49 | */ |
|---|
| 65 | | -#ifdef CONFIG_PM |
|---|
| 66 | 50 | struct viafb_pm_hooks { |
|---|
| 67 | 51 | struct list_head list; |
|---|
| 68 | 52 | int (*suspend)(void *private); |
|---|
| .. | .. |
|---|
| 72 | 56 | |
|---|
| 73 | 57 | void viafb_pm_register(struct viafb_pm_hooks *hooks); |
|---|
| 74 | 58 | void viafb_pm_unregister(struct viafb_pm_hooks *hooks); |
|---|
| 75 | | -#endif /* CONFIG_PM */ |
|---|
| 76 | 59 | |
|---|
| 77 | 60 | /* |
|---|
| 78 | 61 | * This is the global viafb "device" containing stuff needed by |
|---|