hid.h (141224) | hid.h (176534) |
---|---|
1/*- 2 * Copyright (c) 2000 Tsubai Masanari. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $NetBSD: hid.h,v 1.2 2001/08/22 21:05:25 matt Exp $ | 1/*- 2 * Copyright (c) 2000 Tsubai Masanari. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $NetBSD: hid.h,v 1.2 2001/08/22 21:05:25 matt Exp $ |
27 * $FreeBSD: head/sys/powerpc/include/hid.h 141224 2005-02-04 01:14:38Z grehan $ | 27 * $FreeBSD: head/sys/powerpc/include/hid.h 176534 2008-02-25 00:09:23Z raj $ |
28 */ 29 30#ifndef _POWERPC_HID_H_ 31#define _POWERPC_HID_H_ 32 33/* Hardware Implementation Dependent registers for the PowerPC */ 34 35#define HID0_EMCP 0x80000000 /* Enable MCP */ --- 24 unchanged lines hidden (view full) --- 60#define HID0_DCFI 0x00000400 /* d-cache flush invalidate */ 61#define HID0_SPD 0x00000200 /* Disable speculative cache access */ 62#define HID0_XBSEN 0x00000100 /* Extended BAT block-size enable (7457) */ 63#define HID0_IFEM 0x00000100 /* Enable M-bit for I-fetch */ 64#define HID0_XBSEN 0x00000100 /* Extended BAT block size enable (7455+)*/ 65#define HID0_SGE 0x00000080 /* Enable store gathering */ 66#define HID0_DCFA 0x00000040 /* Data cache flush assist */ 67#define HID0_BTIC 0x00000020 /* Enable BTIC */ | 28 */ 29 30#ifndef _POWERPC_HID_H_ 31#define _POWERPC_HID_H_ 32 33/* Hardware Implementation Dependent registers for the PowerPC */ 34 35#define HID0_EMCP 0x80000000 /* Enable MCP */ --- 24 unchanged lines hidden (view full) --- 60#define HID0_DCFI 0x00000400 /* d-cache flush invalidate */ 61#define HID0_SPD 0x00000200 /* Disable speculative cache access */ 62#define HID0_XBSEN 0x00000100 /* Extended BAT block-size enable (7457) */ 63#define HID0_IFEM 0x00000100 /* Enable M-bit for I-fetch */ 64#define HID0_XBSEN 0x00000100 /* Extended BAT block size enable (7455+)*/ 65#define HID0_SGE 0x00000080 /* Enable store gathering */ 66#define HID0_DCFA 0x00000040 /* Data cache flush assist */ 67#define HID0_BTIC 0x00000020 /* Enable BTIC */ |
68#define HID0_LRSTK 0x00000010 /* Link register stack enable (7450) */ | 68#define HID0_LRSTK 0x00000010 /* Link register stack enable (7450) */ |
69#define HID0_ABE 0x00000008 /* Enable address broadcast */ | 69#define HID0_ABE 0x00000008 /* Enable address broadcast */ |
70#define HID0_FOLD 0x00000008 /* Branch folding enable (7450) */ | 70#define HID0_FOLD 0x00000008 /* Branch folding enable (7450) */ |
71#define HID0_BHT 0x00000004 /* Enable branch history table */ 72#define HID0_NOPTI 0x00000001 /* No-op the dcbt(st) */ 73 74#define HID0_BITMASK \ 75 "\20" \ 76 "\040EMCP\037DBP\036EBA\035EBD\034BCLK\033EICE\032ECLK\031PAR" \ 77 "\030DOZE\027NAP\026SLEEP\025DPM\024RISEG\023EIEC\022res\021NHR" \ 78 "\020ICE\017DCE\016ILOCK\015DLOCK\014ICFI\013DCFI\012SPD\011IFEM" \ 79 "\010SGE\007DCFA\006BTIC\005FBIOB\004ABE\003BHT\002NOPDST\001NOPTI" 80 81#define HID0_7450_BITMASK \ 82 "\20" \ 83 "\040EMCP\037b1\036b2\035b3\034b4\033TBEN\032b6\031STEN" \ 84 "\030HBATEN\027NAP\026SLEEP\025DPM\024b12\023BHTCLR\022XAEN\021NHR" \ 85 "\020ICE\017DCE\016ILOCK\015DLOCK\014ICFI\013DCFI\012SPD\011XBSEN" \ 86 "\010SGE\007b25\006BTIC\005LRSTK\004FOLD\003BHT\002NOPDST\001NOPTI" 87 | 71#define HID0_BHT 0x00000004 /* Enable branch history table */ 72#define HID0_NOPTI 0x00000001 /* No-op the dcbt(st) */ 73 74#define HID0_BITMASK \ 75 "\20" \ 76 "\040EMCP\037DBP\036EBA\035EBD\034BCLK\033EICE\032ECLK\031PAR" \ 77 "\030DOZE\027NAP\026SLEEP\025DPM\024RISEG\023EIEC\022res\021NHR" \ 78 "\020ICE\017DCE\016ILOCK\015DLOCK\014ICFI\013DCFI\012SPD\011IFEM" \ 79 "\010SGE\007DCFA\006BTIC\005FBIOB\004ABE\003BHT\002NOPDST\001NOPTI" 80 81#define HID0_7450_BITMASK \ 82 "\20" \ 83 "\040EMCP\037b1\036b2\035b3\034b4\033TBEN\032b6\031STEN" \ 84 "\030HBATEN\027NAP\026SLEEP\025DPM\024b12\023BHTCLR\022XAEN\021NHR" \ 85 "\020ICE\017DCE\016ILOCK\015DLOCK\014ICFI\013DCFI\012SPD\011XBSEN" \ 86 "\010SGE\007b25\006BTIC\005LRSTK\004FOLD\003BHT\002NOPDST\001NOPTI" 87 |
88#define HID0_E500_BITMASK \ 89 "\20" \ 90 "\040EMCP\037b1\036b2\035b3\034b4\033b5\032b6\031b7" \ 91 "\030DOZE\027NAP\026SLEEP\025b11\024b12\023b13\022b14\021b15" \ 92 "\020b16\017TBEN\016SEL_TBCLK\015b19\014b20\013b21\012b22\011b23" \ 93 "\010EN_MAS7_UPDATE\007DCFA\006b26\005b27\004b28\003b29\002b30\001NOPTI" 94 |
|
88/* 89 * HID0 bit definitions per cpu model 90 * 91 * bit 603 604 750 7400 7410 7450 7457 92 * 0 EMCP EMCP EMCP EMCP EMCP - - 93 * 1 - ECP DBP - - - - 94 * 2 EBA EBA EBA EBA EDA - - 95 * 3 EBD EBD EBD EBD EBD - - --- 42 unchanged lines hidden --- | 95/* 96 * HID0 bit definitions per cpu model 97 * 98 * bit 603 604 750 7400 7410 7450 7457 99 * 0 EMCP EMCP EMCP EMCP EMCP - - 100 * 1 - ECP DBP - - - - 101 * 2 EBA EBA EBA EBA EDA - - 102 * 3 EBD EBD EBD EBD EBD - - --- 42 unchanged lines hidden --- |