[BACK]Return to isabrreg.h CVS log [TXT][DIR] Up to [local] / sys / arch / hp300 / dev

Annotation of sys/arch/hp300/dev/isabrreg.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: isabrreg.h,v 1.1 2007/01/06 20:17:43 miod Exp $       */
                      2:
                      3: /*
                      4:  * Copyright (c) 2007 Miodrag Vallat.
                      5:  *
                      6:  * Permission to use, copy, modify, and distribute this software for any
                      7:  * purpose with or without fee is hereby granted, provided that the above
                      8:  * copyright notice, this permission notice, and the disclaimer below
                      9:  * appear in all copies.
                     10:  *
                     11:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     12:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     13:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     14:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     15:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     16:  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     17:  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     18:  */
                     19:
                     20: /*
                     21:  * Models 4xx ISA slot memory spaces
                     22:  */
                     23:
                     24: #define        ISABR_IOMEM_BASE        (0x30000000 + IOM_BEGIN)
                     25: #define        ISABR_IOMEM_END         (0x30000000 + IOM_END)
                     26:
                     27: #define        ISABR_IOPORT_BASE       0x30000000
                     28: #define        ISABR_IOPORT_END        0x30080000
                     29:
                     30: /*
                     31:  * Ye mighty logic by which ports are interleaved.
                     32:  * The actual scheme is more complex, to allow ports over 0x400 to be mapped
                     33:  * in bits 3-11 of the address. But we don't support the multi-slot EISA
                     34:  * bridges yet.
                     35:  */
                     36: #define        ISABR_IOPORT_LINE       0x08
                     37: #define        ISAADDR(p) \
                     38:     ((((p) & ~(ISABR_IOPORT_LINE - 1)) << 9) | ((p) & (ISABR_IOPORT_LINE - 1)))
                     39: #define        ISAPORT(a) \
                     40:     ((((a) >> 9) & ~(ISABR_IOPORT_LINE - 1)) | ((a) & (ISABR_IOPORT_LINE - 1)))

CVSweb