Deleted Added
full compact
ppcreg.h (39135) ppcreg.h (40784)
1/*-
2 * Copyright (c) 1997 Nicolas Souchu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997 Nicolas Souchu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: ppcreg.h,v 1.3 1998/08/03 19:14:33 msmith Exp $
26 * $Id: ppcreg.h,v 1.4 1998/09/13 18:26:44 nsouch Exp $
27 *
28 */
29#ifndef __PPCREG_H
30#define __PPCREG_H
31
32/*
33 * Parallel Port Chipset type.
34 */
27 *
28 */
29#ifndef __PPCREG_H
30#define __PPCREG_H
31
32/*
33 * Parallel Port Chipset type.
34 */
35#define SMC_LIKE 0x0
36#define SMC_37C665GT 0x1
37#define SMC_37C666GT 0x2
38#define NS_PC87332 0x3
39#define NS_PC87306 0x4
40#define INTEL_820191AA 0x5 /* XXX not implemented */
41#define GENERIC 0x6
42#define WINB_W83877F 0x7
43#define WINB_W83877AF 0x8
44#define WINB_UNKNOWN 0x9
35#define SMC_LIKE 0
36#define SMC_37C665GT 1
37#define SMC_37C666GT 2
38#define NS_PC87332 3
39#define NS_PC87306 4
40#define INTEL_820191AA 5 /* XXX not implemented */
41#define GENERIC 6
42#define WINB_W83877F 7
43#define WINB_W83877AF 8
44#define WINB_UNKNOWN 9
45#define NS_PC87334 10
45
46/*
47 * Generic structure to hold parallel port chipset info.
48 */
49struct ppc_data {
50
51 int ppc_unit;
52 int ppc_type;

--- 42 unchanged lines hidden (view full) ---

95 */
96
97#define PC873_FER 0x00
98#define PC873_PPENABLE (1<<0)
99#define PC873_FAR 0x01
100#define PC873_PTR 0x02
101#define PC873_CFGLOCK (1<<6)
102#define PC873_EPPRDIR (1<<7)
46
47/*
48 * Generic structure to hold parallel port chipset info.
49 */
50struct ppc_data {
51
52 int ppc_unit;
53 int ppc_type;

--- 42 unchanged lines hidden (view full) ---

96 */
97
98#define PC873_FER 0x00
99#define PC873_PPENABLE (1<<0)
100#define PC873_FAR 0x01
101#define PC873_PTR 0x02
102#define PC873_CFGLOCK (1<<6)
103#define PC873_EPPRDIR (1<<7)
104#define PC873_EXTENDED (1<<7)
105#define PC873_LPTBIRQ7 (1<<3)
103#define PC873_FCR 0x03
104#define PC873_ZWS (1<<5)
105#define PC873_ZWSPWDN (1<<6)
106#define PC873_PCR 0x04
107#define PC873_EPPEN (1<<0)
108#define PC873_EPP19 (1<<1)
109#define PC873_ECPEN (1<<2)
110#define PC873_ECPCLK (1<<3)
111#define PC873_PMC 0x06
112#define PC873_TUP 0x07
113#define PC873_SID 0x08
106#define PC873_FCR 0x03
107#define PC873_ZWS (1<<5)
108#define PC873_ZWSPWDN (1<<6)
109#define PC873_PCR 0x04
110#define PC873_EPPEN (1<<0)
111#define PC873_EPP19 (1<<1)
112#define PC873_ECPEN (1<<2)
113#define PC873_ECPCLK (1<<3)
114#define PC873_PMC 0x06
115#define PC873_TUP 0x07
116#define PC873_SID 0x08
117#define PC873_PNP0 0x1b
118#define PC873_PNP1 0x1c
119#define PC873_LPTBA 0x19
114
115/*
116 * Register defines for the SMC FDC37C66xGT parts
117 */
118
119/* Init codes */
120#define SMC665_iCODE 0x55
121#define SMC666_iCODE 0x44

--- 48 unchanged lines hidden ---
120
121/*
122 * Register defines for the SMC FDC37C66xGT parts
123 */
124
125/* Init codes */
126#define SMC665_iCODE 0x55
127#define SMC666_iCODE 0x44

--- 48 unchanged lines hidden ---