/*
* Interface for smsc fdc48m81x Super IO chip
*
* Author : MontaVista Software , Inc . source @ mvista . com
*
* 2001 - 2003 ( c ) MontaVista Software , Inc . This file is licensed under
* the terms of the GNU General Public License version 2 . This program
* is licensed " as is " without any warranty of any kind , whether express
* or implied .
*
* Copyright ( C ) 2004 MontaVista Software Inc .
* Manish Lachwani , mlachwani @ mvista . com
*/
#ifndef _SMSC_FDC37M81X_H_
#define _SMSC_FDC37M81X_H_
/* Common Registers */
#define SMSC_FDC37M81X_CONFIG_INDEX 0 x00
#define SMSC_FDC37M81X_CONFIG_DATA 0 x01
#define SMSC_FDC37M81X_CONF 0 x02
#define SMSC_FDC37M81X_INDEX 0 x03
#define SMSC_FDC37M81X_DNUM 0 x07
#define SMSC_FDC37M81X_DID 0 x20
#define SMSC_FDC37M81X_DREV 0 x21
#define SMSC_FDC37M81X_PCNT 0 x22
#define SMSC_FDC37M81X_PMGT 0 x23
#define SMSC_FDC37M81X_OSC 0 x24
#define SMSC_FDC37M81X_CONFPA0 0 x26
#define SMSC_FDC37M81X_CONFPA1 0 x27
#define SMSC_FDC37M81X_TEST4 0 x2B
#define SMSC_FDC37M81X_TEST5 0 x2C
#define SMSC_FDC37M81X_TEST1 0 x2D
#define SMSC_FDC37M81X_TEST2 0 x2E
#define SMSC_FDC37M81X_TEST3 0 x2F
/* Logical device numbers */
#define SMSC_FDC37M81X_FDD 0 x00
#define SMSC_FDC37M81X_PARALLEL 0 x03
#define SMSC_FDC37M81X_SERIAL1 0 x04
#define SMSC_FDC37M81X_SERIAL2 0 x05
#define SMSC_FDC37M81X_KBD 0 x07
#define SMSC_FDC37M81X_AUXIO 0 x08
#define SMSC_FDC37M81X_NONE 0 xff
/* Logical device Config Registers */
#define SMSC_FDC37M81X_ACTIVE 0 x30
#define SMSC_FDC37M81X_BASEADDR0 0 x60
#define SMSC_FDC37M81X_BASEADDR1 0 x61
#define SMSC_FDC37M81X_INT 0 x70
#define SMSC_FDC37M81X_INT2 0 x72
#define SMSC_FDC37M81X_LDCR_F0 0 xF0
/* Chip Config Values */
#define SMSC_FDC37M81X_CONFIG_ENTER 0 x55
#define SMSC_FDC37M81X_CONFIG_EXIT 0 xaa
#define SMSC_FDC37M81X_CHIP_ID 0 x4d
unsigned long smsc_fdc37m81x_init(unsigned long port);
void smsc_fdc37m81x_config_beg(void );
void smsc_fdc37m81x_config_end(void );
u8 smsc_fdc37m81x_config_get(u8 reg);
void smsc_fdc37m81x_config_set(u8 reg, u8 val);
#endif
Messung V0.5 in Prozent C=93 H=100 G=96
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-10-02)
¤
*© Formatika GbR, Deutschland