1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SUPERIO_WINBOND_W83627HF_H
4 #define SUPERIO_WINBOND_W83627HF_H
6 #define W83627HF_FDC 0 /* Floppy */
7 #define W83627HF_PP 1 /* Parallel port */
8 #define W83627HF_SP1 2 /* Com1 */
9 #define W83627HF_SP2 3 /* Com2 */
10 #define W83627HF_KBC 5 /* PS/2 keyboard & mouse */
11 #define W83627HF_CIR 6
12 #define W83627HF_GAME_MIDI_GPIO1 7
13 #define W83627HF_GPIO2 8
14 #define W83627HF_GPIO3 9
15 #define W83627HF_ACPI 10
16 #define W83627HF_HWM 11 /* Hardware monitor */
18 /* #define W83627HF_GPIO_DEV PNP_DEV(0x2e, W83627HF_GPIO) */
19 /* #define W83627HF_XBUS_DEV PNP_DEV(0x2e, W83627HF_XBUS) */
21 #define W83627HF_GPSEL 0xf0
22 #define W83627HF_GPCFG1 0xf1
23 #define W83627HF_GPEVR 0xf2
24 #define W83627HF_GPCFG2 0xf3
25 #define W83627HF_EXTCFG 0xf4
26 #define W83627HF_IOEXT1A 0xf5
27 #define W83627HF_IOEXT1B 0xf6
28 #define W83627HF_IOEXT2A 0xf7
29 #define W83627HF_IOEXT2B 0xf8
31 #define W83627HF_GPDO_0 0x00
32 #define W83627HF_GPDI_0 0x01
33 #define W83627HF_GPDO_1 0x02
34 #define W83627HF_GPDI_1 0x03
35 #define W83627HF_GPEVEN_1 0x04
36 #define W83627HF_GPEVST_1 0x05
37 #define W83627HF_GPDO_2 0x06
38 #define W83627HF_GPDI_2 0x07
39 #define W83627HF_GPDO_3 0x08
40 #define W83627HF_GPDI_3 0x09
41 #define W83627HF_GPDO_4 0x0a
42 #define W83627HF_GPDI_4 0x0b
43 #define W83627HF_GPEVEN_4 0x0c
44 #define W83627HF_GPEVST_4 0x0d
45 #define W83627HF_GPDO_5 0x0e
46 #define W83627HF_GPDI_5 0x0f
47 #define W83627HF_GPDO_6 0x10
48 #define W83627HF_GPDO_7A 0x11
49 #define W83627HF_GPDO_7B 0x12
50 #define W83627HF_GPDO_7C 0x13
51 #define W83627HF_GPDO_7D 0x14
52 #define W83627HF_GPDI_7A 0x15
53 #define W83627HF_GPDI_7B 0x16
54 #define W83627HF_GPDI_7C 0x17
55 #define W83627HF_GPDI_7D 0x18
57 #define W83627HF_XIOCNF 0xf0
58 #define W83627HF_XIOBA1H 0xf1
59 #define W83627HF_XIOBA1L 0xf2
60 #define W83627HF_XIOSIZE1 0xf3
61 #define W83627HF_XIOBA2H 0xf4
62 #define W83627HF_XIOBA2L 0xf5
63 #define W83627HF_XIOSIZE2 0xf6
64 #define W83627HF_XMEMCNF1 0xf7
65 #define W83627HF_XMEMCNF2 0xf8
66 #define W83627HF_XMEMBAH 0xf9
67 #define W83627HF_XMEMBAL 0xfa
68 #define W83627HF_XMEMSIZE 0xfb
69 #define W83627HF_XIRQMAP1 0xfc
70 #define W83627HF_XIRQMAP2 0xfd
71 #define W83627HF_XBIMM 0xfe
72 #define W83627HF_XBBSL 0xff
74 #define W83627HF_XBCNF 0x00
75 #define W83627HF_XZCNF0 0x01
76 #define W83627HF_XZCNF1 0x02
77 #define W83627HF_XIRQC0 0x04
78 #define W83627HF_XIRQC1 0x05
79 #define W83627HF_XIRQC2 0x06
80 #define W83627HF_XIMA0 0x08
81 #define W83627HF_XIMA1 0x09
82 #define W83627HF_XIMA2 0x0a
83 #define W83627HF_XIMA3 0x0b
84 #define W83627HF_XIMD 0x0c
85 #define W83627HF_XZCNF2 0x0d
86 #define W83627HF_XZCNF3 0x0e
87 #define W83627HF_XZM0 0x0f
88 #define W83627HF_XZM1 0x10
89 #define W83627HF_XZM2 0x11
90 #define W83627HF_XZM3 0x12
91 #define W83627HF_HAP0 0x13
92 #define W83627HF_HAP1 0x14
93 #define W83627HF_XSCNF 0x15
94 #define W83627HF_XWBCNF 0x16
96 #endif /* SUPERIO_WINBOND_W83627HF_H */