ppcreg.h (50477) | ppcreg.h (55939) |
---|---|
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 * $FreeBSD: head/sys/dev/ppc/ppcreg.h 50477 1999-08-28 01:08:13Z peter $ | 26 * $FreeBSD: head/sys/dev/ppc/ppcreg.h 55939 2000-01-14 00:18:06Z nsouch $ |
27 * 28 */ 29#ifndef __PPCREG_H 30#define __PPCREG_H 31 32/* 33 * Parallel Port Chipset type. 34 */ --- 5 unchanged lines hidden (view full) --- 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 46 47/* | 27 * 28 */ 29#ifndef __PPCREG_H 30#define __PPCREG_H 31 32/* 33 * Parallel Port Chipset type. 34 */ --- 5 unchanged lines hidden (view full) --- 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 46 47/* |
48 * Parallel Port Chipset Type. SMC versus GENERIC (others) 49 */ 50#define PPC_TYPE_SMCLIKE 0 51#define PPC_TYPE_GENERIC 1 52 53/* |
|
48 * Generic structure to hold parallel port chipset info. 49 */ 50struct ppc_data { 51 52 int ppc_unit; | 54 * Generic structure to hold parallel port chipset info. 55 */ 56struct ppc_data { 57 58 int ppc_unit; |
53 int ppc_type; | 59 int ppc_model; /* chipset model if detected */ 60 int ppc_type; /* generic or smclike chipset type */ |
54 55 int ppc_mode; /* chipset current mode */ 56 int ppc_avm; /* chipset available modes */ 57 58#define PPC_IRQ_NONE 0x0 59#define PPC_IRQ_nACK 0x1 60#define PPC_IRQ_DMA 0x2 61#define PPC_IRQ_FIFO 0x4 --- 16 unchanged lines hidden (view full) --- 78#define PPC_PWORD_8 0x10 79#define PPC_PWORD_32 0x20 80 char ppc_pword; /* PWord size */ 81 short ppc_fifo; /* FIFO threshold */ 82 83 short ppc_wthr; /* writeIntrThresold */ 84 short ppc_rthr; /* readIntrThresold */ 85 | 61 62 int ppc_mode; /* chipset current mode */ 63 int ppc_avm; /* chipset available modes */ 64 65#define PPC_IRQ_NONE 0x0 66#define PPC_IRQ_nACK 0x1 67#define PPC_IRQ_DMA 0x2 68#define PPC_IRQ_FIFO 0x4 --- 16 unchanged lines hidden (view full) --- 85#define PPC_PWORD_8 0x10 86#define PPC_PWORD_32 0x20 87 char ppc_pword; /* PWord size */ 88 short ppc_fifo; /* FIFO threshold */ 89 90 short ppc_wthr; /* writeIntrThresold */ 91 short ppc_rthr; /* readIntrThresold */ 92 |
86#define ppc_base ppc_link.base 87#define ppc_epp ppc_link.epp_protocol 88#define ppc_irq ppc_link.id_irq 89#define ppc_subm ppc_link.submicroseq 90#define ppc_ptr ppc_link.ptr 91#define ppc_accum ppc_link.accum | 93 char *ppc_ptr; /* microseq current pointer */ 94 int ppc_accum; /* microseq accumulator */ 95 int ppc_base; /* parallel port base address */ 96 int ppc_epp; /* EPP mode (1.7 or 1.9) */ 97 int ppc_irq; |
92 93 unsigned char ppc_flags; 94 | 98 99 unsigned char ppc_flags; 100 |
95 struct ppb_link ppc_link; | 101 device_t ppbus; /* parallel port chipset corresponding ppbus */ 102 103 int rid_irq, rid_drq, rid_ioport; 104 struct resource *res_irq, *res_drq, *res_ioport; 105 106 void *intr_cookie; 107 108 int ppc_registered; /* 1 if ppcintr() is the registered interrupt */ |
96}; 97 98/* 99 * Parallel Port Chipset registers. 100 */ 101#define PPC_SPP_DTR 0 /* SPP data register */ 102#define PPC_ECP_A_FIFO 0 /* ECP Address fifo register */ 103#define PPC_SPP_STR 1 /* SPP status register */ --- 122 unchanged lines hidden --- | 109}; 110 111/* 112 * Parallel Port Chipset registers. 113 */ 114#define PPC_SPP_DTR 0 /* SPP data register */ 115#define PPC_ECP_A_FIFO 0 /* ECP Address fifo register */ 116#define PPC_SPP_STR 1 /* SPP status register */ --- 122 unchanged lines hidden --- |