/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright 2000 (c) Hewlett Packard (Paul Bame <bame()spam.parisc-linux.org>) * Copyright 2000,2004 (c) Grant Grundler <grundler()nahspam.parisc-linux.org>
*/
#define PDC_PAT_CELL 64L /* Interface for gaining and
* manipulatin g cell state within PD */ #define PDC_PAT_CELL_GET_NUMBER 0L /* Return Cell number */ #define PDC_PAT_CELL_GET_INFO 1L /* Returns info about Cell */ #define PDC_PAT_CELL_MODULE 2L /* Returns info about Module */ #define PDC_PAT_CELL_SET_ATTENTION 9L /* Set Cell Attention indicator */ #define PDC_PAT_CELL_NUMBER_TO_LOC 10L /* Cell Number -> Location */ #define PDC_PAT_CELL_WALK_FABRIC 11L /* Walk the Fabric */ #define PDC_PAT_CELL_GET_RDT_SIZE 12L /* Return Route Distance Table Sizes */ #define PDC_PAT_CELL_GET_RDT 13L /* Return Route Distance Tables */ #define PDC_PAT_CELL_GET_LOCAL_PDH_SZ 14L /* Read Local PDH Buffer Size */ #define PDC_PAT_CELL_SET_LOCAL_PDH 15L /* Write Local PDH Buffer */ #define PDC_PAT_CELL_GET_REMOTE_PDH_SZ 16L /* Return Remote PDH Buffer Size */ #define PDC_PAT_CELL_GET_REMOTE_PDH 17L /* Read Remote PDH Buffer */ #define PDC_PAT_CELL_GET_DBG_INFO 128L /* Return DBG Buffer Info */ #define PDC_PAT_CELL_CHANGE_ALIAS 129L /* Change Non-Equivalent Alias Chacking */
/* ** Arg to PDC_PAT_CELL_MODULE memaddr[4] ** ** Addresses on the Merced Bus != all Runway Bus addresses. ** This is intended for programming SBA/LBA chips range registers.
*/ #define IO_VIEW 0UL #define PA_VIEW 1UL
/* PDC_PAT_CELL_MODULE entity type values */ #define PAT_ENTITY_CA 0 /* central agent */ #define PAT_ENTITY_PROC 1 /* processor */ #define PAT_ENTITY_MEM 2 /* memory controller */ #define PAT_ENTITY_SBA 3 /* system bus adapter */ #define PAT_ENTITY_LBA 4 /* local bus adapter */ #define PAT_ENTITY_PBC 5 /* processor bus converter */ #define PAT_ENTITY_XBC 6 /* crossbar fabric connect */ #define PAT_ENTITY_RC 7 /* fabric interconnect */
/* PDC_PAT_CELL_MODULE address range type values */ #define PAT_PBNUM 0 /* PCI Bus Number */ #define PAT_LMMIO 1 /* < 4G MMIO Space */ #define PAT_GMMIO 2 /* > 4G MMIO Space */ #define PAT_NPIOP 3 /* Non Postable I/O Port Space */ #define PAT_PIOP 4 /* Postable I/O Port Space */ #define PAT_AHPA 5 /* Addional HPA Space */ #define PAT_UFO 6 /* HPA Space (UFO for Mariposa) */ #define PAT_GNIP 7 /* GNI Reserved Space */
/* PDC PAT HPMC -- Cause processor to go into spin loop, and wait * for wake up from Monarch Processor.
*/
#define PDC_PAT_HPMC 70L #define PDC_PAT_HPMC_RENDEZ_CPU 0L /* go into spin loop */ #define PDC_PAT_HPMC_SET_PARAMS 1L /* Allows OS to specify intr which PDC * will use to interrupt OS during
* machine check rendezvous */
/* parameters for PDC_PAT_HPMC_SET_PARAMS: */ #define HPMC_SET_PARAMS_INTR 1L /* Rendezvous Interrupt */ #define HPMC_SET_PARAMS_WAKE 2L /* Wake up processor */
/* PDC PAT IO -- On-line services for I/O modules */
#define PDC_PAT_IO 71L #define PDC_PAT_IO_GET_SLOT_STATUS 5L /* Get Slot Status Info*/ #define PDC_PAT_IO_GET_LOC_FROM_HARDWARE 6L /* Get Physical Location from */ /* Hardware Path */ #define PDC_PAT_IO_GET_HARDWARE_FROM_LOC 7L /* Get Hardware Path from
* Physical Location */ #define PDC_PAT_IO_GET_PCI_CONFIG_FROM_HW 11L /* Get PCI Configuration
* Address from Hardware Path */ #define PDC_PAT_IO_GET_HW_FROM_PCI_CONFIG 12L /* Get Hardware Path
* from PCI Configuration Address */ #define PDC_PAT_IO_READ_HOST_BRIDGE_INFO 13L /* Read Host Bridge State Info */ #define PDC_PAT_IO_CLEAR_HOST_BRIDGE_INFO 14L /* Clear Host Bridge State Info*/ #define PDC_PAT_IO_GET_PCI_ROUTING_TABLE_SIZE 15L /* Get PCI INT Routing Table
* Size */ #define PDC_PAT_IO_GET_PCI_ROUTING_TABLE 16L /* Get PCI INT Routing Table */ #define PDC_PAT_IO_GET_HINT_TABLE_SIZE 17L /* Get Hint Table Size */ #define PDC_PAT_IO_GET_HINT_TABLE 18L /* Get Hint Table */ #define PDC_PAT_IO_PCI_CONFIG_READ 19L /* PCI Config Read */ #define PDC_PAT_IO_PCI_CONFIG_WRITE 20L /* PCI Config Write */ #define PDC_PAT_IO_GET_NUM_IO_SLOTS 21L /* Get Number of I/O Bay Slots in
* Cabinet */ #define PDC_PAT_IO_GET_LOC_IO_SLOTS 22L /* Get Physical Location of I/O */ /* Bay Slots in Cabinet */ #define PDC_PAT_IO_BAY_STATUS_INFO 28L /* Get I/O Bay Slot Status Info */ #define PDC_PAT_IO_GET_PROC_VIEW 29L /* Get Processor view of IO address */ #define PDC_PAT_IO_PROG_SBA_DIR_RANGE 30L /* Program directed range */
/* PDC PAT MEM -- Manage memory page deallocation */
#define PDC_PAT_MEM 72L #define PDC_PAT_MEM_PD_INFO 0L /* Return PDT info for PD */ #define PDC_PAT_MEM_PD_CLEAR 1L /* Clear PDT for PD */ #define PDC_PAT_MEM_PD_READ 2L /* Read PDT entries for PD */ #define PDC_PAT_MEM_PD_RESET 3L /* Reset clear bit for PD */ #define PDC_PAT_MEM_CELL_INFO 5L /* Return PDT info For Cell */ #define PDC_PAT_MEM_CELL_CLEAR 6L /* Clear PDT For Cell */ #define PDC_PAT_MEM_CELL_READ 7L /* Read PDT entries For Cell */ #define PDC_PAT_MEM_CELL_RESET 8L /* Reset clear bit For Cell */ #define PDC_PAT_MEM_SETGM 9L /* Set Good Memory value */ #define PDC_PAT_MEM_ADD_PAGE 10L /* ADDs a page to the cell */ #define PDC_PAT_MEM_ADDRESS 11L /* Get Physical Location From */ /* Memory Address */ #define PDC_PAT_MEM_GET_TXT_SIZE 12L /* Get Formatted Text Size */ #define PDC_PAT_MEM_GET_PD_TXT 13L /* Get PD Formatted Text */ #define PDC_PAT_MEM_GET_CELL_TXT 14L /* Get Cell Formatted Text */ #define PDC_PAT_MEM_RD_STATE_INFO 15L /* Read Mem Module State Info*/ #define PDC_PAT_MEM_CLR_STATE_INFO 16L /*Clear Mem Module State Info*/ #define PDC_PAT_MEM_CLEAN_RANGE 128L /*Clean Mem in specific range*/ #define PDC_PAT_MEM_GET_TBL_SIZE 131L /* Get Memory Table Size */ #define PDC_PAT_MEM_GET_TBL 132L /* Get Memory Table */
/* PDC PAT NVOLATILE -- Access Non-Volatile Memory */
struct pdc_pat_mem_retinfo { /* PDC_PAT_MEM/PDC_PAT_MEM_PD_INFO (return info) */ unsignedint ke; /* bit 0: memory inside good memory? */ unsignedint current_pdt_entries:16; unsignedint max_pdt_entries:16; unsignedlong Cs_bitmap; unsignedlong Ic_bitmap; unsignedlong good_mem; unsignedlong first_dbe_loc; /* first location of double bit error */ unsignedlong clear_time; /* last PDT clear time (since Jan 1970) */
};
struct pdc_pat_mem_cell_pdt_retinfo { /* PDC_PAT_MEM/PDC_PAT_MEM_CELL_INFO */
u64 reserved:32;
u64 cs:1; /* clear status: cleared since the last call? */
u64 current_pdt_entries:15;
u64 ic:1; /* interleaving had to be changed ? */
u64 max_pdt_entries:15; unsignedlong good_mem; unsignedlong first_dbe_loc; /* first location of double bit error */ unsignedlong clear_time; /* last PDT clear time (since Jan 1970) */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.