machine.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
/*
* Copyrighted as an unpublished work.
* (c) Copyright INTERACTIVE Systems Corporation 1986, 1988, 1990
* All rights reserved.
*/
#ifndef _MACHINE_H
#define _MACHINE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
struct machconfig {
char *sigaddr; /* Machine signature location */
unsigned char siglen; /* Signature length */
unsigned char old_mt; /* OLD Machine type */
unsigned char machine; /* Machine type */
int (*m_entry)(); /* machine entry point */
};
#define M_ID_AT386 0
#define M_ID_MC386 1
#define M_ID_EISA 2
#define SYS_MODEL() *(char *)0xFFFFE
#define USER_START 0x100000
#define NPTEPERPT 1024
typedef struct ptbl {
} ptbl_t;
/*
* keyboard controller I/O port addresses
*/
/*
* keyboard controller commands and flags
*/
/*
* command to to enable keyboard
* this is different from KB_ENAB above in
* that KB_ENAB is a command to the 8042 to
* enable the keyboard interface, not the
* keyboard itself
*/
#define KB_ENABLE 0xF4
/* move later into immu.h */
#ifndef PTSIZE
#define PTSIZE 4096
#endif
#define FOURMEG 4194304
#ifdef __cplusplus
}
#endif
#endif /* _MACHINE_H */