ida_eisa.c (119418) | ida_eisa.c (124471) |
---|---|
1/* 2 * Copyright (c) 2000 Jonathan Lemon 3 * Copyright (c) 1999 by Matthew N. Dodd <winter@jurai.net> 4 * All Rights Reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2000 Jonathan Lemon 3 * Copyright (c) 1999 by Matthew N. Dodd <winter@jurai.net> 4 * All Rights Reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/ida/ida_eisa.c 119418 2003-08-24 17:55:58Z obrien $"); | 29__FBSDID("$FreeBSD: head/sys/dev/ida/ida_eisa.c 124471 2004-01-13 11:28:21Z mdodd $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35 36#include <sys/bio.h> 37#include <sys/conf.h> --- 5 unchanged lines hidden (view full) --- 43 44#include <geom/geom_disk.h> 45 46#include <dev/ida/idavar.h> 47#include <dev/ida/idareg.h> 48 49#include <dev/eisa/eisaconf.h> 50 | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35 36#include <sys/bio.h> 37#include <sys/conf.h> --- 5 unchanged lines hidden (view full) --- 43 44#include <geom/geom_disk.h> 45 46#include <dev/ida/idavar.h> 47#include <dev/ida/idareg.h> 48 49#include <dev/eisa/eisaconf.h> 50 |
51#define IDA_EISA_IOPORT_START 0x0c88 52#define IDA_EISA_IOPORT_LEN 0x0017 | 51#define IDA_EISA_IOPORT_START 0x0c88 52#define IDA_EISA_IOPORT_LEN 0x0017 |
53 | 53 |
54#define IDA_EISA_IRQ_REG 0x0cc0 55#define IDA_EISA_IRQ_MASK 0xf0 56#define IDA_EISA_IRQ_15 0x80 57#define IDA_EISA_IRQ_14 0x40 58#define IDA_EISA_IRQ_11 0x10 59#define IDA_EISA_IRQ_10 0x20 | 54#define IDA_EISA_IRQ_REG 0x0cc0 55#define IDA_EISA_IRQ_MASK 0xf0 56#define IDA_EISA_IRQ_15 0x80 57#define IDA_EISA_IRQ_14 0x40 58#define IDA_EISA_IRQ_11 0x10 59#define IDA_EISA_IRQ_10 0x20 |
60 61static int 62ida_v1_fifo_full(struct ida_softc *ida) 63{ 64 u_int8_t status; 65 66 status = ida_inb(ida, R_EISA_SYSTEM_DOORBELL); 67 return ((status & EISA_CHANNEL_CLEAR) == 0); --- 279 unchanged lines hidden --- | 60 61static int 62ida_v1_fifo_full(struct ida_softc *ida) 63{ 64 u_int8_t status; 65 66 status = ida_inb(ida, R_EISA_SYSTEM_DOORBELL); 67 return ((status & EISA_CHANNEL_CLEAR) == 0); --- 279 unchanged lines hidden --- |