📄 superio.h
字号:
/************************************************************************/
/* */
/* Copyright (c) 2001 by Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in */
/* the subject matter of this material. All manufacturing, */
/* reproduction, use, and sales rights pertaining to this subject */
/* matter are governed by the license agreement. The recipient of */
/* this software implicitly accepts the terms of the license. */
/* */
/* */
/************************************************************************/
/************************************************************************/
/* FILE NAME VERSION */
/* */
/* superio.h Nucleus PLUS\MPC8245\Diab C/C++ 1.13.1 */
/* */
/* */
/* DESCRIPTION */
/* */
/* Support services for the National Semiconductor PC87308VUL */
/* SuperI/O Enhanced Sidewinder Lit Plug and Play Compatible */
/* Chip. */
/* */
/* */
/* DATA STRUCTURES */
/* */
/* none */
/* */
/* FUNCTIONS */
/* */
/* sio_Init */
/* */
/* DEPENDENCIES */
/* NA */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* T. Weller 12\19\2001 Created inital version 1.13.1 */
/************************************************************************/
#ifndef SUPERIO_H
#define SUPERIO_H
#include "nucleus.h"
void sio_Init();
/* National Semiconductor SuperIO definitions */
/* PnP Register Definitions */
#define INDEX_ADDRESS 0x03
#define LDN 0x07
#define DEVICE_ID 0x20
#define SIO_CNFG1 0x21
#define SIO_CNFG2 0x22
#define CSCONFIG_INDX 0x23
#define CSCONFIG_DATA 0x24
#define ACTIVATE 0x30
#define IORANGECHK 0x31
#define PBASE_IO_ADDR_U 0x60
#define PBASE_IO_ADDR_L 0x61
#define PINTRPT_SEL 0x70
#define PINTRPT_TYPE 0x71
#define DMA_CHNL0_SEL 0x74
#define DMA_CHNL1_SEL 0x75
#define LDN_CNFG1REG 0xF0
#define IO_Data 0xFE00015D
#define IO_Index 0xFE00015C
/* Super I/O Logical Device Numbers */
#define LDN_0 0x0 /* Keyboard */
#define LDN_1 0x1 /* Mouse */
#define LDN_2 0x2 /* RTC */
#define LDN_3 0x3 /* FDC */
#define LDN_4 0x4 /* Parallel Port */
#define LDN_5 0x5 /* Serial Port Com 2 */
#define LDN_6 0x6 /* Serial Port Com 1 */
#define LDN_7 0x7 /* GPIO Ports */
#define LDN_8 0x8 /* Power Management */
/* 8 bit access */
#define SIO_OUTBYTE(reg, data) ( (*( (CHAR *) (reg) ) ) = (data) )
#define SIO_INBYTE(reg) ( *( (CHAR *) (reg) ) )
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -