1*39cfddd2SFrançois Tigeot /*
2*39cfddd2SFrançois Tigeot * Copyright (c) 2017 François Tigeot <ftigeot@wolfpond.org>
3*39cfddd2SFrançois Tigeot * All rights reserved.
4*39cfddd2SFrançois Tigeot *
5*39cfddd2SFrançois Tigeot * Redistribution and use in source and binary forms, with or without
6*39cfddd2SFrançois Tigeot * modification, are permitted provided that the following conditions
7*39cfddd2SFrançois Tigeot * are met:
8*39cfddd2SFrançois Tigeot * 1. Redistributions of source code must retain the above copyright
9*39cfddd2SFrançois Tigeot * notice unmodified, this list of conditions, and the following
10*39cfddd2SFrançois Tigeot * disclaimer.
11*39cfddd2SFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright
12*39cfddd2SFrançois Tigeot * notice, this list of conditions and the following disclaimer in the
13*39cfddd2SFrançois Tigeot * documentation and/or other materials provided with the distribution.
14*39cfddd2SFrançois Tigeot *
15*39cfddd2SFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*39cfddd2SFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*39cfddd2SFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*39cfddd2SFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*39cfddd2SFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*39cfddd2SFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*39cfddd2SFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*39cfddd2SFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*39cfddd2SFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*39cfddd2SFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*39cfddd2SFrançois Tigeot */
26*39cfddd2SFrançois Tigeot
27*39cfddd2SFrançois Tigeot #ifndef _LINUX_VGAARB_H_
28*39cfddd2SFrançois Tigeot #define _LINUX_VGAARB_H_
29*39cfddd2SFrançois Tigeot
30*39cfddd2SFrançois Tigeot #define VGA_RSRC_LEGACY_IO 0x01
31*39cfddd2SFrançois Tigeot
32*39cfddd2SFrançois Tigeot struct pci_dev;
33*39cfddd2SFrançois Tigeot
34*39cfddd2SFrançois Tigeot static inline int
vga_get_uninterruptible(struct pci_dev * pdev,unsigned int rsrc)35*39cfddd2SFrançois Tigeot vga_get_uninterruptible(struct pci_dev *pdev, unsigned int rsrc)
36*39cfddd2SFrançois Tigeot {
37*39cfddd2SFrançois Tigeot /* XXX: not implemented */
38*39cfddd2SFrançois Tigeot return 0;
39*39cfddd2SFrançois Tigeot }
40*39cfddd2SFrançois Tigeot
41*39cfddd2SFrançois Tigeot static inline void
vga_put(struct pci_dev * pdev,unsigned int rsrc)42*39cfddd2SFrançois Tigeot vga_put(struct pci_dev *pdev, unsigned int rsrc)
43*39cfddd2SFrançois Tigeot {
44*39cfddd2SFrançois Tigeot /* XXX: not implemented */
45*39cfddd2SFrançois Tigeot }
46*39cfddd2SFrançois Tigeot
47*39cfddd2SFrançois Tigeot #endif /* _LINUX_VGAARB_H_ */
48